05-07-2020 09:32 AM
Any way to do such a thing on a RIO Realtime Target? Posting Events to a LabVIEW Event Structure From a Dll
It decribes how to post an event from a windows dll. It feels like I'm missing some headers ("excode.h"?) on the RT Target.
In the end I want my shared object to notify the Labview code about an event and maybe pass some values, but that's not mandatory since we can get them by a getter().
And yes as a workaround, I will implement a polling mechanism, since timing constrainst are not so hard (few miliseconds)
Any help appreciated 🙂
Solved! Go to Solution.
05-07-2020 10:28 AM
extcode.h is located in your cintools directory inside your LabVIEW installation. You just need to copy it somewhere so your C toolchain can reference it. Depending on the toolchain you use you either have to add the folder to the include directories in your project settings (Eclipse cross compilation) or add it as an -I argument to the gcc command from your makefile (local compilation on your RT target with installed development tools).
05-07-2020 10:44 AM
nice! Copy, include and it just works like in the provided Windows example.
Thank you for that one!