Go to Post We always cut our parts to a tolerance of /- the width of that particular sharpie mark. - Whippet [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

 
Reply
Thread Tools Rate Thread Display Modes
  #31   Spotlight this post!  
Unread 04-04-2011, 20:48
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Arduino and LabVIEW

Excellent, great job. May I ask what your methods are? I'm just curious. It seems that with 5 ports you could get 32 outputs, but I'm not sure about 256.
Reply With Quote
  #32   Spotlight this post!  
Unread 04-04-2011, 21:53
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 684
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: Arduino and LabVIEW

It was this that got a train of thought starting:
Quote:
Originally Posted by Mark McLeod
Maybe use one DIO to signal when the number has changed and should be read by the Arduino.
Have one of the four lines be a "control" bit: start with 0 (no info forthcoming), switch to 1 for first group of data (the 3 other lines), pause, switch to 0 for second group of data, pause, switch to 1 for third group, pause, switch to 0 to end. (Obviously you could extend or contract this, as long as the last group is a 1, so to loop back to 0.) I could get 9 bits of info, but that didn't seem right. I may make that last bit a parity or check bit "some day". The "pause" would be long enough to read the pins and do one loop of code, but I was trying not to be too cross-dependent with timing. Even at 1/4 second per group, it would be only a second to transmit the info.

I had scribbled the Arduino and LabVIEW code in bed last night, and got half way thru it by the time I got back to the robot, but my lead programmer had different ideas (a piddly 16 numbers - pft! ), so we went his way. Still haven't tested that it really works, either way.
Reply With Quote
Reply


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


All times are GMT -5. The time now is 04:33.

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