Author |
Message |
angel61606
Joined: Jul 8, 2020 Posts: 89
|
Posted: Dec 6, 2022 5:48 AM Post subject: Baud Rate in Serial Port |
|
Hi Jarek, I have two questions regarding to setting the baud rates for serial port element, first, Is it possible to set a custom baud for the serial port if yes how? coz I tried to use the "advance properties" of this element and change custom baud to a desired value e.g. 1000000, but it didn't work. I mean its baud rate remained 9600 after starting the design. second, I would like to send the value of baud rate "directly" to the serial port element as opposed to index of listed values in the properties window. I want to read the baud rate directly from a Raw reader element but i guess this isn't possible. coz I couldn't make it work. |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 983
|
Posted: Dec 6, 2022 10:39 AM Post subject: |
|
That advanced property is the way to set a custom baud rate. It worked for others. How do you know it is now working? Maybe try to use it to set a predefined value (like in the list) to test.
That would be also the way to set it directly (with a PropertySetter). |
|
 |
angel61606
Joined: Jul 8, 2020 Posts: 89
|
Posted: Dec 11, 2022 3:03 AM Post subject: |
|
I guess my main problem was to use Rawfile reader to set the baud rate, I read the baud rate from it, but I guess it only accepts one byte, and my file size was 4. so I changed it and the custom baud changed. |
|