Script error requires PC restart (PicoLog 1216)

Post your MATLAB discussions here
Post Reply
Posts: 0
Joined: Sat Jan 04, 2020 1:51 am

Script error requires PC restart (PicoLog 1216)

Post by seeek » Sat Jan 04, 2020 2:38 am


I am in the process of modifying the PL1000 series MATLAB example script ('PL1000_Streaming_Example.m') to output a single (averaged) value, instead of a graph, and to measure on a user-specified number of inputs, instead of a hard-coded two channels.

My progress is hampered by the fact that I need to reboot the whole computer (not just MATLAB) whenever something goes wrong in the loop. I don't seem to be able to close the datalogger by running individual lines or sections of the script, such as the last two sections of code. Anything I do seems to lead to a reference to a non-existent field 'UnitHandle'. Neither a MATLAB restart nor a PicoLog disconnect/reconnect gets me past this.

Is there a way I can expedite my process by getting around all these PC restarts? I do see a line in this thread:
If there is an issue connecting to the device after an error has been encountered when running a script call the disconnect function on the icdevice object and try connecting again.
However, I can't find any reference to such a function in the PL1000 Programmer's Guide and I don't know what an icdevice is. (probably my PicoLog?)

There must be a way to close the device, get rid of the unit handle, whatever, but I don't know what it is, and I'm also not very good in C.

Thanks for any help you can provide.

Post Reply