LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a continuous time graph from just some events

Hi,

I measure thanks to an oscilloscope some implusive noise on the ADSL line, and receive as data a 1D-array of the length of the number of samples, I can get a graph from each measure easily.
But I would like represent them all on only one graph.

So far I just succeded in putting them one after the other with waveform graph. But I want a continuous time scale, and show the events occur at a right time. ( I also know the time of each event)

Thank you in advance for your advice.

Laurent.
0 Kudos
Message 1 of 4
(3,706 Views)

I can think of two ways of performing what you want to do:

1. Either you are using PlotWaveform and you can properly shift the plotted waveform via "Initial X" attribute so that it showd on the graph in the correct time position

2. Or you can build an X array with time references and PlotXY your data array versus such time array

 

 

... or I haven't understood exactly what your problem is! Smiley Wink



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,694 Views)
Thanks Roberto,

It works fine. But I have to face now some memory problems and crashes, when I build an array of a few million values... Is there a way to optimize it??

Here is my subvi, where I add the new event ( around 50 000 samples) to the previous one.

Thank you for your ideas.

Laurent
0 Kudos
Message 3 of 4
(3,651 Views)
Laurent, optimizing your VI for such huge arrays of data is a non-trivial task: I suggest you repost this question in the LabVIEW forum where you will find more experienced users to help you. My expertise in LabVIEW is a little bit out of date since I've not been using it for several years.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 4
(3,642 Views)