I would like to use DConfigPort and DOut commands for example but am mystified by the parameter MccDaq.DigitalPortType.
When I click on the options for that parameter in the UL library Help reference I get descriptions about options like FirstPortA, FirstPortB etc. This language of ports is totally unfamiliar to me. All I know for a USB-201 is that I have DIO0 to DIO7.
Could someone please tell me how to specify which DIO I would like to configure and talk to?
Better yet could someone please give me example code like in the above article for MATLAB that would say for example set DIO0 as an output and set its signal to high?
Question
Jen
I would like to control the digital inputs and outputs of a USB-201 in MATLAB using the Universal library for .NET.
I have seen the code provided in https://kb.mccdaq.com/KnowledgebaseArticle50779.aspx and am trying to add to it.
I would like to use DConfigPort and DOut commands for example but am mystified by the parameter MccDaq.DigitalPortType.
When I click on the options for that parameter in the UL library Help reference I get descriptions about options like FirstPortA, FirstPortB etc. This language of ports is totally unfamiliar to me. All I know for a USB-201 is that I have DIO0 to DIO7.
Could someone please tell me how to specify which DIO I would like to configure and talk to?
Better yet could someone please give me example code like in the above article for MATLAB that would say for example set DIO0 as an output and set its signal to high?
Link to comment
Share on other sites
2 answers 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