07-22-2022 09:11 AM
I am working with the measurement and calibration toolkit to acquire data. The way data acquisition works with M&C toolkit is that after establishing a connection with the device you feed the DAQ Initialize.vi with an event name and an array of signal names that need to be acquired. The device recognizes the signal names and event name and then the acquisiton could start in a while loop. I'm going to name the combination of an event name and an array of signal names a DAQList for simplification. I am reading DAQLists from a file and I have 199 of those, so I am iterating through the DAQ Lists to initialize the data acquisition and later I am passing the array of references to a while, where the acquisiton should take place. The issue I'm having is that I need to index the array of references and use the MC DAQ Read.vi function 199 times in order to acquire data, which I believe is not the best way of to do that. Any suggestions how to do that in a better way?
P.S. As far as I know the toolkit doesn't provide a way of incorporating multiple DAQ Lists.
07-22-2022 11:01 AM - edited 07-22-2022 11:08 AM
I don't understand the terms "array of references" and "references from array". Too ambiguous. Can you show us some code instead?
07-22-2022 04:28 PM - edited 07-22-2022 04:30 PM
Hi altenbach,
I added a screenshot of my code, I meant the references passed between the M&C Toolkit VIs. I hope that makes it clear now.
07-22-2022 04:58 PM - edited 07-22-2022 04:59 PM
I am not familiar with these MC DAQ "references" or "lists". Do you have a link to the manual?
Sorry, a truncated picture is pretty useless! Still, your image raises a lot of questions....
07-27-2022 11:53 AM - edited 07-27-2022 12:10 PM
Hi altenbach,
I relied on your remarks and solved most of the issues that I had with my code. Currently I'm having the problem that when I run the for loop for initialzing the DAQ list. I'm getting an array of references that are all equal. When I run the MC DAQ initialize in parallel without a for loop I get unique reference from each function. I tried enabling iteration parallelism hoping that it might solve my problem but it unfortunately didn't. I attached the VI for DAQ Initialization "DAQ Init" and VI where I initalize the DAQ Lists in parallel w/o a for loop "DAQ Parallel". What is the difference between the two implementations that is making the results different in your opinion?
Here is the user manual for the toolkit: https://www.ni.com/docs/en-US/bundle/371601p/page/download.html