LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building XY-graph

Hi, can anyone tell me how I can solve next problem.
I have two signals with USB-9215 and I want moves the signals in Xy-graph in that
way that x-axis would be signal 1(distance) and y-axis would be signal 2
(force).How I can accomplish that?? I think that if i can convert 2D array to two
1D arrays that may help. How I can do that?
0 Kudos
Message 1 of 4
(2,887 Views)
Hello jhrioua:

I would suggest that you convert your 2D array to two 1D arrays.
You can do that by using two "Index Array". Connect the 2D array output of your "DAQ Read.vi" to the "array" input of the "Index Array". If you connnect a number 0 to the "index (row)" and keep the "index (col)" input unwired, then the output is a 1D array which you can connect to your XY graph.

I hope this helps. Please inform me if you have any other questions.
Message 2 of 4
(2,876 Views)
Thaks for your advise!!
I´m not sure did you mean like this (look at a file)?
This only recognize one signal not two signals and if I use two different channels then
it won´t work not at all.
0 Kudos
Message 3 of 4
(2,844 Views)
Hello jhrioua:

Yes, you should create another "create virtual channel.vi" for the second input.
Please see attachment, I had modified your vi.
0 Kudos
Message 4 of 4
(2,817 Views)