Skip to content
Discussion options

You must be logged in to vote

@rdecarreau, I apologize for the extremely delayed response.

The nidaqmx Python package supports proxying DAQmx API calls to NI gRPC Device Server. To use this feature, specify grpc_options when you construct the nidaqmx.Task object.

Example:

import grpc
import nidaqmx
from nidaqmx.constants import AcquisitionType, READ_ALL_AVAILABLE

with grpc.insecure_channel("localhost:31763") as channel:
    with nidaqmx.Task(grpc_options=nidaqmx.GrpcSessionOptions(channel, "")) as task:
        task.ai_channels.add_ai_voltage_chan("Dev1/ai0")
        task.timing.cfg_samp_clk_timing(1000.0, sample_mode=AcquisitionType.FINITE, samps_per_chan=50)

        data = task.read(READ_ALL_AVAILABLE)
        print(

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rdecarreau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants