08-31-2012 09:07 AM
Hi, I would like to know, how can change the graphic properties, according if it is selected one or other check box.
For example I would like to have 2 checkbox, one to indicate the amplitude scale of the graphic is 24V, and the other, to indicate the amplitude is 32V, and depends on witch checkbox is selected, edit the plot properties.
Thank you,
ATO
08-31-2012 09:11 AM
This might be what you're looking for:
Right click your graph in the Block Panel
go to: Create --> property node --> y-axis --> range -->
You can then choose your maximum y-range by changing it to a 'write' type property node. if you write '32' to the property node, the y-axis maximum will be 32. You can then use check boxes and boolean logic to indicate what the maximum y-scale is.
Hope this helps!
..Kevin
08-31-2012 09:28 AM
hi,
thank you for the answer.
But now I don't know how to select from diferents checkbox and disable the others. So if you can see in my menu I need to select one of the 4 options, and then scale the plot.
regards,
Anna.
08-31-2012 09:31 AM
you can use a case structure to determine what is selected.
In case where 24 V is selected, set the maximum to 24, in case where 32 is selected, set it to 32 etc etc.
Perhaps a check box may not be the best option. A drop down menu or a 'select box' (the circles, not squares) might be a better choice.
08-31-2012 09:33 AM
Start with the LabVIEW 101 tutorial. You did not post a VI or show the block diagram but I would hope that you are using the Radio Button control. If so, you just wire it to a case statement.