Open() Invalid Argument
Posted: Mon Jun 04, 2018 8:31 am
I'm attempting to create a class that enables pressure sensing using the Phidgets Interface Kit and a few different pressure sensors.
When I go to open the channel, I keep getting the error: Invalid Argument
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
When I go to open the channel, I keep getting the error: Invalid Argument
Code: Select all
prc = Phidget_openWaitForAttachment((PhidgetHandle)sensors[0].ch, 5000);
if (prc != 0)
{
std::cout << prc << std::endl;
fprintf(stderr, "Runtime Error -> Attachment Failed: \n\t");
DisplayError(prc);
}
Any help would be greatly appreciated