vint hub 5000 digital input c code

C, C++, and Visual C++
Post Reply
rotem2116
Fresh meat
Posts: 4
Joined: Mon Nov 14, 2022 8:06 am
Contact:

vint hub 5000 digital input c code

Post 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;
}
}
jdecoux
Labview Developer
Posts: 180
Joined: Mon Nov 13, 2017 10:20 am
Contact:

Re: vint hub 5000 digital input c code

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests