03-30-2007 10:07 AM
03-30-2007 10:51 AM
In the example I posted, it takes one channel at a time and placing the split signal inside the loop will do nothing because it would only show the last capture.
I'm not sure if you want to display data as it's being acquired or just wait until all channels have been captured. The picture below shows it both ways. There may be a way to use the signal data type inside the loop instead of the waveform data type but I never use the signal data type because I hardly ever use the Express VIs.
Sorry again for the misunderstanding.
03-30-2007 11:19 AM
04-02-2007 09:24 AM
Hi again,
So I tried to use the methods you explained and I can get the second method to work thanks for that. would you mind explaining the first method I cant find the array block you have or the two line with the arrows you have inside the loop. Thanks again
04-02-2007 09:32 AM
04-03-2007 05:30 AM
That worked a charm thanks again. Do you know of any method to speed up the digital outputs from the DAQ because it takes 16 seconds to scan through the sensors at this rate and if one of those sensors was to change value between this time it is not noticed. Thank again
James
04-03-2007 08:10 AM
Part of the 16 seconds is probably due to the analog acquisition. What is your sample rate and number of samples? The higher the number of samples your request, the longer it takes. If the number of samples equals the sample rate, you've got it set to take a measurement every second.
Other than that, you can probably speed things up a by not using the DAQ Assistant for both taks and using the lower level DAQmx functions. There are a large number of shipping examples that show how these functions are used. You also can look at the code inside the DAQ Assistant. Right click on the assistant and select Open Front Panel. This converts the assistant to a regular VI. What you would want in your VI is just the DAQmx Write for the digital and the DAQmx Read for the analog. Everything else like the Create Channels, Start Task, Stop Task, etc, belongs outside the loop because these thing only need to be done once.