OCCRA
Go to Post OooooohhH! OOOOooohh! Can I start the 2009 thread yet? Huh? Can I? Can I? - dlavery [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition > LabView and Data Acquisition
CD-Events   CD-Media   CD-Spy   FRC-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 12-28-2006, 08:38 AM
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 735
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Send a message via Skype™ to Jon236
Re: Getting ready to use LabView for 2007

Danny

The toolkit is great! Obviously, a lot of hard work went into it and will be appreciated by all.

I do have a couple of connection issues using my laptop and its single com port. Once I bring up LV 8.2, the SocketServer and the Desktop Provider, EasyC can't access the com port; I find I have to shut down all the NI apps in order to see com 1 again. Once I get my program downloaded to the RC and reconnect to the Dashboard port (bringing all the NI apps back up), now I find the sim vi won't communicate with the OI/RC setup.

Any assistance welcome!

Jon
Reply With Quote
  #2   Spotlight this post!  
Unread 12-28-2006, 10:57 AM
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
National Instruments
AKA: FrankenMentor
FRC #0418 (LASA Robotics / Purple Haze)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Austin, TX
Posts: 542
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Getting ready to use LabView for 2007

Quote:
Originally Posted by Jon236 View Post
I do have a couple of connection issues using my laptop and its single com port. Once I bring up LV 8.2, the SocketServer and the Desktop Provider, EasyC can't access the com port; I find I have to shut down all the NI apps in order to see com 1 again.
Yes, and I hate to be the bearer of bad news but this isn't going to be something we're going to be able to fix. The problem is that the Dashboard Provider opens the serial port for read, and constantly reads from the port - as long as the Dashboard Provider is up and running, no other applications will be able to use the serial port. The same goes if you have Hyperterminal open on that COM port, EasyC shouldn't be able to use the COM port if Hyperterminal is using that port!

Admittedly, the guys at WPI took some liberties in the persuit of a brief and informative video - if you're going to use only one serial port, remember that you need to stop the dashboard provider (or maybe pause, I don't have my USB-Serial adapter with me today so I cannot test this out myself) before attempting to have another program use the port. It is soooo much easier to use 2 serial ports - I had to steal an additional USB-Serial device (from the NI-Serial team a couple floors up from me) for this project - but certainly you must use what you have. It wouldn't surprise me if the WPI guys used 2 serial ports for this project; one dedicated to the Dashboard and one dedicated to uploading code and displaying the debug information (printf's).

Quote:
Originally Posted by Jon236 View Post
Once I get my program downloaded to the RC and reconnect to the Dashboard port (bringing all the NI apps back up), now I find the sim vi won't communicate with the OI/RC setup.
Without having my handy-dandy USB-Serial device on me, I can only surmise that the same thing is happening in reverse; EasyC might still have a handle open to the COM port, which causes the Dashboard Provider VI to be unable to open the Serial port. The easiest way to find out in the short term would be to close EasyC and see if the NI app can then use the COM port again. Unfortunately the Dashboard Provider VI is a bit lacking in the error checking department, I'll have to add an error handling block on the VISA calls when dealing with the COM ports to alert you to resource sharing conflicts. If you were to do the same it would show you the error.

-Danny
__________________
Danny Diaz
Lead Technical Mentor, FRC 418

Last edited by Danny Diaz : 12-28-2006 at 12:38 PM.
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
Problems with CMUcam & LABView Daniel_H LabView and Data Acquisition 1 01-30-2006 11:07 AM
Problems tracking with CMUCam2 in LabVIEW PhilBot LabView and Data Acquisition 5 01-17-2006 07:42 PM
**FIRST EMAIL**/2005 FRC Game Design Communication to FRC Teams Goobergunch FIRST E-Mail Blast Archive 1 01-06-2005 08:29 AM
Serial Communication in C++ Adam Shapiro Programming 8 01-21-2003 11:49 AM


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

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


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