06-21-2022 10:24 AM
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
Solved! Go to Solution.
06-21-2022 10:37 AM - edited 06-21-2022 10:40 AM
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 ...
06-21-2022 10:53 AM
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 🙂
06-21-2022 12:36 PM
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.
06-22-2022 01:10 AM
Thanks! It works perfectly now.
06-22-2022 02:04 AM
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: