07-05-2024 10:49 AM - edited 07-05-2024 10:53 AM
I'm using the DQMH design pattern to build a driver for an actuator. When I use "Test Actuator API.vi" to send a test command, it always sends the default command ("Disable") instead of the command I pass into "Send Command.vi". And when I place probes inside "Send Command.vi", they always show "Not Executed" even when I trigger the event. So it seems the event is getting triggered, but it's sending only the default event data instead of the correct event data. Any ideas what could be going wrong?
Note: In the attached "Actuator Library and Tester.zip", there are a few VIs/controls referenced outside of the actuator library. These can be found in "General VIs.zip".
Solved! Go to Solution.
07-05-2024 03:31 PM
It's because you don't have either of the request parameters (Command or Command Argument) wired to the Bundle function in the 'Send Command' request event frame of the Main VI:
The reason the probes you set are 'Not Executed' is because the Send Command VI is reentrant, which means the instance in which you set the probes is not the reentrant instance that actually runs when you run your Tester VI.
P.S. - In the future, for DQMH-related questions, you should consider posting in the DQMH Discussion Forum instead.
07-06-2024 12:35 PM
Thanks Darren, can't believe I missed that! I think as I was troubleshooting, I was thinking of the "Send Command.vi" as enqueuing a message read directly by the MHL of "Main.vi", rather than creating an event that sends the data through the EHL first. I'm still relatively new to DQMH, so this is a good reminder of how it actually works.
I also appreciate the tip on the DQMH discussion forum, I'll be sure to use that next time!