06-08-2011 12:26 AM
Hello,
How can I set arbitrary serial baud rate in Labview. MAX configuration provides only standard baud rate. For example, I want to set 125.000 bps.
Thank you.
06-08-2011 05:37 AM
Hi,
With the serial configuration VI you can set any baudrate you want BUT your hardware must support non-standard baudrate values.
A standard COM port does not support non-standard values.
What are you using for this port ?
Kees
06-08-2011 08:14 PM
Hello K C
I'm using BAFO USB to serial converter. I can't find any information whether it supports arbitrary baud rate. Do have exp with that? I use serial to communicate with microcontroller. The problem is that I can't arbitrary set my uC baud rate. For example, the value is 125000 bps, 250000, 600000 and so on.
So I expect to set the Labview serial.
06-08-2011 09:30 PM
It's simple to find out if the adapter supports arbitrary rates. Try to set a non-standard rate and see if you get an error. Very few adapters support this so I would be very surprised if yours did.
If you really need arbitrary rates, NI sells a PCI card for this. Since you can't set the uC to an arbitrary rate, why are you asking about it?
06-08-2011 09:51 PM
Thanks for your response Dennis.
MAX configuration only provides standard baud-rate from the drop-down list. Would you tell me how to set any value?
Because I can't set any value to the uC (only 125000, 250000, so on), that's why Labview should adapt to my uC. That is I want to set Labview baud rate to 125000.
Thank you
06-08-2011 10:06 PM
Why would the microcontroller not have a more normal baudrate?
06-08-2011 10:30 PM
@yoppy wrote:
Thanks for your response Dennis.
MAX configuration only provides standard baud-rate from the drop-down list. Would you tell me how to set any value?
Because I can't set any value to the uC (only 125000, 250000, so on), that's why Labview should adapt to my uC. That is I want to set Labview baud rate to 125000.
Thank you
You can set any baud rate you want in LabVIEW. MAX will only show what the hardware actually supports so you have your answer about the converter. LabVIEW is not hardware so saying LabVIEW should adapt to the uC is silly.
And I agree about the question about the uC. I would think you had to go out of your way to find one without standard baud rates. I don't think you have an RS-232 connection. Is it maybe SPI/I2C and you think this serial interface is RS-232?
06-09-2011 02:57 AM
I really appreciate your response. I'm using UART from uC. Actually, I can set standard baud rate but in slower spedd. For higher speed, that is what I describe above. Anyway, thank's to you all.