LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Graph as Control ?

I was surprised to notice that a waveform graph can also be a numeric Control.

Could someone give an example how to use it as a numeric Control ?

Thanks for help.
0 Kudos
Message 1 of 3
(3,139 Views)
The way I ususally use it as a control is in a pop-up window. A subVI can be set to open when called. When I press a button to graph the signal, this subVI is called and the signal is fed into the graph control. I have an event structure or a polling loop in the pop-up window subVI that lets it be shown until a button press closes it again. This is just one way to use the graph as a control.

Another might be to let your user "draw" a limit or control signal. Or created a wavefrom for generation. If it is free-hand, it will be rough, but if it is something where you read in what they drew and clean it up somehow, it could be very slick.

Hope that this helps,
Bob Young
0 Kudos
Message 2 of 3
(3,139 Views)
You cannot really use it as a control in a classic sense to input data directly, however you could set it as control in a subVI so you can wire to it directly from the calling program.

Graph can be used to input data, but this is done indirectly via property nodes (reading cursor positions, mouse-down coordinates, etc) and in these cases it is irrelevant if the graph is a control or an indicator. Typically, graphs are indicators.
0 Kudos
Message 3 of 3
(3,139 Views)