Go to Post I would hate for you to get the impression that the Northeast is one big unending snowglobe during the winter months. - Elgin Clock [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 26-01-2012, 16:40
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,563
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: Probes (and some other aspects) not working

Quote:
Originally Posted by JohnGilb View Post
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."
I think that's another hint that the problem isn't that the probes aren't working, but that your code really is only executing once.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2012, 16:53
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'll double-check tonight, but I'm fairly certain the code is executing. It's responsible for moving the robot around, and the robot actually does move around. I tried putting probes just before the "Motor -> Set Output" and got "Not Executed."

One way or another, I'll have more information in a few hours.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2012, 17:14
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

One other note -

After noticing this behavior, I tried to change my debugging strategy. I placed breakpoints on various blocks (some .vi's, some just basic blocks) in the code. When the breakpoints were hit, I probed the wires, and saw "Not Executed."

If you break on a block, shouldn't the wires that are attached to the inputs of that block be available for probe?

Thanks in advance.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2012, 20:26
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

All right, the project is attached. Here is the (in)consistent repro:

1) Download the code to the robot
2) Without enabling the robot (you can enable it, this just saves you a step), just go to Robot Main --> Periodic Tasks --> Mobility System.vi
3) Put some probes around. Nearly all of them say "Not Executed."

One curious example is the Gyro1, which is updating the front panel, but shows "Not Excuted" on the wire going into it on the Block Diagram.

Any red flags in our code that would explain this strange failure?
Attached Files
File Type: zip 2012MainProject.zip (788.3 KB, 1 views)

Last edited by JohnGilb : 26-01-2012 at 21:34.
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2012, 13:20
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

Is there any sort of logging that LabVIEW does that I can package up (or would something like a memory dump be helpful?)
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 11:33.

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