09-17-2014 03:39 PM
i have
10 channels.
how can i put more channels into my xy graph
?
Solved! Go to Solution.
09-17-2014 03:59 PM - edited 09-17-2014 04:02 PM
What's that while loop supposed to do???? Silliest code I've seen in a while!
You need to feed as many x array as you have y arrays.
(You don't even need the "build xy graph express VI and dynamic data here).
Also, since your x values are evenly spaced a plain waveform graph would be sufficient.
09-17-2014 04:01 PM - edited 09-17-2014 04:03 PM
haha. sorry
the code is just to read
the lines in the rawdata and use it as an array to graph the x-axis?
any sugguestion to make it better?
i only have 1 x-axis..which is the number of lines in my raw data.
my multiple y-axis would be the columns in my raw data.
i used the build xy express because i like the simplicity of labeling my x/y coordinates
any sugguestions to improve my code would be greatly appreaciated.
09-17-2014 04:08 PM
i tried that and it didnt work 😞
09-17-2014 04:13 PM - edited 09-17-2014 04:16 PM
09-17-2014 04:16 PM - edited 09-17-2014 04:18 PM
@krispiekream wrote:
i tried that and it didnt work 😞
What is "that"? You image has no resemblance to any of my suggestions at all.
What is the problem with labeling the axes? Just define x0 and dx and you are all set. No xy graph needed. In your case, x0-0 and dx=1, so nothing needs to be done.
09-17-2014 04:32 PM - edited 09-17-2014 04:32 PM
And here's how you would graph 10 columns using a plain waveform graph. much simpler.
(note that you can omit the transpose operation and set the graph to transpose internally).
09-17-2014 04:35 PM - edited 09-17-2014 04:38 PM
sorry,
i was figuring something out while you were typing.
but thanks for the sugguestion..
i haven't seen this before.
can you give me its name so i can look up its functionality
thanks
09-17-2014 04:48 PM - edited 09-17-2014 04:48 PM
OH YEAH...That works!!!!
thank you!
09-17-2014 05:14 PM - edited 09-17-2014 05:57 PM
krispiekream wrote:i haven't seen this before.
can you give me its name so i can look up its functionality
To learn more about xy graphs and accepted datatypes, have a look at this old disucission.