Go to Post You are becoming the leaders of tomorrow by leading today. - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 22-02-2010, 11:31
mikeppalmer mikeppalmer is offline
Registered User
FRC #1798
 
Join Date: Dec 2007
Location: Tucson, Arizona
Posts: 3
mikeppalmer is an unknown quantity at this point
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!
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 11:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi