Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
daq-and-datalogging:documents:usb-tc-csharp-digital-input [2023/07/05 09:24] – Scandiwebdaq-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://www.mccdaq.com/usb-data-acquisition/USB-1608G-Series.aspx | 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.+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's File->New Project, select Visual C# and select Console Application. Create the new project and add the reference to the MccDaq Dot Net component. The easiest way to do this is to right mouse click the project in the Project Explorer and choose Add Reference. Select MccDaq from the NET list. Of course this assumes that you have installed the InstaCal software. 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's File->New Project, select Visual C# and select Console Application. Create the new project and add the reference to the MccDaq Dot Net component. The easiest way to do this is to right mouse click the project in the Project Explorer and choose Add Reference. Select MccDaq from the NET list. Of course this assumes that you have installed the InstaCal software.