Go to Post However, in the end, the renderer is only as good as the artist. - MiNT [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 17-02-2016, 12:52
1uan 1uan is offline
Registered User
AKA: Juan Halleran
FRC #2152 (S*M*A*S*H)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2012
Location: Port Orange
Posts: 18
1uan is an unknown quantity at this point
Question Programming Help: how to read first value

I am using a NavX IMU board for our robot this year and I want the first value that the navx reads when the sub-vi is executed to become the set point in the PID function and the other values from the navx to be the process variable in the PID function. currently i have a button to set the set point value but i want the sub-vi to do this automatically. The Subvi takes the yaw value of the Navx and uses it to hold heading.


Any help is appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2016, 20:49
Caboose's Avatar
Caboose Caboose is offline
Programmer - LabVIEW, C++, C#, Java
AKA: James Parks
FRC #0900 (Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: NC
Posts: 71
Caboose has a spectacular aura aboutCaboose has a spectacular aura about
Re: Programming Help: how to read first value

Quote:
Originally Posted by 1uan View Post
I am using a NavX IMU board for our robot this year and I want the first value that the navx reads when the sub-vi is executed to become the set point in the PID function and the other values from the navx to be the process variable in the PID function. currently i have a button to set the set point value but i want the sub-vi to do this automatically. The Subvi takes the yaw value of the Navx and uses it to hold heading.


Any help is appreciated.
The easiest option would be to get the status of the board and wait for the connected Boolean to be true and calibration state is complete. You could use a feedback node to keep track when you trigger the storing of the set point so it won't continue to update.
__________________
navX Labview Library

"Robots are aluminum shavings, held together by zip-ties."

myManga
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 08:08.

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