|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Java to Labview, using "if else" statements and pressing buttons
Here's a button toggle example.
As the example stands the green output alternates between a 1 or 0. You can eliminate the inside Case statement if you don't put anything inside it. If you want a real number output use "Boolean To (0,1)" located on the boolean palette. If the claw is solenoid operated you can just stick the activate inside the toggle where indicated and use this in Teleop. A motor operated claw would require a longer cycle, but could be used, as is, inside Periodic Tasks or Autonomous Independent, not in Teleop. Last edited by Mark McLeod : 23-02-2011 at 10:27. |
|
#2
|
||||
|
||||
|
Re: Java to Labview, using "if else" statements and pressing buttons
Quote:
Simple, easy to read, and can be written in a few seconds. Even when you count the variable declaration. |
|
#3
|
|||||
|
|||||
|
Re: Java to Labview, using "if else" statements and pressing buttons
Quote:
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|