LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change baud rate

Hi,
 
I have a CANopen-IO-Module which I want to test, I want to change the baudrate and check communication.
I use a NI-PCI-CAN-Card and LabVIEW with the CANopen-Library for communication.
 
 
After I changed the baudrate of the IO-Module, LabVIEW stops and shows the following error:

-
Error -1074388985 occurred at CANopen Interface Create.vi

Possible reason(s):

NI-CAN:  (Hex 0xBFF62007) You attempted to set a configuration attribute while the object is running.  Solutions: Configure attributes prior to opening the object; Stop and restart communication as needed so that you can update configuration attributes.
-

wants wrong??
0 Kudos
Message 1 of 5
(3,166 Views)
Well, the "Possible reason(s)" seems fairly self-explanatory. Were you trying to change the baud rate while your project was running? The message is telling you not to do that. You need to configure the settings before connecting to the module.
0 Kudos
Message 2 of 5
(3,136 Views)
Yes but how can I stop the communication and change the settings of the NI-CAN-Card with LabVIEW?
0 Kudos
Message 3 of 5
(3,112 Views)
From the manual:
You cannot set a property while the task is running. If you need to change a property prior to
starting the task, you cannot use CAN Init Start.vi. First, call CAN Initialize.vi, followed by
CAN Set Property.vi and then CAN Start.vi. After you start the task, you also can change
a property by calling CAN Stop.vi, followed by CAN Set Property.vi, and then CAN
Start.vi again.
0 Kudos
Message 4 of 5
(3,083 Views)
I only use the CANopen Library.
I found the mistake. I only closed the CANopen-object but not the CANopen-interface!
You can see the solution in the pic.

THX
0 Kudos
Message 5 of 5
(3,062 Views)