Our team is running a program in the pc that aquires a variable from Roborealm, also we are running in our project the CRio Robot main that control our robot, my question is: How can we read or write that variable name “distancia” inside de CRio program?, we tried using Shared Varibles and TCP with no result.
The communication between Roborealm and Labview is done, we only need to communicate the VI that is running in the PC and the Robot Code running in the CRio
To communicate from your PC-based RoboRealm LabVIEW program to your robot cRIO-based LabVIEW program, you will need to use either SmartDashboard or TCP to the robot’s IP address.
Shared Variables do not do what you need.
SmartDashboard is probably the easiest approach.
Check the LabVIEW SmartDashboard palette, and also look at existing tutorials & examples.
If you choose to do your own TCP programming, it is best not to think of it as variables. TCP is a mechanism for sending data from one computer program to another. It is in fact the protocol that SmartDashboard variables are built upon.
To reiterate Mark’s advice. I’d start with SmartDashboard variables. You need to make sure that the SD server is running and that the client knows the server address it is supposed to connect to. Name the variables the same on both sides and pick your datatype.
Once you are successful, if you want to learn more, you can either drill into the SD implementation or open other TCP examples. LV ships with a number of client server examples. Then you can try your own implementation if you like.