Hello, I'm just getting started with using the mcculw Python library to interact with a USB-1408FS DAQ - my apologies if this is a naive question.
I'm working through the examples, but I don't understand how to write to multiple digital output channels, for example: setting Port A Channel 0 and Port A Channel 1 to both be 0xFF.
Using the digital_out.py as an example, `dio.port_info` contains two ports.
If I execute `ul.d_out(board_num, dio.port_info[0].type, 0xFF)`, then Port A Channel 0 is set to +5V.
`ul.d_out(board_num, dio.port_info[1].type, 0xFF)`, then Port B Channel 0 is set to +5V.
Fundamentally, my question is - how do I set Port A Channel 1 to +5V?
Question
sgrindy
Hello, I'm just getting started with using the mcculw Python library to interact with a USB-1408FS DAQ - my apologies if this is a naive question.
I'm working through the examples, but I don't understand how to write to multiple digital output channels, for example: setting Port A Channel 0 and Port A Channel 1 to both be 0xFF.
Using the digital_out.py as an example, `dio.port_info` contains two ports.
Fundamentally, my question is - how do I set Port A Channel 1 to +5V?
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