Go to Post *gasp* robot? what robot? we were suppose to build a robot? - LightWaves1636 [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
  #1   Spotlight this post!  
Unread 04-06-2010, 08:36
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Help - Selfish library functions... (Won't share)

I'm still not 100% sure, but I'll throw out a couple things you can do.

Since this is offseason, and there are no rules, you can write a VI for the PC which reads the joysticks and keyboard directly. This is most easily done using the VIs in the Connectivity palette -- Connectivity>>Input Device Control. The VIs are a little bit old and all three devices are combined, but they work fine. You init the joystick and/or keyboard, and Query for the current state. Now you can do what you want with this info, essentially build your own DS or a supplement to the DS.

To get data to the robot, your low level approach is to use TCP or UDP. Until you have performance problems, start with TCP from Data Connectivity>>Protocols. You'll want one device to do a TCP Listen and the other device to Open a connection. Think about what you want to happen before both devices are booted.
Do you want the loop on the PC to block until the robot boots?
Do you want the loop on the robot to block until the PC boots?
There are some subtleties about which does the Open and which does the Listen, but it is pretty easy to switch later and I don't think you'll care in your application. Once the Open and Create succeed, you'll then want to enter a loop to Write your data on the PC and a loop to read it on the robot.

If you have difficulties with TCP, be sure to use the Help>>Find Examples to look at TCP usage. And if this is way off the mark, post a simple explanation of the problem you are trying to solve.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Source code for the Easy C Pro library functions? bobpskier Programming 3 05-02-2007 21:39
NEED HELP RUNNING MULTIPLE FUNCTIONS AT SAME TIME!! rushrtr3 Programming 1 12-02-2006 02:01
They won't let me help!! rachakate General Forum 4 20-02-2005 03:38
Share or not to share CA submissions Rich Wong Chairman's Award 31 29-03-2004 21:47
You Share Photos-We share Data Wayne C. General Forum 8 02-03-2002 20:21


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

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