07-07-2018 04:18 AM
Hi
We have a DQMH module with 4 clones. Every time we call start module, clone modules get created and when we call stop module all the clones that are created are getting closed. However we see a clone module with 0 as ID getting open and never getting closed. We have to end task LabVIEW to come out of it. It happens very regularly. Sorry do not have an example code to share. We have tried sending -1 to stop module to close all modules but it does not work. Is there anything obvious we are missing?
Solved! Go to Solution.
07-07-2018 08:25 AM - edited 07-07-2018 08:25 AM
You should only see a clone with ID 0 if you are running it as singleton (i.e. run the Start Module.vi with "Run as Singleton? (F)" set to true).
DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (Developer Experience that makes you smile )
07-09-2018 08:02 PM
Hi Viswanathan,
There is another way you could end up with a module with ID 0 when not running as a singleton.
If you have your Main.vi open and you leave the front panel open when you start running your code, the Module 0 would appear to be running, but it is showing that the Main.vi is blocked for execution because instances of itself are running.
If you start with all VIs closed and you run the API Tester for your cloneable module and do not run as a singleton, you should not see a Module 0 at all.
Regards,
Fab
07-10-2018 01:17 AM
Thanks for all responses.
We are definitely not running it as Singleton. However keeping front panel open could be a possibility. Let me check if this is the case and revert back.
07-16-2018 12:38 AM
Fab,
You were right. This problem was reported only by the developer who owns the module and none of the the other DQMH modules were having this problem. In the last week we have been conscious to close modules before running them and we have not seen the issue so far. Thanks for your support.