Go to Post I wouldn't want to replay Lunacy -- the Moon is a harsh mistress! - Richard Wallace [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 15-01-2012, 22:36
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: LabView and Ultrasonic Rangefinder

Quote:
Originally Posted by DominickC View Post
And if I wanted to import the example code into the example teleop.vi, could I just copy/paste the code in, and put it within a while loop which becomes true when a button on the joystick is pressed? (thus ranging once and displaying one distance in the dashboard)?
NI created a tutorial on adding data to the dashboard. https://decibel.ni.com/content/docs/DOC-14704

The major recommendation I would make is that instead of reading the data from the sensor the build dashboard data vi as shown, I would read the data where you want it (either teleop or periodic tasks) and save it in a global variable, and then read the global variable in the build dashboard data vi.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2012, 11:15
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 137
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: LabView and Ultrasonic Rangefinder

Also, Tutorial 7 from the LabVIEW Getting Started Window shows how to send data to the dashboard. See Part 2 of that tutorial.
__________________
Doug Norman
National Instruments
Reply With Quote
  #3   Spotlight this post!  
Unread 16-01-2012, 20:18
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: LabView and Ultrasonic Rangefinder

Thank you all for your help and references!

I read and tried to follow the tutorial from NI step by step, but left more confused than when I began. Then, I went through tutorial 7 from LabView's Getting Started Window. Now I feel that I have a grasp on what's going on.

I'll give it a crack and post my results.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2012, 21:35
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: LabView and Ultrasonic Rangefinder

Great news! I was able to properly code in the rangefinder!

Now, one final question. I read somewhere that there should only be one Set High(/Low) User Data Priority per vi? If this is so, how would I integrate the Gyro, Accelerometer, Rangefinder, and Potentiometer in with each other ?
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 20:40.

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