LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pointer slide controls to select iteration numbers of data subset and display in another XY graph

Greetings.

 

I am having trouble with, as mentioned in the subject.

 

I need to use 2 slide controls to control how data is displayed in second graph (Data Section) graph in the vi, based on the data file (teste.csv) that has been read in the first graph (EEG data). 

 

Do you think that I need to put shift register in the For Loop so that all iteration of data can be accessed?

 

if not, can you please suggest me the step by step on how to achieve my aim. Please refer to the vi attach.

 

Looking forward for your help.

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

Hi nnhas,

 

so you want to control the "number of loops" using this "starting at loop" & "until loop" sliders?

 

Why not use an ArraySubset function between the ReadSpreadsheetFile function and your loop?

This way you can easily determine the "loops" to be displayed…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(3,659 Views)

yes I need the slider pointers, so users can select from any no. of loop to any no. of loop that they only want to see in the Data Section graph.

0 Kudos
Message 4 of 8
(3,652 Views)

Hi nnhas,

 

yes, that's ArraySubset…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 8
(3,649 Views)

nnhas,

I think GerdW is suggesting you use the sliders as controls to select a subset of your data array to plot on your second graph. You can use the value of "Starting at Loop No." to declare the starting index of your subarray and "Unitl Loop No." to calculate your length. You should be able to graph the sub array and only see the data you want to on the second graph.

regards,

TyVo

0 Kudos
Message 6 of 8
(3,591 Views)

Can you explain to me programatically? I do understand what you mean, but I don't know which functions to use to make this whole thing works.

 

regards,

0 Kudos
Message 7 of 8
(3,550 Views)

Hi nnhas,

 

I don't know which functions to use

So I repeat: ArraySubset!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(3,547 Views)