LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RT main will only run when manually loaded

Hello,

 

I think I am doing something stupid. I did build and deploy the Real- time target. I can only acces the RT part from the GUI when I click and run the RT Main.vi. I did not enable the "Disable RT startup app" in MAX. I did try different network cables also the USB one. Anyone a idea what might be wrong?

0 Kudos
Message 1 of 6
(574 Views)

Hi You,

 


@~Its_Me~ wrote:

Anyone a idea what might be wrong?


Did you set the RTEXE to "run on startup"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(566 Views)

 

Hello thanx for the reply

I did click the name below "build specifications" and did click "Run at startup" is that what you are aiming at? Or do you mean something else ?

0 Kudos
Message 3 of 6
(549 Views)

Now I see in MAX the CPU load is higher, I cannot connect to the cRIO from my GUI pc though. I did check the IP and that is ok. I did ssh into the cRIO and there I can find

 

"

[eth0]
dhcpipaddr="10.51.134.21"
llipaddr="169.254.198.12"

"

So that should be fine right ?

 

0 Kudos
Message 4 of 6
(548 Views)

What do you mean when you say: "I can only access the RT part from the GUI when I click and run the RT Main.vi."?

Do you expect to see a user interface in case of a built RT application?

 

Unless your target supports Embedded UI, you cannot have a user interface directly within your RT application.

The front panels you see when running from the development environment are only a reflection of the states of your VIs currently running on your target to help you debug your code, not an actual user interface (e.g. you cannot subscribe to UI events). If you want an actual user interface, you will have to create a desktop application that connects to your RT application over the network.

 

Regards,

Raphaël.

0 Kudos
Message 5 of 6
(533 Views)

You could try adding a 60 second wait to the very beginning of your application before any code actually runs and see if that has any effect.

 

If you're running from startup, the application can start executing code before the system is all initialized. As a specific examples, I know if you try to immediately open some network socket that can happen before the interface has been initialized.

0 Kudos
Message 6 of 6
(454 Views)