Go to Post Has anybody seen our programmer? He was last sighted walking southbound in the rain, his laptop tucked under his arm, grumbling to himself. - Taylor [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 22-03-2016, 22:12
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Broken run arrow with new gyro

One thing I've noticed. We use the new gyro provided as part of the First Choice program. We copied the example VIs into our LabView code and it works just fine. If we start up our coding session by selecting the LabView project file everything loads up just fine and we get a clean run arrow. However if we take a shortcut and load one of the project's VIs (such as robot main) we get a broken run arrow. Now we see that the gyro open VI in Begin is expecting the gyro to be an analog device even though the code specifies the correct SPI port. Also the Calibrated output from the get angle VI no longer exists. It does this consistently.
It's not a show stopper but it is annoying. Has anyone else noticed this behavior?
Reply With Quote
  #2   Spotlight this post!  
Unread 22-03-2016, 23:36
Matt-T-FRC Matt-T-FRC is offline
Electrical Engineering Student
AKA: Matt Tisovic
FRC #6181 (Northwest State Cryptic Cyborgs)
Team Role: Electrical
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Northwest Ohio
Posts: 29
Matt-T-FRC is an unknown quantity at this point
Re: Broken run arrow with new gyro

When you are opening only a project file and not the whole project itself, you are not loading all the required dependences for the program to function properly. This will cause in most cases for a broken run arrow due to the missing dependences.

Also could you post a snapshot of the problem that you are having?
Reply With Quote
  #3   Spotlight this post!  
Unread 23-03-2016, 21:42
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Re: Broken run arrow with new gyro

Quote:
Originally Posted by Matt-T-FRC View Post
When you are opening only a project file and not the whole project itself, you are not loading all the required dependences for the program to function properly. This will cause in most cases for a broken run arrow due to the missing dependences.

Also could you post a snapshot of the problem that you are having?
Your answer tends to confirm what we're seeing. It just seems strange that this gyro has some dependencies that don't exist on the other sensors/actuators. We just need to remember to load the full project not just the one VI we're currently interested in.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-03-2016, 08:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Broken run arrow with new gyro

Quote:
Originally Posted by BitTwiddler View Post
It just seems strange that this gyro has some dependencies that don't exist on the other sensors/actuators.
You explained the "strange" part when you told us it's an SPI connection.

None of the sensors/actuators will actually work if you don't load the full project. You just ended up seeing the code broken early because of the polymorphic Gyro functions.
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 03:50.

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