Toggling generic CAN output?
Paul Summers 6 years ago in IQANdesign • updated by Gustav Widén (System support) 6 years ago • 1
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.
Customer support service by UserEcho
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.
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