Creation and use of digital channels on a C++ Plugin
In my current plugin, I am able to add analog channels using the MountChannel() function specifiying the first argument as 5 (single precision). I now need to be able to Mount Digital channels and am not aware of an example out there for a C++ Plugin.
Can somebody please direct me to a digital channel C++ Plugin example or explain to me how to create and use digital channels?
Thanks in advance.
Jorge Gonzalez
Technical support
Hi,
the base DEWESoft structure isn't any different for digital/analog channels. Their major difference is the time base. Analog channels are synchronous, while digital channels are mostly asynchronous, meaning that they only receive a value when their value changes.
I don't think we have a specific C++ example for mounting async channels, but here a general introduction to mounting different channels: https://www.dewesoft.com/assets/dcom/dws7_dc_how_t...
Synchronism might also be worth checking out: https://www.dewesoft.com/assets/dcom/dws7_dc_synch...
Please try going through those guidelines and let me know if you'll need any more information.