02-06-2018 04:48 AM - edited 02-06-2018 04:51 AM
Hello,
I using Labview 2012 and Can Bus.
After the program has been initialized, how I can be able to change the host CAN baud rate and maintain host communication.
Solved! Go to Solution.
02-06-2018 05:44 AM
02-06-2018 05:48 AM
Hello,
could you please send me the file with the version labview 2012
Regards;
02-06-2018 05:55 AM - edited 02-06-2018 05:57 AM
02-06-2018 07:28 AM - edited 02-06-2018 07:30 AM
yes I did that but still, when I change the baud rate after running the application I miss the connection
02-06-2018 07:42 AM - edited 02-06-2018 07:43 AM
Hi salmaiss,
I joined your questions to keep things in one place…
when I change the baud rate after running the application I miss the connection
Well, both ends all devices on the CAN bus have to use the very same baudrate. And usually you don't change the baudrate after starting a communication…
So what is your real problem? Can you explain with more details?
02-06-2018 08:00 AM
Hi,
when I change the baud rate I send a message to the all devices to change the baud rate also,
so my question to be able to change the baud rate on all devices using CAN message after running the app.
02-06-2018 08:16 AM
Hi salmaiss,
when I change the baud rate I send a message to the all devices to change the baud rate also
It's quite hard to read your block diagram because you don't use AutoCleanup as often as needed…
Which "devices" are you talking to?
Do those devices understand the CAN message your are sending?
Are they receiving that message?
Do they answer with an OK or ERROR status?
my question to be able to change the baud rate on all devices using CAN message after running the app.
You need to read the manual of your devices to learn how to change their CAN interface baudrate!
Usually I have to power off/on devices before they start to use a different baudrate. And usually you don't change the CAN baudrate after a communication has been established…
02-06-2018 09:21 AM - edited 02-06-2018 09:22 AM
Generally, the baud rate is setup up on opening the database. The connection cannot occur if the connection parameters are not set properly. Likewise, Connection parameters should normally be changed after closing the current connection and before the next.
In your attached PNG file, their is no apparent flow control on where your sub-vi (5) occurs in the process.
02-07-2018 03:25 AM
Hello,
thank you for the prompt reply,
the project which I'm working is:
there are a host and ECU connected by CAN.
I want to know if there is any way to change the baud rate between the ECU and the HOST after initialized the app.