LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BAUD RATE

I think I found the solution. I used a "Serial to USB adaptor" and I had no problems as far as the property node of LabVIEW is concerned. I'm not receiving any error message
0 Kudos
Message 11 of 13
(1,449 Views)

I have similar problems setting baud rates over 115200, and these posts make it sound like it is a hardware problem. (labview 7.1 and XP pro os) When I open the port at 153600, it appears to work, but there is no output from the port if the baud rate is over 115200 and when the program stops there is an error  "...not supported by the resource". The USB serial cable used is supposed to be capable of speeds up to 230K but I've nver been able to set it over 115200.

I noticed in the camera 3-1 picture of the block diagram, the port is opened by using the the visa open port and then a visa property node to set the port configuration.  I am using the visa find resource to find the available ports, then the visa configure serial port to set the config, and then the visa open port, in that order.  This method works on all the PCs and laptops I've tried, with internal, USB and PCMCIA serial port hardware so I assume it is a good method. The only hangup is with baud rates over 115200. 

My question is, is it better to use the visa property node instead of visa configure serial port? Or should I be opening the serial port before the visa configure (that seems counter intuitive but it's not the first time) 

Thanks,

Rikard

0 Kudos
Message 12 of 13
(1,289 Views)
The VISA Configure Serial Port uses property nodes to set the com port. Just look at the block diagram. A VISA Configure Serial Port also opens the serial port so the use of the vISA Open is kind of redundant. If you want to use a VISA Open, the traditional place to put it is before you do anything at all to the port (i.e. before the configure). This will have no affect on USB-RS232 adapters that do not support high baud rates, though.
0 Kudos
Message 13 of 13
(1,286 Views)