Hi there,
I have found the following code on one of our stands. The stand uses an NI 9081 with several modules. All the data acquisition is in the RT part of the controller (so the FPGA is not really used as I would imagine should be used). It seems we grab a sample from each channel, merge them into an array and then send it to the host computer.
The concerns I have is this:
1, it seems the sampling rate peaks aroung 1kS/s with this solution
2, I assume all the channels are sampled one by one, and not simultaneously (which ends up a syncing issue)
3, now we sample about 10 channels or so, but what if we have 100? The code would look really ugly.
I am not an RT expert at all, moreover right now I dont even have the RT toolkit installed on my computer. But I would imagine that as with DAQmx we should be able to get multiple samples (speeding up the measurement) from each channel AND we should be able to merge the sampling into one task, so we can get rid of the syncing problems.
I fully understand that the data acq. should run on the FPGA to utilize the tool properly, although we wont be able to move to this direction in the next couple months due to workload issues, so I rather want to upgrade the RT code for now.
Can you advise what would be the proper way to achive a better performance?
A screenshot would be great. Do we have a suitable example included in the example finder?
I appreciate any help!