08-24-2009 02:23 AM
Hello,
I use the CAN Transmit-periodic.vi in LV 8.5, I want to enable or disable the transmission of a frame without stop the loop of my VI, does it exist in the frame api a vi which could stop, or mask the transmission of a frame?
It's important I don't want to stop my VI that send my frame just filter a frame that I don't want send on my CAN bus...(I would command it with a boolean for example).
Thank you.
Bye.
08-26-2009 07:13 AM
Hi,
I don't think that this is a CAN related problem.
You should have a look at State Machines, that would help you a lot to do it.
Please have a look at this link : Application Design Patterns : State Machine.
If you have any questions, don't hesitate to ask 😉
Have a nice day.
Regards,
08-26-2009 07:49 AM
Hi there
I'm not familiar with NI-CAN, but take a look at
\vi.lib\Nican\nican.llb\ncAction.vi
Can be found in the CAN\Frame API\Advanced palette.
Start Transitions the CAN object from stopped (idle) state to started (running) state. If the CAN object is already started, this operation has no effect.
Stop Stops the CAN Object. For example, if the CAN Object is configured to transmit data frames periodically, this action stops the periodic transmissions. This action will also clear all entries from the read queue.