04-26-2021 05:03 AM
I'm trying to manage User Defined Alarms in DSC (LabVIEW 2011). I have two problems:
- I can Set and Clear an UDA from the development environment, but the Set VI takes 500 ms to finish, which seems a lot of time
- as soon as I create an executable, the Clear operation fails with error -1967362020 (IAK_SHARED: (Hex 0x8ABC701C) The provided refnum is invalid)
Do you have any suggestions?
04-27-2021 10:48 AM
Hi,
I believe by default, a project has the shared variable deployment set to autodeploy.
When the first app using them starts running, they are deployed and should remain deployed until the last vi using them is stopped.
I would suggest trying turning auto-deploy off, manually deploy the variables (as a network shared), and run the applications.
As I understand them, the shared variables should remain available until you undeploy them or exit Labview.
Best regards.
04-28-2021 02:49 AM
Thank you for the answer.
I tried first with the DSC Alarms Demo project (copied to another location), then with my original project.
In the first case, shared variables are deployed and undeployed programatically. In the second case, they are already deployed and active at computer start. I can easily verify those conditions using the Distributed System Manager.
On the other hand, I can always set the User Defined Alarm the first time with no error. It's the subsequent Clear operation that fails.
Some more details. When the error occurs, this message appears at program termination:
Furthermore, if I use the same alarm name in subsequent tests, also in the development environment, the error occurs and the Runtime Error appears at program termination or closing the project (LabVIEW stops responding and is abruptly terminated by the OS). In other words, the used name becomes "forbidden" forever.
To successfully run the test again, I need to use a brand new alarm name.
07-01-2021 05:16 AM
Hello,
Can you provide the part of the application?
Regards
07-01-2021 07:55 AM
As I said before, it's enough to test with a modified version of the demo project.