Go to Post If we miss in autonomous, the team blames the programmer, If we miss in teleop, the team blames the drivers - Jared Russell [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition > LabView and Data Acquisition
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 20-01-2006, 15:03
Dan894 Dan894 is offline
Registered User
FLL #0894
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Flint, Michigan
Posts: 6
Dan894 is an unknown quantity at this point
Error #-1073807339 (Visa)

Labview doesn't work. We set the port to the correct baud rate, wired the camera, turned everything on, etc. The java CMUCAM2 program from 2005 works--we can grab frames, control servos, etc. When we try to run the camera GUI in Labview, we get this error:



-1073807339

VISA Read in query for result from serial port.vi->CMUcam2.vi->CMUcam2 GUI.vi
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2006, 19:37
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
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: Error #-1073807339 (Visa)

Quote:
Originally Posted by Dan894
When we try to run the camera GUI in Labview, we get this error: ... -1073807339
This code is a generic timeout error, meaning data was not received in a timely manner. This could be caused by a number of things, like:
  1. Connecting the CMUCam2 to both the RC and the PC at the same time.
  2. Serial Cable isn't connected securely.
  3. CMUCam2 isn't powered [enough].
  4. ... any number of reasons that might cause data not to be transmitted correctly to the PC

Please double-check your connections and your setup.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2006, 23:48
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Error #-1073807339 (Visa)

Also make sure that any other application that might be using your serial port (IFI Loader, HyperTerminal, etc.) is shut down before starting LabVIEW.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2006, 11:23
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 207
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: Error #-1073807339 (Visa)

Quote:
Originally Posted by Dan894
VISA Read in query for result from serial port.vi->CMUcam2.vi->CMUcam2 GUI.vi
What is this VISA everyone keeps talking about? I only have Master Card!

Seriously, this is getting way too complicated and our team is about to give up on the camera again. It's 3-400 $ in the KOP that could have been spent on something better.
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2016 Robot Inspector - Fingerlakes, Pittsburgh
2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship - Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2006, 16:06
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
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: Error #-1073807339 (Visa)

Quote:
Originally Posted by Doc Wu
Seriously, this is getting way too complicated and our team is about to give up on the camera again. It's 3-400 $ in the KOP that could have been spent on something better.
I'm sorry you feel that way, the camera this year has already been proven to be a very valuable resource.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #6   Spotlight this post!  
Unread 22-01-2006, 13:30
Dan894 Dan894 is offline
Registered User
FLL #0894
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Flint, Michigan
Posts: 6
Dan894 is an unknown quantity at this point
Re: Error #-1073807339 (Visa)

Might this be caused by a slow USB to serial adapter? Is there any way to change the time out period in Labview?

Last edited by Dan894 : 22-01-2006 at 13:37.
Reply With Quote
  #7   Spotlight this post!  
Unread 22-01-2006, 19:22
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
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: Error #-1073807339 (Visa)

Quote:
Originally Posted by Dan894
Might this be caused by a slow USB to serial adapter?
Doubtful, but I'm not an expert in USB to Serial Adapters.

Quote:
Originally Posted by Dan894
Is there any way to change the time out period in Labview?
Sure, but since the "Query for Result from Serial Port.VI" file contains the actual VISA read, we need to modify the calling source within the CMUCam2.vi file just a smidge. Follow these steps (I assume the CMUCam2 demo app is located in c:\CMUCam2, modify these instructions accordingly):

1. Open LabVIEW.
2. Click the "Browse" button under "Open"
3. Select the "CMUcam2 demo.llb" file within c:\CMUCam2 directory.
4. Double-click on the "CMUCam2.vi" in the list of VIs.
5. Press CTRL-E to get to the block diagram
6. The second conditional block is the main driving block - cycle through the conditions and look for calls to "query for result from serial port.vi", the icon will be a green VI with the words "Query Serial" on it. As input this VI has a timeout - just extend the timeout from 1 second (1,000 ms) to 10 seconds (10,000 ms) or whatever you want. There are several calls to "query for result from serial port.vi", so you might need to edit them all (I count 9 conditions with calls to "Query Serial" that you need to update the timeout).
7. Save the file.
8. Re-run the main application.

Good luck!
-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #8   Spotlight this post!  
Unread 22-01-2006, 19:24
plaidwarrior plaidwarrior is offline
Registered User
FRC #1038
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 1998
Location: Cincinnati OH
Posts: 3
plaidwarrior is an unknown quantity at this point
Re: Error #-1073807339 (Visa)

Our team had this exact same problem. We had to install the Labview VISA drivers to get it to work. That was kind of a pain because the VISA driver download was something like 140 MB and included drivers for way more stuff than just a serial port. There may be an easier way to get the serial port to work with the camera code provided, but we sure couldn't figure it out. I don't remember the exact link, but just go to ni.com and search for "VISA". Their search engine is very good. If you can't find it, e-mail me at drk@current.net and I'll ask our programming guys what the exact address was.

/* Daniel */
Reply With Quote
  #9   Spotlight this post!  
Unread 23-01-2006, 14:12
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
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: Error #-1073807339 (Visa)

Quote:
Originally Posted by plaidwarrior
That was kind of a pain because the VISA driver download was something like 140 MB and included drivers for way more stuff than just a serial port.
You're absolutely correct, VISA is a Virtual Instrument Software Architecture (VISA) capable of programming, configuring, and troubleshooting a wide range of instrumentation systems (that, coincidentally enough, can use a serial interface among others). VISA is an industry standard, and NI-VISA is our implementation of it - there are several other well-known implementations, but NI-VISA is probably the most popular. It would do you well to learn how to use VISA, as I am sure you will probably enter into a field that may require its use one day. There are also a lot of Colleges and Universities around the world that are moving to using LabVIEW and communicating with traditional instruments via VISA, it wouldn't surprise me if you found LabVIEW in your better College labs.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #10   Spotlight this post!  
Unread 24-01-2006, 15:50
Dan894 Dan894 is offline
Registered User
FLL #0894
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Flint, Michigan
Posts: 6
Dan894 is an unknown quantity at this point
Re: Error #-1073807339 (Visa)

We bought the IFI recommended adapter from Radio Shack (Model 26-183), problem solved. I talked to a few other people who had the same problem, one programmer said she switched to a laptop with a built-in serial port and it worked.

Now our camera is happy.
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
Average match score?!?! archiver 2001 9 23-06-2002 23:04


All times are GMT -5. The time now is 01:31.

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