02-22-2019 08:22 AM
I have an array of 32 elements. I have connected to waveform chart. And I used the plot visibility checkbox. I was hoping to select each value from the array using plot visibility checkbox. Instead for me all 32 values are coming in plot 0 and no waveform in remaining plot. How can I make it by selecting the plot visibility checkbox, I get that value in the array vs time in the waveform graph.
02-22-2019 08:26 AM
Sounds like you have something wired up wrong.
But I can only say "sounds like" because I can't see it.
You didn't attach your VI so there is really no way we can tell you specifically what you did wrong.
02-22-2019 08:48 AM
Hi,
I have attached a random program that has an array of 10 values. But all 10 values are coming in plot 0. Kindly do help me.
02-22-2019 09:56 AM
First, you want a Waveform Chart, not a Waveform Graph. A graph won't show anything when you don't have a point style set and you are trying to send single point data. Charts keeps history. Graphs don't.
When you combine the 10 values into a 1-D array, it thinks it is a 10 sample array of a single channel. You need to combine the data in a way that recognizes it has 10 different channels. Look at the detailed help for charts and graphs, and also the examples that are linked to see there are several ways of treating the data.
But the simple answer for your VI.
1. Change Waveform Graph to Waveform Chart.
2. Put a Build Array between the first Build Array and the Chart. The 2-D array will allow it to be recognized as multiple channels.
02-28-2019 05:56 AM
Converting it into 2d array didnt help. Going through the examples will take a lot of time. I need to finish the work today. So please can you help me how to make 1d array values to appear as separate plots in waveform chart or if anyone knows which is the example I should go through to learn about this topic, then can you forward me to that example. Thanking You.
02-28-2019 06:15 AM - edited 02-28-2019 06:20 AM
Hi govindsankar,
Converting it into 2d array didnt help.
Then you made something wrong.
Again you failed in attaching your VI…
Going through the examples will take a lot of time. I need to finish the work today.
We aren't concerned about your time schedule and plan-ahead!
But you are a member of this forum for quite some time and should have had enough time to look at examples…
So please can you help me how to make 1d array values to appear as separate plots in waveform chart or if anyone knows which is the example I should go through
The context help for the chart shows exactly how to wire your data…
Convert your 1D array to a 2D array to show several plots:
Then transpose explicitely (or use the chart's transpose option) to get channels per rows…