04-13-2010 03:31 AM
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.
04-20-2010 09:56 AM
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
04-21-2010 08:11 AM
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
04-21-2010 08:49 AM
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