Go to Post Defense shall reign supreme. - Corey Balint [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition
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 24-10-2008, 09:49
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,567
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Tip if you ever want to program network applications in LabVIEW

I can't believe this, but I just made my job A LOT easier. In LabVIEW 8, NI came out with shared variables. These shared variables are network-publishable, meaning you can access the variables over a computer on the same network. I can't believe I didn't find them earlier. Before, you had to flatten a variable down to a string, find the length of the string, send the length of the string over TCP, read it, then make sure you read that number of bytes hoping none of it gets messed up because you have to unflatten that string just to restore it back to the original variable you were sending across.

Shared variables takes ALL of that out (or perhaps does it for you) with datasockets and allows you to keep the original structure of your variables.

Ahhh....that was a nice find.
Reply With Quote
  #2   Spotlight this post!  
Unread 24-10-2008, 20:31
Greg McKaskle Greg McKaskle is online now
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
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: Tip if you ever want to program network applications in LabVIEW

I'm not sure whether we are talking about your FRC "job" or day job, but for the time being, shared variables will not be allowed in competition, and while they are still useful in a debug setting, they also have quite a bit of overhead for the small amount of data that you are wanting to send over.

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating mac applications with Labview kamocat NI LabVIEW 2 21-10-2008 21:07
Passwords for LabVIEW Applications Team96 LabView and Data Acquisition 1 18-01-2006 18:51
I want ro learn how to program! RubberDucky Programming 6 28-03-2005 20:42
The best fundraising program ever... Petey Fundraising 2 12-09-2003 19:42
Can you tip another robot to dislodge bins? Randy Ai Rules/Strategy 1 06-01-2003 17:17


All times are GMT -5. The time now is 08:05.

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