LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform with varying dt

Solved!
Go to solution

Hi everyone,

 

I'm trying to adapt the dt of a waveform plotting 2 datasets.

I've looked at different things (that for example : https://forums.ni.com/t5/LabVIEW/Nugget-Sporatic-Waveform-Chart/m-p/3203822#M929224), but I did not manage to do what I want. 

In the VI i've done, everytime I change the dt, the graph is updating the data at the right dt but it is displaying +1 sec on the X-axis (and not + dt sec).

Sorry if I'm not very clear, English is not my first language and also, I'm a newbie at LabView.

So I've put a picture of the simple VI I'm trying to do. Could you please tell me what's wrong with it?

 

Thanks a lot!

Cheers

0 Kudos
Message 1 of 6
(1,808 Views)
Solution
Accepted by topic author Iforire

the wfrm-datatype is for constant dt

if you capture the timestamps and your data in arrays you can display it in a xy graph 

 

for valid data structures to feed the xy-graph ( or mixed signal graph) see help and examples (help - find examples , seach for xy )

 

try to avoid the dynamic datatype ... and express vis ...

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


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

Thanks for the tip.

Now I'm trying with XY graph but the problem I have is that the X-axis is displayed ins econds and i'd like it to be displayed as the time. How can I do that? i've tried with the property node but I did not find anything...

See the VI below.

Thanks again 🙂

0 Kudos
Message 3 of 6
(1,797 Views)

We cannot tell from a picture of the diagram, but all you probably need to do is configure the formatting and style of the x scale.

0 Kudos
Message 4 of 6
(1,763 Views)

Thanks! It works perfectly now.

0 Kudos
Message 5 of 6
(1,728 Views)

Also be aware that xy graph understand complex arrays and will graph IM vs RE. This would cut your code complexity to less than half (e.g. only one shift register!)

 

Simplified draft:

 

altenbach_0-1655881417130.png

 

 

 

 

0 Kudos
Message 6 of 6
(1,720 Views)