Chandana Narayan Posted April 25 Share Posted April 25 (edited) Hi, I was trying to read digital input values using sample code provided for the USB 1024LS DAQ. The example code by default only reads the inputs from Port A (8 pins). I would like to read inputs from Port B and Port C pins as well. Guidance regarding what steps should be followed / changes should be made to sample code will be of great help !! Edited April 25 by Chandana Narayan Link to comment Share on other sites More sharing options...
0 JRys Posted April 25 Share Posted April 25 The USB-1024 series has two 8-bit ports and two 4-bit ports designated FirstPortA, FirstPortB, FirstPortCL, and FirstPortCH. Use these enumerations with the DConfigPort, DOut, and DIn functions. The DBitOut and DBitIn functions behave differently. They always use FirstPortA with bit numbers from 0 - 23. For example, to set the D0 on the second port, use bit number 8. Look up your device in the UL Help file to get more information on how to control it. Link to comment Share on other sites More sharing options...
Question
Chandana Narayan
Hi,
I was trying to read digital input values using sample code provided for the USB 1024LS DAQ.
The example code by default only reads the inputs from Port A (8 pins). I would like to read inputs from Port B and Port C pins as well.
Guidance regarding what steps should be followed / changes should be made to sample code will be of great help !!
Edited by Chandana NarayanLink 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