LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically adding signals to a mixed signal graph

I have a 2-dimensional array, where each 1-D array is an encoder signal of several million samples. Enc[0] is the first array, and in the graph it should correspond to signal Enc. A and Enc[1] to Enc. B. However, when I feed the 2-D array to the graph the signals are inverted (Enc[0] is mapped to Enc.B and viceversa).

 

Furthermore, when I add a third signal which I have previously defined to be called "PD", this signal replaces Enc. A, and now Enc[0] becomes simply "Plot 2" and Enc[1] is shifted to Enc. B. As you can see in the settings the colors match and the plot name is set properly (I have also made current values default) but still every time the plots are shifted and the last signal is shown as "Plot 2"

 

Any ideas about what I'm doing wrong?

 

Cheers

Download All
0 Kudos
Message 1 of 3
(3,577 Views)

adding image

0 Kudos
Message 2 of 3
(3,575 Views)

Hey thehun,

I have a question about your problem. How do you programm your VI to show you the arrays in graphs?

Like in this versions?

 

Plotting 1D and 2D Arrays and Multiple Plots to Charts

https://forums.ni.com/t5/Example-Code/Plotting-1D-and-2D-Arrays-and-Multiple-Plots-to-Charts/ta-p/39...

 

Two methods for writing multiple plots to a waveform chart

https://forums.ni.com/t5/Example-Code/Two-methods-for-writing-multiple-plots-to-a-waveform-chart/ta-...

 

maybe this links could already help you.

 

Regards Michael

0 Kudos
Message 3 of 3
(3,539 Views)