LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wavechart not displaying properly

Solved!
Go to solution

I have an instrument that gives me position data in three dimensions which can all be displayed on a wavechart. However, when I try to calculate velocity by subtracting the previous position from a feedback node and dividing by the estimated clock time I get a weird static effect and only one input shows in the wavechart. If I separate the velocity array into one data point the wavechart is able to display the velocity correctly.

Does anyone know why the wavechart is doing this? 

Setup and Result if I output all Velocities:

Dailydon_2-1633853002194.png

Dailydon_3-1633853024784.png

 

Setup and result if I output only one velocity:

Dailydon_0-1633852855847.png

Dailydon_1-1633852910239.png

 

 

0 Kudos
Message 1 of 5
(1,296 Views)

Hi Don,

 


@Dailydon wrote:

Does anyone know why the wavechart is doing this?


It's not the chart, it's your calculation…

What is shown in your "Position difference" indicator?

Why don't you attach real code? We cannot debug/edit images in LabVIEW!

 

Suggestion: You should initialize all shift registers/feedback nodes!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(1,286 Views)
Solution
Accepted by topic author Dailydon

Yes, please attach a simplified VI, not useless pictures..

 

Be aware that charting a 1D array with three points will create one plot with three new points per iteration. To update as three plots instead, you can either convert the 1D array to a cluster with three elements (you are already doing that with the "position chart", so duplicate that!) or built it into a 2D array transposed into an array with three rows and one column.

0 Kudos
Message 3 of 5
(1,272 Views)

Didn't catch that. Thanks for the help. Sorry about the image. I thought dragging and dropping the diagram over to web browser would let me upload that specific code like how LAVA allows you to drag the block diagram off the forum.

0 Kudos
Message 4 of 5
(1,249 Views)

You need to create a snippet for that to work.

Select part of code you wish to send, then click Edit-->Create VI Snippet from Selection.

This will create a PNG image that can be dropped on block diagram to recreate your code and is what's often used to share code on this forum.

0 Kudos
Message 5 of 5
(1,220 Views)