|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||||
|
|||||
|
Re: Error #-1073807339 (Visa)
Quote:
Please double-check your connections and your setup. -Danny |
|
#3
|
|||||
|
|||||
|
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.
|
|
#4
|
|||||
|
|||||
|
Re: Error #-1073807339 (Visa)
Quote:
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. |
|
#5
|
|||||
|
|||||
|
Re: Error #-1073807339 (Visa)
Quote:
-Danny |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||||
|
|||||
|
Re: Error #-1073807339 (Visa)
Quote:
Quote:
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 |
|
#8
|
|||
|
|||
|
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 */ |
|
#9
|
|||||
|
|||||
|
Re: Error #-1073807339 (Visa)
Quote:
-Danny |
|
#10
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Average match score?!?! | archiver | 2001 | 9 | 23-06-2002 23:04 |