LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot signal with few data

Solved!
Go to solution

Hello everybody,

 

I have the followed problem. I would like to plot a signal that I have greated. I store the signal pattern in an array and this array I would like to give out with "Plot Waveform". The problem is now, that my signal can have a minimum of 4 values. The "Plot Waveform" function plots each position of the array into the graph. With 4 values the result is a triangle signal but that is wrong, the signal should be like a rectangle (Wave Drive signal). There are no steps between that. On the oscilloscope I have the correct signal with only for values in the array.

 

In the following 1 you can see the outcome. The signal has a offset of 5 V, just for information. The signal should be the signal in the following 2 (the orange one).

 

Hope someone can help me.

 

Best regards

 

 

 

 

Download All
0 Kudos
Message 1 of 2
(3,292 Views)
Solution
Accepted by topic author Fasching_K

Probably a thin step plot type in PlotWaveform will do what you want.

You can experiment with different plot styles by running graphs.prj native example: you can locate it with the example finder or simply search it in <CVIExampleFolder>\userint folder.



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 2
(3,278 Views)