Go to Post If enough students "get it," the team will begin to. And if enough students "get it," the smart ones will seek out all the extra help they can get. That's how I found Chiefdelphi... - Joe G. [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-10-2013, 23:09
Aldo González Aldo González is offline
Registered User
FRC #4010
 
Join Date: Oct 2013
Location: Mexico City
Posts: 2
Aldo González is an unknown quantity at this point
Variables PC and CRio

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
Attached Thumbnails
Click image for larger version

Name:	Variable.JPG
Views:	57
Size:	66.0 KB
ID:	15356  Click image for larger version

Name:	Captura.JPG
Views:	31
Size:	51.6 KB
ID:	15357  

Last edited by Aldo González : 23-10-2013 at 23:13. Reason: More information
Reply With Quote
  #2   Spotlight this post!  
Unread 24-10-2013, 08:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-10-2013 at 08:21.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-10-2013, 08:17
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
Re: Variables PC and CRio

See this thread, Chapter 8.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-10-2013, 11:47
Aldo González Aldo González is offline
Registered User
FRC #4010
 
Join Date: Oct 2013
Location: Mexico City
Posts: 2
Aldo González is an unknown quantity at this point
Re: Variables PC and CRio

How can i see the variable using TCP and Robot's IP?
Reply With Quote
  #5   Spotlight this post!  
Unread 25-10-2013, 07:13
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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