Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| daq-and-datalogging:documents:usb-tc-csharp-digital-input [2023/06/13 14:47] – created Scandiweb | daq-and-datalogging:documents:usb-tc-csharp-digital-input [2023/07/26 23:57] (current) – Arthur Brown | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== USB-TC CSharp (C#) Digital Input ====== | ====== USB-TC CSharp (C#) Digital Input ====== | ||
| - | The following program continuously acquires data from the [[https:// | + | The following program continuously acquires data from the USB-TC digital port. The program then breaks down the eight bit value into separate bits to determine the state of each one. The state is displayed as a True or False. |
| To access the MccDaq API, add a reference to the MccDaq object. Adding the reference is usually accomplished by right clicking the Project [under the Project Explorer] and selecting Add Reference. The complete project is attached to the article and was created with Visual Studio 2008 using CSharp. Compiling and execution is quick as there is minimal Windows overhead and associated code. To recreate the project use Visual Studio' | To access the MccDaq API, add a reference to the MccDaq object. Adding the reference is usually accomplished by right clicking the Project [under the Project Explorer] and selecting Add Reference. The complete project is attached to the article and was created with Visual Studio 2008 using CSharp. Compiling and execution is quick as there is minimal Windows overhead and associated code. To recreate the project use Visual Studio' | ||
| Line 10: | Line 10: | ||
| The attached Code or Example is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. | The attached Code or Example is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. | ||
| - | {{https:// | + | {{https:// |
| \\ | \\ | ||
| Line 109: | Line 109: | ||
| **Attachments**\\ | **Attachments**\\ | ||
| - | [[ https:// | + | [[ https:// |

