Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I change baud rate when ...?

I used Lookout Protocol Drivers OPC Server to create an MODBUS object. At that time, I can adjust the setting of serial port. Then, I connected a labview object to above MODBUS object in the front panel. It seems that I cannot use VISA to configure the port when the program is running. So, how to adjust the setting of serial port like baud rate? Thanks

Steven
0 Kudos
Message 1 of 2
(3,000 Views)



Hi Steven,

When you create the Modbus driver object in LPD, that's the time you set the baud rate, etc., for your Modbus object. Once set, these cannot be changed at run-time programatically (with a few exceptions, like phone number).

And when you're using the LPD driver, you cannot access the serial port with any other program (LV-VISA, in your case).

Why would you want to change the baud rate at run-time? Just curious. If you do really need to change baud rate on-the-fly, an option is to create multiple Modbus objects in LPD beforehand with different baud settings each. And then in LabVIEW, use the ones you want and ignore the others. Note that multiple objects within LPD can access the same serial port, but not two different applications
.

Hope this helps.

Khalid


Message 2 of 2
(3,000 Views)