Go to Post Here on CD, we are all one big FIRST team, mentoring each other. - 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 25-01-2012, 01:05
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Probes (and some other aspects) not working

I'm experiencing an intermittent and annoying issue.

For some reason, in some (not all) of my VIs, the debugging probes list "Not Executed." I am certain that the VI itself is running, since in particular my drive code is having this problem and the robot is still mobile.

In addition, some of these VI's have the task of updating some global variables. If the VI goes from a working state into this "Not Executed" state, it appears to stop updating the global variable, and code that reads from that variable finds stale (unchanging) values.

In some cases, this problem only applies to _some_ of the code in a VI. In my drive code, I have two main loops. One loop reads from globals and sets motor outputs, and the other loop reads from gyros/encoders and publishes that to a local variable. Everything in the drive loop shows "Not Executed", but in my sensor loop one of my encoders has a reliable probe, even though all the other encoders/gyros show "Not Executed."

The best reference I found online was a list of things that were fixed in LV 2011:
ID, Legacy ID, Fixed Issue
255014, —, Probes are listed as Not Executed intermittently on Real-Time target

This is especially painful, since one of the things I like about LabVIEW is the debugging =[

Any idea what this is?
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2012, 08:35
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,752
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: Probes (and some other aspects) not working

Debugging can be turned off in a VI, and marking a VI as reentrant also impacts which debugging features are available and how they work.

From your description, I can't be sure if these are involved.

Try putting another indication, such as a display on the panel, and update it from the same wire as the probe. If neither one updates, work your way back to see if logic is truly preventing the code from running. If the indicator updates and probe does not, then it truly sounds like a bug in the way the probe is implemented.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2012, 09:30
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: Probes (and some other aspects) not working

Can you post a picture of your diagram code? I'm going to guess something is keeping that code from running.
__________________
Doug Norman
National Instruments
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2012, 09:37
cilginbilgin cilginbilgin is offline
Registered User
FRC #2905
 
Join Date: Jan 2010
Location: Istanbul,Turkey
Posts: 188
cilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the rough
Re: Probes (and some other aspects) not working

Hello Everyone,
This year we are getting our Kit late because of some issues with customs. Because of that, we are spending some much time with thinking and will practice on last year's robot. In order to practice, we do need Labview but our labview has been expired. What else can we do to find labview. Is there any link that you can give us to download ?
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2012, 09:55
wilsonmw04's Avatar
wilsonmw04 wilsonmw04 is offline
Coach
FRC #1086 (Blue Cheese)
Team Role: Teacher
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Midlothian, VA
Posts: 1,887
wilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond repute
Re: Probes (and some other aspects) not working

greetings,
Labview is in your kit,hopefully. It is a package that looks like it should hold a CD. When you open it, you will find a credit card size device that is a USB drive. That contains Labview.
__________________
Currently: Coach FRC 1086/FTC 93
2006-2011 Coach FRC 2106/FTC 35
If you come to a FRC event to see a robot competition, you are missing the point.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2012, 10:04
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,833
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: Probes (and some other aspects) not working

Quote:
Originally Posted by wilsonmw04 View Post
greetings,
Labview is in your kit,hopefully. It is a package that looks like it should hold a CD. When you open it, you will find a credit card size device that is a USB drive. That contains Labview.
They do not have their Kit, so they are looking for a temporary stop-gap solution.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 26-01-2012, 10:49
wilsonmw04's Avatar
wilsonmw04 wilsonmw04 is offline
Coach
FRC #1086 (Blue Cheese)
Team Role: Teacher
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Midlothian, VA
Posts: 1,887
wilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond repute
Re: Probes (and some other aspects) not working

Quote:
Originally Posted by Mark McLeod View Post
They do not have their Kit, so they are looking for a temporary stop-gap solution.
Failed at reading comprehension there, sorry.

You can get the updates online and you can get a regular version of Labview as well, but you cannot get the FRC version of it online as far as I can find. I've been looking because i MIGHT have misplaced my copy. Those cards thingies are cool but way to easy to put then in a pocket and forget where it went...
__________________
Currently: Coach FRC 1086/FTC 93
2006-2011 Coach FRC 2106/FTC 35
If you come to a FRC event to see a robot competition, you are missing the point.
Reply With Quote
  #8   Spotlight this post!  
Unread 26-01-2012, 11:01
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Probes (and some other aspects) not working

Has anyone tried applying the downloaded FRC update onto a standard 2011 Labview?

If this worked it could be a stop-gap.
There's probably an eval version of 2011 available.

Just wondering...
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #9   Spotlight this post!  
Unread 26-01-2012, 11:06
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Probes (and some other aspects) not working

Quote:
Originally Posted by JohnGilb View Post
For some reason, in some (not all) of my VIs, the debugging probes list "Not Executed." I am certain that the VI itself is running, since in particular my drive code is having this problem and the robot is still mobile.?
My experience is that "Not Executed.... means "Not Excecuted since you created the Watch Window."

eg: If you run the program and then put a watch window inside the BEGIN Vi, it will say Not Executed. However, if you then stop the program, and re-run it again, you will see the existing watch window update.

If you have a watch window in the Teleop VI, and you are driving the robot, I'd certainly expect it to display data. Do you have any Case Structures (for optional driving code). Perhaps these are not running as you expect.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #10   Spotlight this post!  
Unread 26-01-2012, 12:36
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Probes (and some other aspects) not working

Quote:
Originally Posted by JohnGilb View Post
I'm experiencing an intermittent and annoying issue.

For some reason, in some (not all) of my VIs, the debugging probes list "Not Executed." I am certain that the VI itself is running, since in particular my drive code is having this problem and the robot is still mobile.
We encountered this bug during Beta Testing and still notice it from time to time. See the thread here: http://firstforge.wpi.edu/sf/discuss...468?_pagenum=1

We mainly use Global Variables that are written in the Teleop/Autonomous.vi's and used in Periodic Tasks, so instead of using the Probes we just open the corresponding Global instead and it works fine.
__________________
Reply With Quote
  #11   Spotlight this post!  
Unread 26-01-2012, 14:34
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Re: Probes (and some other aspects) not working

I get "The page you requested cannot be found." Can you copy over any relevant information from that page?
Reply With Quote
  #12   Spotlight this post!  
Unread 26-01-2012, 14:35
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Re: Probes (and some other aspects) not working

Also, I don't have access to the code now, but I can try and find the smallest diagram where this issue is occurring so you all can try some visual debugging =]
Reply With Quote
  #13   Spotlight this post!  
Unread 26-01-2012, 15:42
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Probes (and some other aspects) not working

Ah, sorry I thought they published it to the public after the Beta Testing was over. Here is the transcribed text:
Quote:

Posted By Post
David Gitz Mentor for Team #1208
11/08/2011 8:28 PM
post6302
LV Probe Issue
Ok, this is kind of a weird one. We are noticing that the LV 2011 Probe doesn't always display data when it should.
Unfortunately I do not have a screenshot of this happening but I've attached a screenshot of the code that causes this.

What happens is that we have some code that builds an array in a while loop in Periodic Tasks. We have an indicator
that tells the size of the array. No matter what mode the robot is in (Autonomous/Telelp/Disabled) the array increments
in size, as it should and does this fine. However, when you probe the line going to the indicator the probe will say "
Not Executed" and will show a value of 0 (greyed out). However, it has worked once. The only verification of this
problem we've done is confirm that it happens to every wire in a loop in Periodic Tasks in this Project. We have not
checked this against any other vi's or Projects, or with LV 8.6

This is definitely not an issue of selecting the wrong indicator or something along those lines. The indicator clearly
increases and a probe on the wire going to the indicator indicates "Not Executed".

Any thoughts?
Attachment: Probe.png 248.52 KB
Associate QuoteReply
Greg McKaskle (NI Software)
11/10/2011 7:33 AM
post6321
Re: LV Probe Issue
Looks like a bug to me, most likely associated with the new parts of the optimizer. I'll show it to the lead on 2011 and
see if it has already been reported. Otherwise, he may ask for the code. Thanks for reporting.

Greg Mckaskle
Associate QuoteReply
Greg McKaskle (NI Software)
11/10/2011 2:23 PM
post6328
Re: LV Probe Issue
Would it be possible to email the code to me so that I can attach it to the bug report. My email is gam@ni.com.

Greg McKaskle
Associate QuoteReply
David Gitz Mentor for Team #1208
11/16/2011 10:26 AM
post6483
Re: LV Probe Issue
More evidence on this bug (attached)
The Probe Display had worked at one point (since it's not grayed out) but since then has not updated. The Drive Global
Variable (which includes the Gyro Angle) is on the right and indicates an angle of -24 degrees, which is continuously
updating. The probe hooked to the wire going into that Global Variable does not update.
Attachment: 1.png 209.08 KB
Associate QuoteReply
Doug Norman (NI Developer)
11/16/2011 12:11 PM
post6492
Re: LV Probe Issue
Did you ever send greg your code? Also, if you can distill this down to a very simple VI, it would be easier to debug.
Associate QuoteReply
David Gitz Mentor for Team #1208
11/16/2011 2:07 PM
post6495
Re: LV Probe Issue
I did, on Nov 12. Attached is what I emailed him. Also, I am unsure what you mean by "distill down to a very simple vi
", as all of the Periodic Tasks.vi is affected. Do you mean something along the lines of creating a new project, and
insert code in until we notice this issue again?

The problem with this approach is that so far this bug is intermittent and occurs throughout the Periodic Tasks, so as
we insert more and more code in the task of actually verifying if the issue occurs or not gets much more time consuming.
From my experience with LV, it doesn't matter how good/bad your code is, as long as it is running the probe should be
updated. And it is apparent that the code is at least running, so I don't see the issue as being our code. And
everything in our code works fine, and there are no significant error messages on the Diagnostics. But we will try.
Attachment: Mecanum Practice bot.zip 1.64 MB
Attached Thumbnails
Click image for larger version

Name:	Probe.png
Views:	9
Size:	248.5 KB
ID:	11585  Click image for larger version

Name:	1.png
Views:	9
Size:	209.1 KB
ID:	11586  
__________________
Reply With Quote
  #14   Spotlight this post!  
Unread 26-01-2012, 15:46
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Probes (and some other aspects) not working

Quote:
Originally Posted by JohnGilb View Post
it appears to stop updating the global variable, and code that reads from that variable finds stale (unchanging) values.
Sorry, I did not read your post carefully enough. If your Globals themselves are not updating, I doubt it is a problem with the Probe but instead is in your code. Probe/open up the Drive (and any other applicable WPI Library) functions and see if you are getting Errors in the Error Cluster. Also, make sure to check the Diagnostics Panel on the Driver Station for errors and post back here what you find please.
__________________
Reply With Quote
  #15   Spotlight this post!  
Unread 26-01-2012, 16:36
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Re: Probes (and some other aspects) not working

Ah, there is one more thing I failed to mention.

If you turn on "Retain Wire Values" before running the VI, then everything appears to work perfectly (all probes work). However, if you start with "Retain Wire Values" off and then turn it on during execution, you still see "Not Executed."
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 22:22.

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