Hi
I would like my sub-vi ( to sample multiple analogue input channels. Presently it samples just 1 analogue input channel and this is triggered by the analgue output as described at the foot of this message.
Is there a quick way I can modify the code so that it will sample multiple analogue input channels?
Many Thanks
Ashley.
The code runs in the following manner:
The for loop on the top left generates an array of data points to write to the AO write sub vi (the start voltage and stop voltage and number of steps in AO voltage being the parameters that determine the output of this loop.
In the main for loop the AO output is swept according to the settings generated above. On each step of the analogue output voltage there is a short delay set by the DAQmx trigger before data is sampled to the AI channel. The loop executes N times and the mean of the N sweeps is plotted to the graph (outside the loop).