LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unwanted zero plotted in waveform chart

I am getting 3 values plotted on a waveform chart when using values from a 1D array with 2 elements. The 3rd value is a constant zero. I've attached screenshots showing this problem in a minimal example. Does anyone know how I could remove this zero value?

 

waveform1.pngwaveform2.png

0 Kudos
Message 1 of 4
(2,483 Views)

Right click the Array to Cluster and select Set Size.  It is probably 9, and you want it to be 2.  

0 Kudos
Message 2 of 4
(2,479 Views)

Before your waveform output, you have an array to cluster.  Under properties, what is the size of the cluster?  I am going to guess that it is set to 3  <default is 9>.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 3 of 4
(2,476 Views)

Hi,

 

replace the ArrayToCluster function by a simple BuildArray!

This way the whole code becomes scalable… 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,470 Views)