06-09-2019 05:26 AM
When I move my project to the RT site, all the Start module returned error with, for instance,
"SystemLink.lvlib:Module Not Synced--error.vi:820001<ERR>
SystemLink Module was unable to synchronize events."
As I tracked the data flow in "Wait on Module Sync.vi", I think that the problem perhaps happened at the red circle in the following picture :
But, I unable find where is the notifier wakes them!!
So, can anyone help me to let me know that??
Solved! Go to Solution.
06-09-2019 06:42 AM
Hi Neil,
If you create a new cloneable DQMH module with "Do Something" included, move it to RT, and then create the RT API Tester, do you get the same error?
If not, I would look at what you changed in the initialize case and your Start Module VI for the DQMH module that is not working for you.
Regards,
Fab
06-09-2019 07:24 AM - edited 06-09-2019 10:22 AM
Dup.post....
06-09-2019 08:27 AM
Hello Fab,
I created a new cloneable DQMH module with "Do Something" included, moved it to RT, and then created the RT API Tester.
After that, I build a RT application with "RT API Tester.vi" as startup VI. The application was run as well. There was no error.
Here are some snipping shot from my project,
The first is the vi which working for calling all Module startup,
The second vi is the initialize case of the Module,
I don't change any code in the "Start Module VI".
When the application runs as startup in cRIO, I get the error from the "Start Module VI"
06-09-2019 12:18 PM
Neil, are you working with Linux RT and Embedded UI enabled? Then maybe this thread might be of interest to you: https://forums.ni.com/t5/Delacor-Toolkits-Discussions/Deploy-and-run-at-Startup-for-RT-systems/m-p/3...
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 )
06-09-2019 08:30 PM
@joerg.hampel 已寫:
Neil, are you working with Linux RT and Embedded UI enabled? Then maybe this thread might be of interest to you: https://forums.ni.com/t5/Delacor-Toolkits-Discussions/Deploy-and-run-at-Startup-for-RT-systems/m-p/3...
Hi, Joerg
Yes, I am working with Linux RT and Embedded UI enabled.
It looks like I run into the same problem as the thread and the problem still not solve now.
Unfortunately, if I uncheck the "Enable Embedded UI", I got another error with the same description "Unable to sync Event" in the "initialize case".
06-10-2019 05:18 AM
From your description, it sounds as if you're running into the error described in the other thread, even with Embedded UI disabled. For clarification: Do you see the error only when running your application as startup exe (i.e. in the run-time engine) or also in the development environment?
Are you working with singleton modules? If so, an easy way to test our workaround is described in this post: Make the main.vi of the singleton DQMH module reentrant, and modify the "Get Module Main VI Information.vi" of the module as shown in that post (i.e. load main.vi reentrant).
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 )
06-11-2019 04:52 AM
Hi Joerg,
My application runs well in the development, but not in the run-time engine.
If using the default "Get Module Main VI Information.vi" and set my cRIO9030 with Embedded UI disabled, then I got this error:
as you said, my application was developed with singleton module. The workaround posted in there is going well for me. Thank you.
btw, there is a simple way to ignore that error is to use the "clear error.vi", but it's not a logically way. So I want to find out why DQMH is not able in RT, and try to find a solution for my project.
06-11-2019 06:11 AM - edited 06-12-2019 02:44 AM
@NeilChien wrote:
btw, there is a simple way to ignore that error is to use the "clear error.vi", but it's not a logically way. So I want to find out why DQMH is not able in RT, and try to find a solution for my project.
Ignoring or clearing the error won't make your module work, as there are other places within the DQMH framework (i.e. handing the Module Admin object over to the main.vi of the module via a VI server call) that - due to a bug in LabVIEW - don't work on Linux RT with Embedded UI enabled when executing in the runtime engine.
One solution is to only use cloneable modules, as this bug doesn't affect reentrant VIs.
Another solution is the workaround I posted here which you already know.
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 )