Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Variables PC and CRio (http://www.chiefdelphi.com/forums/showthread.php?t=120795)

Aldo González 23-10-2013 23:09

Variables PC and CRio
 
2 Attachment(s)
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

Thanks,
Aldo González
Nautilus 4010

Mark McLeod 24-10-2013 08:12

Re: Variables PC and 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.

gnunes 24-10-2013 08:17

Re: Variables PC and CRio
 
See this thread, Chapter 8.

Aldo González 24-10-2013 11:47

Re: Variables PC and CRio
 
How can i see the variable using TCP and Robot's IP?

Greg McKaskle 25-10-2013 07:13

Re: Variables PC and CRio
 
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.

Greg McKaskle


All times are GMT -5. The time now is 09:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi