Go to Post FIRST is good for us. It is good for our own Children. Don't give up, even if you are as tired as I am! - Kyle Hughes [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 05-01-2011, 18:22
ErikRantapaa ErikRantapaa is offline
Registered User
FRC #2532 (Flash Power)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2010
Location: 2532
Posts: 16
ErikRantapaa is an unknown quantity at this point
VIs stop running after two seconds

On one laptop I am having a problem with VI's terminating a couple of seconds after deployment.

For instance, when running the Analog Input example I can deploy the VI, and it appears to run, but then it just stops after a couple of seconds. No error dialog box comes up - apparently the VI goes from running mode to stopped mode.

Other symptoms:
- the status led on the cRIO will start to intermittently blink three times (i.e. blink-blink-blink, pause, blink-blink-blink, pause, ...)

- the driver station indicates there is no communication with the cRIO

- if I single step through the code, I never make it through one iteration of the inner while loop; the top branch of the OR operator connected to the stop condition becomes true right away; if I remember the VI correctly, this is an error condition, but I haven't been able to figure out what the error is.

However, I don't have these problems on another laptop. The main difference between the two is that on the one that works I installed Windows 7 myself and the one that doesn't has a factory installed Windows 7.

Any ideas of what the problem is? Is there more I can do to diagnose the problem?

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 05-01-2011, 19:48
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: VIs stop running after two seconds

Since it sounds like single stepping is an easy and quick way to reproduce the issue, I'd recommend placing probes on a few wires, or perhaps turning on execution hilighting (the light bulb on the toolbar), and stepping through the code to determine if there is a logic issue, what error may be reported, etc.

By the way, if there is an error you'd like to look up, there is a tool in the Help menu called Explain Errors which lets you type in the code and get some additional info.

If it still doesn't make sense, post a screenshot or attach a VI to help narrow it down.

Just guessing, it sounds like the VI is finishing because the loop and all other code has completed. When a LV VI terminates, there are no lights or dialogs, it simply set the arrow back so that you can run again.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 05-01-2011, 20:06
flameout flameout is offline
AKA Ryan Van Why
FRC #0957 (SWARM)
Team Role: Alumni
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Oregon
Posts: 168
flameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to all
Re: VIs stop running after two seconds

One other thing to add:

According to http://digital.ni.com/public.nsf/all...256FDB00681951, a sequence of three flashes on the status LED indicates safe mode -- check the DIP switches (is the safe mode one different from the rest)? This might not apply to the FRC cRIO, but it probably does.

I hope this helps.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-01-2011, 22:39
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: VIs stop running after two seconds

You can find how to configure your dip switches on page 12 of the crio-frc_Operating_Instructions.pdf.
You can get to this from the start menu by going to Programs > National Instruments > CompactRIO > CompactRIO Manuals

This will open up the CompactRIO Manuals folder containing the crio-frc_Operating_Instructions.pdf, found at C:\Program Files\National Instruments\CompactRIO\manuals
__________________
-- Marshal Horn
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with breakout box after update two Sarah348 Control System 1 12-02-2010 12:18
TeleOp Init/Stop vs. Auton-Iterative Init/Stop Ziaholic NI LabVIEW 11 07-02-2010 22:19
Any teams build two robots to practice with after build season. (6 weeks) GVDrummer General Forum 42 24-01-2008 21:34
pic: 166 Before and After: All in Two Hours Dan Petrovic Extra Discussion 3 30-06-2006 16:43
Stop The "Lesser of two evils" MattK Chit-Chat 8 07-08-2004 23:31


All times are GMT -5. The time now is 16:57.

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