0

Toggling generic CAN output?

Paul Summers 7 years ago in IQANdesign updated by Gustav Widén (System support) 7 years ago 1

Hello All,

I'm currently working on an application that requires a toggling digital signal to be sent over the generic CAN line at a rate of 50 Hz (on for 20 ms, off for 20 ms).... A third-party device that we need to communicate with uses this toggling signal as a redundancy check to confirm that another signal is valid.


Does anyone have an elegant way of making a square wave generator in IQANdesign that I could use as an input to the parameter?! Any suggestions would be greatly appreciated because I'm drawing a blank.


Cheers,

Paul

The easiest solution is if your application is running at the cycle time 20 ms, then you can have a GFOUT set to send continously every cycle, and an IDC that is blocking itself when active. The IDC will then be on one cycle and off the next.

GPOUT blink.ids4


If you are running a different cycle time e.g. 10 ms you could use delay times on the IDC and a different sending interval on the GFOUT