06-14-2021 11:29 AM
Hi, I need to run two VIs side by side, on one laptop. Each VI will run a motor, read sensors, and output to a text file. Each setup has its own NiDaq 6008 and Daq Tasks: analog input, AO, digital counter, and Digital Output. Can you run two sets of Daq tasks side by side in different VIs on one laptop?
One issue is the tasks overlapping each other. Another issue I see is writing to an output file, so I may try having each VI save to a different file location.
Thanks
06-14-2021 11:31 AM
If you have any resources shared, then you'll have a problem. So trying to read different channels from the same DAQmx, or writing data to the same file.
But if one VI is handling one DAQ 6008, and the other VI is handling another DAQ 6008, and those tasks aren't sharing any channels, or modules, and you are writing to different files, I don't suspect you'll have a problem.
06-14-2021 11:58 AM
@RavensFan wrote:
If you have any resources shared, then you'll have a problem. So trying to read different channels from the same DAQmx, or writing data to the same file.
But if one VI is handling one DAQ 6008, and the other VI is handling another DAQ 6008, and those tasks aren't sharing any channels, or modules, and you are writing to different files, I don't suspect you'll have a problem.
And use the native data logging DAQmx functions and 1TDMS file set up with simultaneous access like it defaults to is all you need
It used to be harder than that. I can't believe that some guys still haven't tried the easy way.
06-14-2021 02:30 PM
Thanks. The way I have it setup originally is each VI datalogs to a separate TDMS file, so there are 2 files in one windows folder.