Hi,
Please find the attached zip of the Demo code.
It a basic DQMH code.
The code has the following functionality.
- Test Launcher API is the GUI for controlling the Launcher -- Main.vi which is our DQMH module.
- All the button controls on the Test Launcher API call Trigger a Event which calls the corresponding Request VIs
- The Request VIs Generate User Events which are Registered to the Event Structure in the Event Handle Loop of Launch -- Main.vi
The Request VIs are Present in the Launcher > Launcher.lvlib > Public API > Requests
In order to Test you can perform the following Steps:
- Run Test Launcher API
- Click Start Module which will run Launcher -- Main.vi via the Start Module.vi request
- Click Show Panel which will Display the Front panel of the Launcher -- Main.vi via the Show Panel.vi request
- Click Launcher LED Status which will turn on the LED indicator on/off the Front Panel of Launcher -- Main.vi via the Launcher LED Status.vi request
- Click Stop Module which will exit the Launcher -- Main.vi via the Stop Module.vi Request.
We intend to design the application as follows:
- Compile Launcher -- Main.vi into an Exe.
- Run the Launcher -- Main Exe Independently.
- Keep the Request VIs in a Test Stand Sequence file.
- Run the Sequence File to perform a series of steps. (In this case just one or two steps to ON/OFF the LED indicator on Launcher -- Main Front Panel.)
Problem: When we run the Test Stand Sequence we get the error: No instance of module is running
Note:
- Test Stand Adapter is set to Labview Run-time.
- This is not the actual code but the concept is the same.
- We are just trying to debug and verify the concept and the issues using this code.
What am I missing here?
Is there a better way to do this?
I have already read the artcile:
https://forums.ni.com/t5/DQMH-Consortium-Toolkits/my-DQMH-PPL-and-VILIB-PPL-best-practices/td-p/4155...
However I am not sure what changes are to be made to Obtain Broadcast.vi and Obtain Request.vi as mentioned in this posted.
Can someone please explain it in a simplified manner?
Sorry for the lengthy post
Regards,
Linus Koli