LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set vertical position in oscilloscope (Simulation)

Solved!
Go to solution

Hey Guys..

 

I am thinking to make a very basic oscilloscope in labview (simulation only).

So I will be showing 2-4 channels in the oscilloscope. For this purpose I will use a waveform graph and show 2-4 plots in the same graph.

 

But how will I set the vertical position of the individual plots (Channels) for comparison?

 

Suggest any Idea please..

 

0 Kudos
Message 1 of 7
(4,999 Views)

Use the add function to shift the waveform up or down? What datatype are you using for your graph? You might have to unbundle the array part of your waveform before adding and bundle it back in.

Message 2 of 7
(4,967 Views)
Solution
Accepted by topic author Nayan
Doing an add will change the values of your y array do any measurements you take will be wrong. For an offset adjustment, assign each plot to a different y scale and adjust the min and max of the scale to move the waveform up and down.
Message 3 of 7
(4,952 Views)

Very Very Thanks to both of you for the replies..

 

Thanks Dennis.. It worked.

0 Kudos
Message 4 of 7
(4,911 Views)

Hii..

I am attaching a vi here in which I can change the verical position of the two plots simulataniously (I want two Y scales only, not more than that)

 

I actualy want to change the vertical positions of all the 4 plots. How can I do it?

Download All
0 Kudos
Message 5 of 7
(4,891 Views)

You can use the same way that you created a second axis to create a third and the forth. Just keep adding ActYScl, ActPlot, Max, Min and YScaleIdx to the property node. Normally on an Oscope you adjust the max and the min with just one knob. You can emulate the same thing by setting the selected axis max to Knob + HalfRange and the min to Knob - HalfRange.

Message 6 of 7
(4,806 Views)
Solution
Accepted by topic author Nayan

I got the proper solution for it.

 

I can use 'Waveform Scale & Offset VI' for each plot before plotting the graph and set a numeric control to adust the offset.

 

Then there's no need to have 2 or 4 different Y-scales.

 

 

0 Kudos
Message 7 of 7
(4,636 Views)