|
LabVIEW Switches
Hey guys, I know how to do this in C++ but I have no clue how to in LabVIEW.
Attached to my driver station I have a switch with 3 possible values. I want to use this switch to control a motor speed, as 3 different values.
Orientation 1 = Off
Orientation 2 = .5
Orientation 3 = 1
However I don't know how to communicate this in my code... my team has this particular switch plugged into input 2 on the driver station, the victor for the motor I want to control is plugged into slot 1 on the first digital sidecar. Any help when it comes to this would be much appreciated.
Also, I can't really figure out much in LabVIEW and all my code seems really messy. I understand LabVIEW in general, but I can't seem to master the FRC components of it. If anyone has a link to (or better yet, has written) a tutorial on the topic, please let me know, some aspects of this are driving me insane.
Thanks!
Nick
|