01-28-2013 10:40 AM
I've attached the BD image of a very simple code which illustrates a problem encountered with a RTEXE file on PXI.
If the VI (LabVIEW 2011) is launched on the RT target from a LabVIEW project, no problem.
If the code (with the shared variable linked to a I32 indicator typedef, the ctl and lvlib files being on the target) is compiled and run as startup from my PXI system, it doesn't work (message = "incorrect state" or something equivalent in french) !
But when the shared variable is disconnected from the typedef, the RTEXE file runs correctly as startup...
Any explanation for this strange behaviour ?
Any way to run a RTEXE file on a PXI controller with shared variables linked to typedefs ?
Thanx & BR,
HL
Solved! Go to Solution.
01-29-2013 06:10 AM
Hi there,
A screenshot of the error encountered would be helpful, even if it's in french, could you make it for us?
Regards,
Celine
National Instruments France
01-29-2013 06:45 AM
Hi,
Here are 3 screenshots :
Loops_1.png : Code running on the PXI target from a LabVIEW (2011) project.
Loops_2.png : RTEXE compiled code NOT running as startup when the shared variable is linked to the typedef.
Loops_3.png : RTEXE compiled code running as startup when the shared variable is NOT linked to the typedef.
Regards,
HL
01-29-2013 06:49 AM
HI HL,
Thanks for your screenshots !
You have compiled your "RTEXE" but first of all, have you deployed your shared variable before running the exe?
Regards,
Celine
National Instruments France
01-29-2013 07:26 AM
In both cases (when the shared variable is linked or not to the typedef) I have to reboot the PXI controller to run the Real-Time executable. As it works in one case, I assume that the shared variable is automatically deployed when the controller restarts. Otherwise, how is it possible to deploy it before launching the RTEXE as startup? Or is there a special compilation option to do this?
BR,
HL
01-31-2013 05:03 AM
I've made the same tests on a cRIO target under LabVIEW 2012 : everything is ok.
Any reason why it doesn't work on a PXI under LabVIEW2011?
Regards,
HL
02-01-2013 06:41 AM - edited 02-01-2013 06:45 AM
I've got an answer on the french section of the forum : it's a bug of LabView2011, corrected in LabVIEW2012.
The only solution with LabVIEW2011 is to disconnect the shared variable from the typedef 😞
Regards,
HL
02-01-2013 07:14 AM
Hi HL,
Sorry for the late reply, I was unable to receive the update from your post... but glad you find out your answer !
Regards,
Celine
National Instruments France