Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Start and stop CAN transmition

I have been successful in getting an updating CAN message, repeating the last value. The problem is how can I stop the transmit? I have tried stop task, even after setting the property of 'cease transmit' and then writing one more value (or not) Stop task doesn't seem to stop a periodic CAN message, clear task does. But if I clear the task, I then have to reinitialize it when I want to stert sending CAN again.
I am using the Channel API in LV 6.1, if anyone has input on this, please reply.
0 Kudos
Message 1 of 3
(3,672 Views)
Hi,

How are you detecting that the interface is still sending messages?. Do you have another listener node or a bus analyzer?

DiegoF
National Instruments.
0 Kudos
Message 2 of 3
(3,672 Views)
I had a scope hooked up to the bus lines, and just saw activity. It turns out that since there was no 'awake' node, the CAN card never got an acknowledge from anything... because of this, it kept sending it's last message until it saw a responce from something.
I had ignored any errors that were just warnings, since I had other issues as well that was warning me (maybe I should have looked at those a little closer too 🙂
Anyway, now i've hooked up the two CAN channels and have the one just listening and giving the needed responses, with no data. Now when I start and stop CAN, it does what i'd expect.

Thanks for the help, though I had suspected this, and finally got a response from tech support that it's what the problem is.
0 Kudos
Message 3 of 3
(3,672 Views)