Scott Taylor Posted April 13, 2023 Share Posted April 13, 2023 Could I get some code snippets showing how to configure a USB-DIO96H/50 for output, 8 bit ports Link to comment Share on other sites More sharing options...
0 JRys Posted April 13, 2023 Share Posted April 13, 2023 The attached file uses C# to demonstrate how to discover the device and how to program and update the ports. Use the DOut function to update all eight bits on a port and the DBitOut function to update a single line on any port. Note that DBitOut uses FirstPortA as the port type with bit numbers ranging from 0 to 95. The same holds for DBitIn. To run the attached code, use Visual Studio and create a 32-bit C# Console application that references our MccDaq dll. To add the reference, right-click references in the Project Explorer, select Add Reference, select Extensions, find, and select MccDaq from the list. Program.cs cjanand 1 Link to comment Share on other sites More sharing options...
Question
Scott Taylor
Could I get some code snippets showing how to configure a USB-DIO96H/50 for output, 8 bit ports
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now