12-16-2013 02:16 PM - edited 12-16-2013 02:26 PM
Hello Everyone!
I got some problems with my software for data acquisition.
I got two signals and I have to show two signals at two different Waveform Graph.
How to seperate signals?
Solved! Go to Solution.
12-16-2013 02:30 PM
Index Array.
12-16-2013 02:34 PM
Where I have to put Index Array?
I can't find examples for using index array to waveform graphs
12-16-2013 02:38 PM
You index the 2D array that is coming out from the DAQmx Read.
It is irrelevant whether there is a specific example for a DAQmx Read. A 2D DBL array is always a 2D DBL array whether it is wired to a graph or something else. You need to read the help for the DAQmx Read in order to know whether to read rows or columns.
12-16-2013 03:20 PM - edited 12-16-2013 03:22 PM
I read DAQmx help and what I know is that Each row corresponds to a channel in the task. Each column corresponds to a sample from each channel.
I really don't know how to wire Index Array... Can you explain it to me, please?
Look at the attachment, is it ok?
12-16-2013 03:23 PM
There is an input called 'array'. Simply wire this to the 2D DBL array. Drag the bottom of the Index Array down so that you have a second subarray output. Wire up your graphs. Done. No need to wire anything to the index inputs.
12-16-2013 03:26 PM
Thank you very much
12-16-2013 03:48 PM
I got question for you - why I don't need to wire anything to index inputs?
12-16-2013 04:07 PM
The first index input defaults to 0. Each time you drag it down, the index input is automatically set to n+1. You can also start at an index other that 0. For example, you wanted rows 2,3,4,5, you would wire 2 into the first index input and after dragging it down to get an additional 3 inputs, you would skip wiring the values 3,4, and 5.
12-16-2013 04:27 PM
Thanks, now I get it