Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| daq-and-datalogging:documents:usb-quad08-csharp [2023/07/11 05:25] – Scandiweb | daq-and-datalogging:documents:usb-quad08-csharp [2023/07/28 01:04] (current) – Arthur Brown | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== USB-QUAD08 C# example | + | ====== USB-QUAD08 C# Example |
| This example demonstrates how to program a USB-QUAD08. It configures one channel to read position from a quadrature encoder and another channel to count events using the modulus operator. To do this, it uses the CConfigScan to configure the counter inputs and the CLoad32 function to load the modulus value for the event counter. The program reads the input continuously. This is setup using the CInScan function with the background continuous scan options. The data is saved as an ASCII file compatible with the DASYLab Read Module. | This example demonstrates how to program a USB-QUAD08. It configures one channel to read position from a quadrature encoder and another channel to count events using the modulus operator. To do this, it uses the CConfigScan to configure the counter inputs and the CLoad32 function to load the modulus value for the event counter. The program reads the input continuously. This is setup using the CInScan function with the background continuous scan options. The data is saved as an ASCII file compatible with the DASYLab Read Module. | ||

