04-01-2019 06:53 PM
I am trying to graph data from an array of clusters. It is a 1D array with N clusters of 3 elements. Attached is a minimal working example.
Each case structure denotes channels 1,2,3,4,9 which creates a cluster of 3 elements. And this is iterated over N=5 times as shown in the Master For loop. I need the data generated from each case structures to be appended to the plot. Whereas now with my code, it is appending data collectively from all case structures 5 times; which is wrong.
Each channel data (containing 3 elements) should be plot over 5 iterations, and since there are 5 channels with 3 elements in each channel the total # of plots should be 15. How can I plot them in a single graph ( later I will add boolean logic to hide/show each channel data because 15 line plots in single graph is a lot)
Solved! Go to Solution.
04-02-2019 02:52 AM
Correct me if I am wrong.
You have 5 channels with 3 signals in each channel. You acquire 5 times, so in the graph You want to see 15 graphs: channel1.signal1, channel1.signal2, channel1.signal3, channel2.signal1, ...
You can do it using shift registers and in-place-element in Your secondary loop.
Colect data
Prepare graph
Interface
04-02-2019 02:53 AM
@asukumari wrote:
( later I will add boolean logic to hide/show each channel data because 15 line plots in single graph is a lot)
Simply put all data in the plot, and let the plot show\hide them. Either from your code, or let the user select the visible plots...
04-02-2019 10:12 AM
04-02-2019 10:13 AM