02-19-2018 01:40 AM
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.
02-19-2018 01:52 AM
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…
02-19-2018 01:59 AM
Is this what you mean?
02-19-2018 02:01 AM
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.
02-19-2018 02:06 AM
02-21-2018 10:55 AM
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
03-09-2018 01:20 AM
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,
03-09-2018 01:48 AM