When I go to open the channel, I keep getting the error: Invalid Argument
Code: Select all
prc = Phidget_openWaitForAttachment((PhidgetHandle)sensors.ch, 5000);
if (prc != 0)
std::cout << prc << std::endl;
fprintf(stderr, "Runtime Error -> Attachment Failed: \n\t");
What are some of the things that could make the opening invalid? The Voltage Ratio Input Example works, however I'm not sure what could be missing to cause this error. I don't get any errors when setting the parameters. I've attached my .cpp as it's a bit big to show inline.
Any help would be greatly appreciated