Using 3 analog inputs and 1 counter I am able to receive voltage and encoder data simultaneously using DaqInScan() on a USB-1808X. The scan options include MacDaq.ScanOptions.Background and MccDaq.ScanOptions.Continuous.
Now I want to include occasional digital output. Within an application a user will click a button and the following code will be executed:
Question
PhilipW
Using 3 analog inputs and 1 counter I am able to receive voltage and encoder data simultaneously using DaqInScan() on a USB-1808X. The scan options include MacDaq.ScanOptions.Background and MccDaq.ScanOptions.Continuous.
Now I want to include occasional digital output. Within an application a user will click a button and the following code will be executed:
ushort DataValue = 255;
PortOutputNum = MccDaq.DigitalPortType.AuxPort;
MccDaq.ErrorInfo ULStat = daqBoard.DOut(PortOutputNum, DataValue);
The universal library returns the error:
Digital port not configured correctly for requested operation.
What I’m I doing wrong?
Link to comment
Share on other sites
5 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