08-03-2011 04:47 AM
Hi all,
I've been trying to control several APT stages from Thorlabs, via their ActiveX interface in LabVIEW.
In my program, I initialized the stages at the beginning, and closed the resources to them at the end. The program work without problems.
After that, when I added some software-only features to the program, I encountered this error about marshalling threads (pls see "error_new_gui.png"). This happens when
1) I ran my VI program for the first time,
2) Exited the VI
3) Ran it again without closing the VI. It also happens even if I close the VI and then reopen it from its LabVIEW project.
To prevent this, the only workaround now is to close LabVIEW after each run.
Has anyone encountered such a kind of error? What could be the possible reasons? I've searched around but there doesn't seem to be much information on this kind of errors.
Thanks in advance..
Best regards,
Victor
Solved! Go to Solution.
08-04-2011 10:13 AM
Hi all,
I've contacted Thorlabs - the workaround they suggested was to change the Preferred Execution System in VI Properties from "same as caller" to "User Interface". That seems to work for me for now.
Thanks for reading
Victor