LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with RTEXE file on PXI

Solved!
Go to solution

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

0 Kudos
Message 1 of 8
(3,713 Views)

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

0 Kudos
Message 2 of 8
(3,690 Views)

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

Download All
0 Kudos
Message 3 of 8
(3,682 Views)

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

0 Kudos
Message 4 of 8
(3,677 Views)

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

0 Kudos
Message 5 of 8
(3,674 Views)

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

0 Kudos
Message 6 of 8
(3,653 Views)
Solution
Accepted by topic author Herlag

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

0 Kudos
Message 7 of 8
(3,649 Views)

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

0 Kudos
Message 8 of 8
(3,636 Views)