Hi Guys
I am building a cable tester and need some assistance with a bit of code.
This bit of code is used when testing the cable for intermittent connections.
This is what I would like to use, but it returns syntax errors..
If b0>0 and pin0 = 0 then : low portb (b0-1) : high portc 5 : b12=1 : endif
The value in 'b0' represents the output port that is connected (via the cable under test) to input 0.
If input 0 goes LOW then turn off the portb OUTPUT that is driving it (in this case the value in b0-1)
This line would be repeated for b0 to b9.
Basically I am asking how do I change the port number in relation to a variable.
Cheers
Alan
I am building a cable tester and need some assistance with a bit of code.
This bit of code is used when testing the cable for intermittent connections.
This is what I would like to use, but it returns syntax errors..
If b0>0 and pin0 = 0 then : low portb (b0-1) : high portc 5 : b12=1 : endif
The value in 'b0' represents the output port that is connected (via the cable under test) to input 0.
If input 0 goes LOW then turn off the portb OUTPUT that is driving it (in this case the value in b0-1)
This line would be repeated for b0 to b9.
Basically I am asking how do I change the port number in relation to a variable.
Cheers
Alan