From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

wrap DAQmx .net Async funtions into an iobservable

What is the recommended way to wrap DAQmx .net Async funtions into an iobservable?"

0 Kudos
Message 1 of 4
(2,968 Views)

Shabnama,

 

 This is Ali from National Instrument's applications engineering. 

 

Would you mean something like this?

http://zone.ni.com/reference/en-XX/help/370473H-01/mstudiowebhelp/html/asynchreadwritedaqnet/

 

Additionally, could you explain a little bit about the usage of this wrap DAQmx function, it would be good to have a little background to recommend references.

 

Regards,

Ali S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(2,938 Views)

Hi Ali, 

 

Those are the available async functions in the NI API, we would like to have a wrapper around those functions to allow the consumption of the data through a Reactive Extensions (Rx) IObservable stream.

 

Thanks,

Shabnam

0 Kudos
Message 3 of 4
(2,935 Views)

Shabnama,

 

Sorry for the late reply. I was doing a bit of research on the Reactive Extensions (Rx) IObservable platform. 

 

Is there a specific DAQmx function you would like to utilize?

For example, are you doing a Read DAQmx wrapper and then asking Reactive to pull data as needed?

 

Feel free to send in psuedo code or a specific DAQmx function or list of functions that you are trying to use?

 

 

Regards,

Ali S.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(2,896 Views)