![]() |
HELP!!! BOOLEAN VARIABLES IN LABVIEW
Hey guys, I'm having some trouble getting limit switches working in our robot. We are using 3 Limit Switches for different positions on the Lazy Susan. We have planned out the code in notepad as follows,
Code:
//ls1 = limit switch 1 |
Re: HELP!!! BOOLEAN VARIABLES IN LABVIEW
You can create a booolean variable by right-clicking on the front panel of the VI and selecting Modern and then navigating to the Boolean palette. There should be options there. An indicator/controller will appear on the backpanel.
To init the boolean, you can wire a constant to it, and then reference the boolean by local variables, (created by right-click on the object > create > local variable). The initial value will only be used when the indicator hasn't been accessed by a local variable and updated. |
Re: HELP!!! BOOLEAN VARIABLES IN LABVIEW
For the most part, in LabVIEW, what would be variables in C are just wires between things. I don't think you need to do anything special. Just read the state of your limit switch. Its output will be a boolean value that you can wire up to the rest of your functions.
|
| All times are GMT -5. The time now is 02:27. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi