LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform graph does not work in my VI

I`am working on a VI that reads analog trends from tab delimited files.

I want to display this data i a Waveform Graph.

Waveform Graph indicator is ment to be connected to the Analog trend 1,

but to in an easy way show you the error, I use a array constant. 

 

Waveform_trouble_block_diagram_small.PNG

 

 

I run this code, but the Waveform Graph does not show the plot.

You can see that the "Analog trend 1" indicator displays the data.

 

Waveform_trouble_front_panel.PNG

 

 

If I right-click on the Waveform -> Advanced -> Customize,

the data becomes visible.

 

Waveform_trouble_customize.PNG

 

If i open a new VI, put a Waveform Graph at the front panel, and wire the same constant to it in the block code,

the Waveform works as it shold.

 

If i copy my entire code into a new VI, the same error occur.

 

The displayd code is so far the only place the Waveform Graph is represented.

There are no local variables, reference, property node or invoke node linked to the Graph.

 

Is this a LabVIEW-bug, or is it only me?

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

Hi,

 

Its not a LabVIEW bug, you can observe in the 1st graph you have attached that y-axis scale in not proper. Right click on waveform graph-select properties-select scales tab- select y-axis, set the maximum and minimum y-scale or check the autoscale option.

 

or

 

Right click on waveform graph->select y-scale-> Autoscale

 

 It should work.

 

Let me know if this helps you.

Message 2 of 6
(2,665 Views)

Hi. Thanks for your reply, but it didn`t help me.

The autoscale option for y-axis was selected.

 

I just opened the VI on a different computer (with only LV2010 installed) with the same error,

but the problem was fixed when copying the code into a new VI.

 

I am a bit confused what caused the error, and I didn`t found a programming error.

 

My main computer has LV86, 2009 & 2010 installed.

Maybe it`s not a good idea to have multiple versions of LV on the same computer?

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

Can you attach your VI here. Let me check in my PC. Am using LV 8.6, 2009

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

Here is my project.

 

When the VI ask you to choose a file to open;

select; "090317_1415_OeKr.txt" 

0 Kudos
Message 5 of 6
(2,651 Views)

Firstly, the Analog trent 1 unbundled from the cluster is all reading 0's. And as you said i tried connecting a constant to the same waveform graph but it is not working in the same Vi.

 

This is may be due to cluster corrupted.

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