LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem setting baud rate of 3rd party USB-RS232 cable w/ VISA 4.1 and LV 7.0


CoreyNE wrote:

Hi Rob,

 

Hopefully you are still being alerted to posts on this tag.  I am trying to set up a LabView program to communicate with a QMS 100 and seem to be running into similar problems as you were having using the SRS drivers.  I am using Windows XP and LV 8.5 and the data acquisition program that comes with the QMS works just fine.  However I couldn't even get the basic ID query VI to work.  Do you have any other insights?

 

Thanks,
Corey


 

I'm impressed that I am still getting the e-mail alerts for this thread 😃

 

I'm using my RGA happily by running the software from SRS on a virtual Windows machine on my Intel-based Mac. Like you, I ran into trouble getting the interface to LabVIEW to work robustly. I could issue single commands and get responses easily enough, but I never got the scanning to work. Since I needed to upgrade my ancient computer anyway, I decided the most cost-effective solution was to get Parallels and run the WIndows software from SRS. I can save the RGA spectra into my Mac file system for record keeping and backup along with files generated by LabVIEW  running under the MacOS. Essentially, I gave up and paid for a solution that works 😃

 

Best of luck,

-Rob

 

Message 11 of 16
(1,256 Views)

Rob,

 

I'm glad you are still linked in to this.  Do you have any thoughts on why this code (see attached) wouldn't work?  I basically tried this and the "Configure VISA Serial Port.vi" but with no luck.


Thanks.

 

0 Kudos
Message 12 of 16
(1,243 Views)

In what way does the attached code "not work"?  Are you getting an error message?  If so, what does the error code and message say?

 

Are you sure you need flow control?  Have you verified all the baud and parity settings?  Are you sure you are using the right kind of cable (null modem vs. straight through)?  Have you tried issuing the command using Hyperterminal?

0 Kudos
Message 13 of 16
(1,240 Views)

The Visa session times out before I get a reply from the device I am querying.  The settings I am using are taken from a version 7 Labview driver that the manufacturer posts on their website (I am trying to get a hold of someone in tech support there to confirm these settings).  I used the windows software that came with the device to check the cable and my USB to serial convertor and that worked fine. 

 

I have not tried hyperterminal.  (Unfortunately this equipment is not in my lab - I am helping out a research group at a university so my access is limited.)

0 Kudos
Message 14 of 16
(1,235 Views)

I think that I used no handshaking where you are using the hardware handshaking. On the other hand, my old script indicates 1 stop bit, but the manual (and your code) indicate that 2 stop bits is correct. So I'm not sure I'm looking at the right configuration script. I'd try it with no handshaking and see if that works.

 

-Rob

 

0 Kudos
Message 15 of 16
(1,230 Views)

Thanks.  I'll give all three things a shot this week (hyperterminal, no handshaking, 1 stop bit).

 

Corey

0 Kudos
Message 16 of 16
(1,211 Views)