Setting port and channel - C language
Posted: Thu Dec 21, 2017 5:25 am
Hi everybody,
I'm using a VintHub device with this code (C language):
Phidget_setHubPort((PhidgetHandle)x->ch, 2);
Phidget_setIsHubPortDevice((PhidgetHandle)x->ch, 1);
Phidget_setChannel((PhidgetHandle)x->ch, 2);
If I comment the third line, I got the console message with the port and the channel number set (the channel is always set to 0). The device works but for all ports, channel number is 0.
If I uncomment the third line, I don't get any message, and the device doesn't work at all.
What should I change?
Best regards
BB
I'm using a VintHub device with this code (C language):
Phidget_setHubPort((PhidgetHandle)x->ch, 2);
Phidget_setIsHubPortDevice((PhidgetHandle)x->ch, 1);
Phidget_setChannel((PhidgetHandle)x->ch, 2);
If I comment the third line, I got the console message with the port and the channel number set (the channel is always set to 0). The device works but for all ports, channel number is 0.
If I uncomment the third line, I don't get any message, and the device doesn't work at all.
What should I change?
Best regards
BB