I'm implementing the Winform app to test whether loopback works on all pairs of bits. It works well on pair of bits in two different Ports, when it comes to pair of bits within one Port, no changes happen. What I'm looking for is the answer whether detecting loopback on 2 bits in one Port works on USB-1024LS? if no, do you have any recommendation of device that works for at least 24 DIO. Below is my POC gives a better understanding. Any suggestion would help. Thank you!!!
I've tried two way with loopback PortA0 and PortA1.
First is sending high/low to a single bit being connected to another:
DConfigPort(FirstPortA, DigitalIn)
Start timer to keep reading by using DBitIn(FirstPortA, BitNum, out BitValue)
when click a button, DConfigPort(FirstPortA, DigitalOut) and DBitOut(FirstPortA, 0, High)
Expecting PortA0 and PortA1 change to 1 and other 6 bits in PortA changes to 0, but all bits in PortA change to 0
If I remove loopback, only PortA0 changes to 1(wondering why)
Second is sending 0-255 to portA:
DConfigPort(FirstPortA, DigitalIn)
Start timer to keep reading by using DIn(FirstPortA, out DataValue)
when click a button, DConfigPort(FirstPortA, DigitalOut) and DOut(FirstPortA, 1)
Expecting PortA0 and PortA1 change to 1 and other 6 bits in PortA changes to 0, but all bits in PortA change to 0
If I remove loopback, only PortA0 changes to 1(wondering why)
Question
Liang
Hi,
I'm implementing the Winform app to test whether loopback works on all pairs of bits. It works well on pair of bits in two different Ports, when it comes to pair of bits within one Port, no changes happen. What I'm looking for is the answer whether detecting loopback on 2 bits in one Port works on USB-1024LS? if no, do you have any recommendation of device that works for at least 24 DIO. Below is my POC gives a better understanding. Any suggestion would help. Thank you!!!
I've tried two way with loopback PortA0 and PortA1.
First is sending high/low to a single bit being connected to another:
Second is sending 0-255 to portA:
Link to comment
Share on other sites
4 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