DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

start a clonable DQMH as a singleton on a real-time target ?

Hi

I am in the testing phase of my project and I encountered many synchronization and debugging errors in a clone module for XNET communication on a real-time CRIO target.

 

so my question, is it possible to run multiple instances as singletone? i know the option exists for windows testers? can I do the same on a CRIO?

0 Kudos
Message 1 of 2
(1,687 Views)

Hello Hichem,

you can definitely run your cloneable module as a singleton, but if your goal is to debug it on your RT target it will not help because the option is only made to ensure only one instance of the module is running at a given time. The main.vi is still reentrant so you can't probe it.

 

My advice in this situation is:

  • use the status did change broadcast and use the tester
  • change module subvi to non-reentrant execution during your debugging steps
  • Add file logging

 

Debugging RT applications is still challenging 😉

 

Note 1: that there is also a feature request related to debugging DQMH  modules on RT here --> https://forums.ni.com/t5/DQMH-Consortium-Toolkits-Feature/Simple-Tools-for-helping-RT-debugging-DQMH...

 

Note 2: If your issues come from synchronization between multiple instances making your module a singleton is not going to help a lot...

 

 


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn

Stop writing your LabVIEW code documentation, use Antidoc!
0 Kudos
Message 2 of 2
(1,682 Views)