LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I enable/disable the transmission of a can frame? (filter etc...)

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.

0 Kudos
Message 1 of 3
(2,546 Views)

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,

0 Kudos
Message 2 of 3
(2,521 Views)

 

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.
  

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 3
(2,516 Views)