DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

write single ID to CAN Bus

Hello DIAdem Team,

 

Is there a possibility with DIAdem to write just a single CAN ID to the CAN bus? 

I currently have a DAC with a default TAK using 200Hz.  When connected to the CAN output block, the ID is also written to the CAN bus with 200 Hz.  I would like to send just a single CAN Id once, not more.

 

Is there a possibility? 

 

Thanks,

Jeff

P.S. Replies in German are also welcomed.

0 Kudos
Message 1 of 4
(3,941 Views)

Hello Jeff,

 

there is no way to send out CAN frames independent to a DAQ task. To solve your problem, you might connect your CAN output block to a separate DAQ task that will stop after a single scan. This should help.

 

 

Rainer

 

0 Kudos
Message 2 of 4
(3,894 Views)

Thanks,

 

does anyone know if it is possible to send out a single message via a VBS block?  ie open the CAN output block and have it send out one message?

 

Jeff

 

0 Kudos
Message 3 of 4
(3,878 Views)

Hello Jeff,

 

unfortunatelly it is not possible to access CAN via script. The only way you can access CAN is through DAC. You might load a DAC scheme that outputs a single CAN frame, run it via script and then load and run the DAC scheme that acquires data from CAN. But keep in mind that between running these two DAC schemes, the CAN is off. That might result in side effects depending on you bus topology.

 

I have attached a simple DAC scheme you can use as a base for solving your problem. If you connect your CAN output block to the clock block "Takt1" and your CAN input block to the clock block "Takt2", the DAC scheme does what you expect. First the system "Takt1" is active and outputs a single CAN frame. After this system is finished, the system "Takt2" becomes active and you data acquisition starts.

 

Rainer

0 Kudos
Message 4 of 4
(3,875 Views)