Page 1 of 1

Resource Busy (when enabling hardware log)

Posted: Thu Nov 30, 2017 6:18 am
by nm17
Hi all

I am getting constantly "Resource Busy" Phidgets Exception (0x9) when trying to set-up hardware logging. This is with Phidget22, it used to run fine with Phidget21.

Any ideas why is this happening (it's right before or after I instantiate phidget classes, I get error regardless)?

This is the offending line if it helps:
Phidget22.Log.Enable(LogLevel, "c:\\folder\\log.txt");

Also, what is the recommended/proper way to check if the device is busy before issuing commands?

Thanks

Re: Resource Busy (when enabling hardware log)

Posted: Fri Dec 01, 2017 1:02 pm
by mparadis
In this context, the "Busy" error is referring to the log file. It's possible that the file is open in another program. If you don't think you have it open in another program, try logging to an entirely new file just with this one program and see if it still gives the error.