A sample for Digital Input

C, C++, and Visual C++
Fresh meat
Posts: 1
Joined: Sun Sep 25, 2011 6:30 pm

A sample for Digital Input

Postby luisgsl » Sun Sep 25, 2011 7:02 pm

Hi, I search for a while for a sample in c++ using Digital Input (I only can find analog input) using a 1018 - PhidgetInterfaceKit 8/8/8. Just a very simple push button attached to ground and an input 0. I write a simple working program with Qt4 and calling the functions inside a button, for example, but I can't make the system work with events inside Qt. When I put some event function with __stdcall and if I use CPhidget_delete((CPhidgetHandle)ifKit); I have a exit error or I can´t read anything.

Somebody knows about and example with Qt (c++) for digital inputs and events?

I put a VERY simple functional sample, written in Qt4. May be somebody can need it. Just wire your card like http://www.phidgets.com/documentation/Phidgets/1018.pdf says, and Install the things like the programming section show.

Thank you!
Sample using Qt4 and digital IO
(25.79 KiB) Downloaded 280 times

Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 7 guests