Hello all,
I am using NIDAQmx 9.0.2 (C++, Windows XP) and I need to read data from multiple channels of a NI USB 9229 card. My application will receive from another application requests to read samples like in the following example:
- 1: my app is requested to read samples from "Dev/ai0"
- (1 is not finished yet at this point) 2: my app is requested to read samples from "Dev/ai2"
- (1 and 2 are not finished at this point) 3: my app is requested to read samples from "Dev/ai4"
- my app is requested to finish 2
- 1 and 3 are still running at this point
etc...
I was thinking of having a thread for each read request, but as I understand from
this forum post this is not an option (?).
Also, the suggestion (in the same post) of using a single task for acquiring data from two channels is not viable for me, since I don't know beforehand which channels I will be required to read from and at which moment.
Is this kind of behaviour possible to implement in NIDAQmx at all? If yes, does someone have an idea how this could be done?
Thank you in advance for any input!