Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a baudrate of 921600 with visaconf

Hi,
nobody uses serial ports under linux with such high baud rates?
Cheers
Thanks
Thomas
0 Kudos
Message 11 of 19
(2,839 Views)
Visa does support any Baud rate, the issue though is VISA does not set the serial port speed, your serial driver does. And if I read correctly you are using a non-National Instruments Serial Driver. I would suggest contacting them to see if if this is a known issue with their serial driver.

In the Knowledge Base you referred to on NI-VISA baud rates it states this:

"NI-VISA itself does not limit the range of baud rates you can use. Instead, the baud rate request passes directly to the device driver for the serial interface. NI-VISA returns a success if the driver supports the desired baud rate."
-Marshall R
0 Kudos
Message 12 of 19
(2,836 Views)
Hm I am using the cp210 driver from silicon labs and it does support 921600 according to them. is there a maximum number of different baud rates that are allowed for the pull down menu in visaconf? I can even see that the 921600 case is present in the drivers c program.
Thanks
Thomas
0 Kudos
Message 13 of 19
(2,833 Views)
Sorry I have another comment,
so if the serial driver determines the baud rate, what do I set under visaconf in the resource editor to configure the port? I thought this is a preset from visa. If I understand it now right, that means that visa connects to the driver to see what baud rate it supports and these options are then displayed in the pull down menu?
Is there another method to setup a serial port which does allow for baud rates to be typed in?
Thanks for your help
Thomas
0 Kudos
Message 14 of 19
(2,814 Views)
Hi

Its more like trying a number of baudrates to set and it probably is a correct baudrate if no error is returned.
greetings from the Netherlands
0 Kudos
Message 15 of 19
(2,812 Views)
So if my driver supports 921600 why doesn't it come up in the pull down menu as an option? in fact I tried all available linux computers and found none of them shows 921600 as an option in visaconf ....

So visa tries all possible baud rates and then displays in the resource editor the ones that seem to work?

Thanks
Thomas
0 Kudos
Message 16 of 19
(2,811 Views)
No

VISA has a fixed list that is supported b y most serial systems.
In LabVIEW you can use the value you want to set the baudrate and if no errormessage appears it is a supported baudrate.
VISA cannot interrogate the driver for supported baudrates thus there is no correct dropdownlist.
greetings from the Netherlands
0 Kudos
Message 17 of 19
(2,807 Views)
Hi Marschall R,
I troubleshooted more and found that it is a labview issue that i am not getting the right reponse and a timeout error. I assume it is the fact that the resource editor under visaconf does not allow me to specify 921600 baud. Is there a workaround? I understand visa supports any baud rate but if I am using a USB to serial driver and have to therefore create that local serial port, right?
Hope you can help to solve this issue.
Thanks
Thomas
0 Kudos
Message 18 of 19
(2,785 Views)
Thomas,

I will be working with Rasheel in the thread on the discussion forum you linked. We will work together to figure something out.

Cheers,
-Marshall R
0 Kudos
Message 19 of 19
(2,760 Views)