LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

plot values in array of different data types on stripchart

I have diffferent types of array which i need to plot on left or right y axis at the same time as defined by user  when a plot button present on screen is press. here in code  index 1 and index 2 are number of elements read. Also arr1_int is interger array and arr3_float is float array.when i write above code i am getting output graph as shown in the figure attached here.Value of id is 129   and value of speed is 0.2 . but i need to plot two different traces for this two values either on same Yaxis or different y axis.
 
Code:
if(Index1>0)
PlotStripChart (gpanelHandleStatus1,CHILDPANEL_STRIPCHART,arr1_int,Index1, 0, 0, VAL_INTEGER);
if(Index3>0)
        PlotStripChart (gpanelHandleStatus1,CHILDPANEL_STRIPCHART,arr3_float,Index2, 0, 0, VAL_FLOAT)
error.jpg 
0 Kudos
Message 1 of 1
(1,875 Views)