Page 1 of 1

vint hub 5000 digital input c code

Posted: Thu Dec 01, 2022 8:00 am
by rotem2116
hey i am trying to write a c code for digital input.
i am trying to get the current State of the digital input.
Are there functions that i can use in order to get the current State so i can run them in while loop.
this is what i am trying to do
while(1)
{
cout << "do you want to know the state? (ENTER 1)";
cin >> know;
if(know==1)
{
cout << State;
}
}

Re: vint hub 5000 digital input c code

Posted: Thu Dec 01, 2022 2:47 pm
by jdecoux
The function you are looking for is PhidgetDigitalInput_getState(<params>)

You can see more about how to use it in the API tab for your device.