Page 1 of 1

How to find alll Digital Outputs in Phidget22

Posted: Tue Dec 12, 2017 8:53 am
by Meldur
Hello,

I started switching our tools we are using for InterfaceKit 8/8/8 and 0/16/16 to the new API but I'm a little bit lost managing in- and outputs. In the old API it was clear but when I'm testing the Digital Output example I can't find a way to define which of the 16 outputs I can switch? Only Output 0 is available. So please give me a hint.

Thank.

Re: How to find alll Digital Outputs in Phidget22

Posted: Tue Dec 12, 2017 11:22 am
by mparadis
You need to make separate objects for each digital output and digital input and use setChannel to set each one to a specific number. You can see some examples of what that looks like on this page.