Go to Post "FIRST isn't what it used to be anymore. It makes me upset and it makes me question many things." - Arefin Bari [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 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
  #2   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
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 07:30.

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