|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Programing a Digital Input on the DS in Labview
I have been searching the forums on CD for quite some time now with now luck to my question... In labview how to you program a simple digital switch on your DS (wired into the extra digital and analog inputs on the right side) to just run a motor at "x" amount of speed until the push button is released?
I may have just simply overlooked the function in labview but i can't seem to find it... Can anyone help me out with this? Is there a demo video online explaining how to do this? Thanks! |
|
#2
|
|||||
|
|||||
|
Re: Programing a Digital Input on the DS in Labview
The functions are found in the Block Diagram Functions under WPI Robotics Library -> Driver Station
Or do a search in Functions for GetDigInput GetAlgInput |
|
#3
|
||||
|
||||
|
Re: Programing a Digital Input on the DS in Labview
Quote:
I don't see how i missed that... Although I can't seem to figure out how to set what digital input I am looking at? I see the pin where is says "Driver Station Digital Input (1-8)" but what goes there? a constant? or do i need to wire that to a different block? Thanks! |
|
#4
|
|||
|
|||
|
Re: Programing a Digital Input on the DS in Labview
Quote:
|
|
#5
|
||||
|
||||
|
Re: Programing a Digital Input on the DS in Labview
The DS Get Digital Input VI outputs a boolean array of length 8. You can wire it to an Index Array to get the individual values. The attached picture should output the first 2 digital inputs, and the last one (remember an array of n elements goes from 0 to n-1), as boolean indicators on the VI front panel.
|
|
#6
|
||||
|
||||
|
Re: Programing a Digital Input on the DS in Labview
Boy I have some catching up to do here. First of all, what is the difference between the Joystick.Get.Vi and the Joystick. GetRaw.Vi? They seem to be pretty much the same. What I'm trying to learn is how to use a Joystick button to control the state of a motor; ie. hold down a button and the motor goes forward. I've got the motor control figured out, I'm just lost on how to get it wired to the Joysitck Vi. Any guidance would be much appreciated
![]() |
|
#7
|
|||
|
|||
|
Re: Programing a Digital Input on the DS in Labview
Quote:
Are you trying to use the Relay VIs to control the motor? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 4V - 5V signal on Digital Input | tdlrali | Programming | 5 | 06-03-2008 19:06 |
| digital input question... | Kevin Karan | Programming | 9 | 12-04-2004 07:34 |
| counting digital input | CharlieWilken | Programming | 9 | 22-03-2004 19:56 |
| How do u hook up the digital input to the sensor's wires | Fares | Technical Discussion | 2 | 14-02-2003 16:41 |
| Robot Digital Input | Mike Norton | Technical Discussion | 5 | 16-01-2003 14:31 |