Creating oscilloscope controls with LabVIEW

ruhungry picture ruhungry · Jan 23, 2012 · Viewed 8.8k times · Source

I am creating simple application in NI LabVIEW - Lissajous Curves from signal generated by NI Elvis.

enter image description here

I have already added Osciloscope control and connected it to the XYGRaph. But I would also like to have some values that could be changed. I would like to have options to set values like in this image:

enter image description here

How can I Add them to my project?

Thanks in advance

Answer

Swinders picture Swinders · Jan 24, 2012

The two highlighted controls look like 'Dial' controls which can be found on the 'Numeric' palette on the 'Modern' control palette (also in 'Classic' and 'Silver' depending on you LabVIEW version).

Looking at the Vertical Position control this has the numeric indicator visible which can be show by right clicking on the dial, and from the menu move across 'Visible Items' and select 'Digital Display'.

The Scale Volts dial looks to have some kind of drop down menu which I guess would have pre-set values. You could use an enumerated data type for this and code you user interface event structure to sync these two. Your user interface event structure could also update the properties of the graph (use a Property Node from the 'Application Control' Pallet of the 'Programming' section of the Block Diagram 'Functions Pallet') to change the displayed range (Scale Volts).

Have you looked at the example code from the image block diagram?