LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RIO devices

Solved!
Go to solution

Hi.

We have build systems with compact RIO as front end and PC with user interface.

I build the application on my laptop with lab view and everything works fine.

Now when I try to use the target PC there is no communication between host program and real time program on the compact RIO.

In MAX I can see the Compact RIO and download connection settings and memory status.

Real time program is set for startup and it starts after reset (User led blinking)

I have tried also different host PC without success.

We have three similar systems working for over one year, but this seems to be tricky.

0 Kudos
Message 1 of 7
(2,647 Views)

Did you check the network settings in MAX?

To my knowledge, both the target and host PC must be there in the same subnet mask.

Also check the firewall settings.

______________________________________________
Kudos are welcome
0 Kudos
Message 2 of 7
(2,644 Views)

Yes, Network addresses are on same subnet and firewall is off.

0 Kudos
Message 3 of 7
(2,641 Views)

What method of communication are you using between the cRIO and the host program?

 

When you run a program in the development environment, LabVIEW automatically sets up the front panel to work on your PC even though the code is executing on the remote cRIO. When you build an executable, you do not have access to that front panel on your PC. You need to write a separate user interface application, and use a communication mechanism such as shared variables, network streams, or TCP messages to communicate. It's not clear from your post if you've done this, or if you are expecting the front panel of your cRIO application to run like it does in the development environment.

0 Kudos
Message 4 of 7
(2,611 Views)

I use shared variables for communication between cRIO and host PC and on the VI running in the cRIO are no front panel functions included.

From earlier projects I have learn first to start the program in cRIO and then the front panel on host PC.

Also I know data transfer works if the cRIO program starts immediately send data, what can seen from the communication lights at Ethernet connection, even host PC program is not running.

This happened if the cRIO is connected to my laptop but not if it is connected to target PC.

0 Kudos
Message 5 of 7
(2,600 Views)

I hope you've checked the basics: can you ping the cRIO from the target PC? Can you FTP to the cRIO from the target PC? That would help establish that the communication works.

 

Can you connect your laptop, the target PC, and the cRIO all at the same time? What if you run the cRIO application in the development environment, and run the host application your target PC - does it work? If not, you should be able to debug the cRIO portion in the development environment. You could likewise build the host application with debugging enabled, and connect to it remotely. Where are you hosting the shared variables? If they are hosted on your laptop, then I would not be surprised if it doesn't work when the laptop isn't available.

0 Kudos
Message 6 of 7
(2,579 Views)
Solution
Accepted by topic author sorsakoira

Finally yesterday evening I got the data transfer between cRIO and target PC working!

I tried so many things that I’m not absolutely sure what finally the prime cause was. Maybe a combination of all of them.

Anyway after I set the Ethernet settings on the target PC to exactly same values as they are on my laptop it starts to work.

Thanks to all of you for participating in problem solving on this case!

Have a nice sommer

0 Kudos
Message 7 of 7
(2,562 Views)