LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview array to graph

Solved!
Go to solution

 

I am reading data from modbus and have an array of data that I need to graph, deepending on the iteration of a for loop I want to direct the data to the right struture and plot it. 

 

What plot should I use, x-axis is time in all cases. Should the array be unbundled first or masked instead?

0 Kudos
Message 1 of 6
(2,781 Views)

You cannot unbundle arrays, but you can index out the various elements. Can you remove all IO related stuff (we don't have your hardware) and replace the blue array indicator with a diagram constant filled with typical data?

 

One problem is the fact that some graphs receive data more often than others for each iteration of the while loop, so the charts will run at different speeds..

 

 

0 Kudos
Message 2 of 6
(2,752 Views)

Yes, I did ask you asked. 

0 Kudos
Message 3 of 6
(2,704 Views)

@Ferer44 wrote:

Yes, I did ask you asked. 


No, you did not. 😄 Your "raw decimal values" array is empty. Once it contains typical data, you need to make the current values the default before saving the VI.

0 Kudos
Message 4 of 6
(2,698 Views)

Have a look at it now,

 

Thanks,

Jay

0 Kudos
Message 5 of 6
(2,683 Views)
Solution
Accepted by topic author Ferer44

Well, some of your charts seems to have multiple traces, thus you need to rearrange the data a little bit. Here's one quick attempt, but please modify as needed.

 

 

Message 6 of 6
(2,669 Views)