Hello,
I am using a PhidgetSBC4 (SBC3003_0).
I need the voltage inputs.
When I check the device in the phidgets control manager everything works fine.
However, when I try to access the channels in Unity through C# the Phidget does not attach the sensor.
I have found two solutions, one from the code creator from this site and the other solution somewhere in the internet.
First solution is:
myValue = new VoltageInput();
myValue.InHubPortDevice = true;
myValue.HubPort = 0;
myValue.Open();
the other solution is:
myValue = new VoltageInput();
myValue.Channel = 0;
myValue.Open();
When I try to access the channel with for example myValue.Voltage it will throw an error. When I check for myValue.Attached it will returne "false".
What do I miss here? How do I attach the channel?
How do I check if Unity has found the device?
I use Unity 2022.2.16f1.
I have installed the Phidgets DLL from the install file (the one that is for Net 4.0). Maybe I need an other DLL?
Any help would be highly appreciated as I have a hard deadline and I need to solve this problem.
Best Regards,
Muha