07-09-2025 03:03 AM
Hello
So i'm trying to make "external communication" (a way for our device to connect to another device and send it data - currently using a bridging cable to send data to itself). The STREAM mode works fine on it's own... trouble comes if "Analysis start" is set to anything other than empty string, that's when it starts sending null characters. Upon closer inspection i found that it actually is sending real data, just at 9600 baud rate (default). I do not understand how setting analysis start string could trigger the baud rate to be set to default, especially because the indicator displays correct baud rate (tested with 115200).
Adding a snippet of the state machine with some example "xml" string.
Mode can be either SEF or STREAM, for Analysis start/end/fraction i usually use characters S E and F.
07-09-2025 03:43 AM
If your "device" changes its baud rate due to some command, you need to investigate your "device" on why it does it.
07-09-2025 03:47 AM - edited 07-09-2025 03:48 AM
Hi AeroSoul,
@AeroSoul wrote:
So i'm trying to make "external communication" (a way for our device to connect to another device and send it data - currently using a bridging cable to send data to itself). The STREAM mode works fine on it's own... trouble comes if "Analysis start" is set to anything other than empty string, that's when it starts sending null characters. Upon closer inspection i found that it actually is sending real data, just at 9600 baud rate (default). I do not understand how setting analysis start string could trigger the baud rate to be set to default, especially because the indicator displays correct baud rate (tested with 115200).
Btw. your snippet is fine, but we miss the subVI(s)…
07-09-2025 05:04 AM
- analysis start is in SEF Write (unbundle by name, same for analysis end and analysis fraction)
- SM starts in idle, and then configures the connection, after this it waits for "message tick" to send data
- i have a usb bridge cable, so i read what i send on the device itself (by using realterm or putty)
- SM starts in idle and then configures the connection, i start sending any data only when analysis starts, which is usually 5 - 10min after connection
- forced workflow, so the "message tick" doesn't clear before write ends. Probably not necessary, i didn't have it that way when i started, i added that after trying to debug for a while
- the commands are received, i tested it.
What bugs me the most is that if i change any settings and restart the connection, it starts ok (tested this also), for some reason it switches baud rate when analysis starts.
Appending AE_ExternalDevice
07-09-2025 05:43 AM
Hi Soul,
@AeroSoul wrote:
What bugs me the most is that if i change any settings and restart the connection, it starts ok (tested this also), for some reason it switches baud rate when analysis starts.
As has been said before: LabVIEW will not change the baudrate on its own.
When your device responses with a different baudrate then you should look (more) carefully on your device!