From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I upload an applicatioin to the Real Time system and run it?

Solved!
Go to solution

Hi, I'd like to take advantage of some tools in the real time system.

I thought I could upload it by file-transfer,

20150923001.PNG

and then did something like this in the real time system.

20150923002.PNG

No doubt it is failed...

Nonetheless, is there other ways to realize my thought in the real time system?

 

0 Kudos
Message 1 of 11
(3,686 Views)

I don't know about cRIO, but on my PXI system, the app has to be *.RTEXE, and it has to be built with LabVIEW.

 

Simply moving a generic EXE over there will not work.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 11
(3,669 Views)

Was the EXE compiled to run on an ARM?  I'm guessing no which might be one of your problems.  I know NI had some kind of package repo but honestly I haven't even used this hardware yet (but would love to).  But with the new cRIOs running Linux you can use the system exec on the RT target to run applications.  You can also use the call library node somehow but not on DLLs that's a Windows thing.

Message 3 of 11
(3,662 Views)

Hi, CoastalMainBird,

Thanks to your reply, but what I want to implement is something like "iperf.exe", or "ipconfig.exe",

Is it impossible to call the other exe(third-party?) in the real time system?

 

0 Kudos
Message 4 of 11
(3,643 Views)

Hi Hooovahh,

 

Thanks to your suggestion.

Yes, I've read the article that System Exec.vi can be used in RT Linux system, but what about not that kind of real time system?

In fact, all I know the system in my CompactRIO is real time sytem, I do not know how to distinguish Linux-based or not.

However, I can not use System Exec.vi, so mine is probably not Linux-based real time system.

How can I do the function such as System Exec.vi in this kind of system?

I'm not sure what you mean "but no on DLLs", if I use the Call Library Node, What should I call??

0 Kudos
Message 5 of 11
(3,641 Views)

 I know the system in my CompactRIO is real time sytem, I do not know how to distinguish Linux-based or not.

 

 

 

Run MAX on your host, and select the target.  Look in the SYSTEM SETTINGS area for OPERATING SYSTEM. RTOS.PNG

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 6 of 11
(3,636 Views)

Is it impossible to call the other exe(third-party?) in the real time system?

 

 

Not if the program was not compiled for that OS.  Windows programs assume a WIndows environment, and will fail if it's not there.  The same applies to other programs and other OSes.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 7 of 11
(3,633 Views)

Thank you for the direction:)

Now I know how to determine the OS system~~~

0 Kudos
Message 8 of 11
(3,619 Views)

Do you mean the exe was built for windows, so that it is not allowed to execute in real time system? If it is true, I'll suffer a lot because I have to communicate between CompactRIO and servers by ethernet cable...

0 Kudos
Message 9 of 11
(3,616 Views)
Solution
Accepted by topic author William1225

Do you mean the exe was built for windows, so that it is not allowed to execute in real time system?

 

Correct.

 

 

I have to communicate between CompactRIO and servers by ethernet cable...

 

so... you write a program to run on the cRIO, and have it talk to your server(s) via TCP.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 10 of 11
(3,605 Views)