I am trying to adapt the ps4000.dll for my application in LabVIEW. To learn more about the scope, I was playing with different options to understand how the scope behaves. During this process, I have entered invalid setup/parameter as a input parameter, the driver provided me an error code informing me the error.
So, if I rerun my code again without modifying anything, the "ps4000OpenUnit" is saying that "No PicoScope 4000 could be found".
I was able to get rid of this error by physically reconnecting the USB cable from the device and run it again.
But, what if this happens during experiment run-time, and would like to programatically reset the scope. what should be done?
I looked at the LabVIEW files provided in the SDK, but it doesn't show the above case, where the "ps4000openunit" has failed to locate the device.
Any programming suggestions in this regard?