Go to Post My robot is my significant other. It makes me happy, sometimes it makes me sad, i wish it would lose some weight but it is always there for me. - rachelholladay [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #20   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: 683
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
 


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 20:54.

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