08-09-2017 09:41 AM
Hi,
I am trying to run a c++ program cross compiled in linux machine in myrio-1900 via ssh connection through putty. It suppose to create a tcp socket communication. The program works in raspberry don't understand why it doesn't work in myRio. The raspberry is cross compiled using its compiler and myRio-1900 is cross compiled using "cross compiler GNU C & C++ Compilers for ARMv7 Linux (Linux host) 2014-2016"
Is there an architecture difference limiting my program from running? Am I missing any extra settings?
Solved! Go to Solution.
08-10-2017 09:40 AM
There is most likely a difference between the architecture from the raspberry and myRIO. As well as how the raspberry compiles versus NI's compiler.
When you say "doesn't work", what do you mean here? Are you not able to compile it? Are there errors when you try to run the program? Can you elaborate on what is happening a little more?
08-11-2017 11:40 PM
Hi Sekine108,
I was able to cross compile the c++ program using the linux host cross compiler recommended by NI without any errors. I copied the .so's and executable inside myRio and tried to execute it in terminal. The program throws error and won't run. The program suppose to read a file before it starts. At that point it throws a error and says cannot register tcp instance. I am sure there is no programming error because the same programs runs fine when cross compiled using raspberry compiler and used with raspberry. Also programs runs in a debian linux machine. Don't understand why it fails in myRio(NI Linux Real Time OS).
I was expecting the program inside myRio to run via terminal. Is there any settings or software needed to be installed in NI Linux OS to work like other Linux OS(debian)? Can I run a c++ executable program in myRio by using putty?
08-14-2017 04:06 PM
I do not think there is any other software that would be put on the myRIO for this. You can connect to the RT through Putty, but I am unsure if this will yield any different results unless your program is limited to running through the terminal.
Access Shell on NI Linux RT:
http://digital.ni.com/public.nsf/allkb/9822A3A39B1D0CBB86257C55006B962A