|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
Using Interrupts or DMA or timing to control digital I/O switch
Task:
We are trying to kick a ball with a revolving drum, driven by a toughbox from andymark and a CIM motor. We are using an Allied Electronics Infrared Optical Switch as a digital I/O. This I/O has a resolution of about 1ms pulses. Problem: We have written code to stop our Jaguar driving the CIM / toughbox when the beam of light is detected. Note: There is a hole in our drum for the light to pass through. What Happens: When we run the code, we are seeing that the switch is detected every other rotation of our drum. So it seems that lab view is running to slow to accurately pick it up. The way our code works is, there are two routines in tele-op. One to fire, which is a button press and a set motor value to the jaguar. The second routine is to reposition, which is currently driven by a button press, with a series of case structures. Any recommendations will be helpful. I can post our code in a few hours. Any ideas would be helpful. Another quick question.... is there a way to use labview to set a flag. Say, I want a button press, to turn a switch "on" and then a routine would run, and another boolean var, like a digital I/O or switch would turn off this routine. Thanks in advance for your help! |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Interrupts on Digital Inputs | Analog | C/C++ | 6 | 03-02-2009 23:05 |
| Using Digital Output to control Brake/Coast on Victor | Neurovirus | Programming | 11 | 31-01-2008 23:33 |
| More than 6 RC digital input interrupts? | Jared Russell | Programming | 2 | 06-02-2007 15:41 |
| No value in digital ins using NASON pressure switch. | Ari Allyn-Feuer | Programming | 1 | 18-02-2006 01:18 |
| Using a switch to control a PWM | Max Lobovsky | Programming | 11 | 25-02-2004 17:20 |