Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Teleop Pausing Itself (http://www.chiefdelphi.com/forums/showthread.php?t=155009)

Hitchhiker 42 09-02-2017 14:45

Teleop Pausing Itself
 
As the title explains, when I enable tele-op, tele-op pauses itself. This hadn't been a problem before this and no change was made to the code between then and now. Is there an explanation for this and how do I fix it?

Jonathan L. 09-02-2017 15:18

Re: Teleop Pausing Itself
 
What exactly do you mean by pausing? Do the Driver Station Comm and Code LEDs stay green when TeleOp "pauses"? Are you running the code permanently or with the run arrow?

Hitchhiker 42 09-02-2017 16:18

Re: Teleop Pausing Itself
 
Quote:

Originally Posted by Jonathan L. (Post 1642615)
What exactly do you mean by pausing? Do the Driver Station Comm and Code LEDs stay green when TeleOp "pauses"? Are you running the code permanently or with the run arrow?

I have comms and code still. I am running the code with the run arrow. By "pause" I mean the built-in LabVIEW pause button is activating itself.

BrennanB 09-02-2017 16:36

Re: Teleop Pausing Itself
 
Do you have a breakpoint in your code that you added by accident?

Hitchhiker 42 09-02-2017 16:42

Re: Teleop Pausing Itself
 
Quote:

Originally Posted by BrennanB (Post 1642681)
Do you have a breakpoint in your code that you added by accident?

No. I did forget to mention that I had e-stopped the robot sometime around/before then. Could that have an effect?

I did cycle power and restart the code, driver station, etc. after that, though.

BrennanB 09-02-2017 16:43

Re: Teleop Pausing Itself
 
Quote:

Originally Posted by Hitchhiker 42 (Post 1642685)
No. I did forget to mention that I had e-stopped the robot sometime around/before then. Could that have an effect?

I did cycle power and restart the code, driver station, etc. after that, though.

Estopping should be fine if you have rebooted everything. Are you getting any errors on the driver station?

Hitchhiker 42 09-02-2017 17:05

Re: Teleop Pausing Itself
 
Quote:

Originally Posted by BrennanB (Post 1642687)
Estopping should be fine if you have rebooted everything. Are you getting any errors on the driver station?

Yes - lots. However, all of the ones I'm getting are related to having things in code that don't physically exist yet, and are the same as before.

I do want to note that I pulled the same version from github and ran that and it worked fine.

Mark McLeod 09-02-2017 17:18

Re: Teleop Pausing Itself
 
Open Robot Main and go to View->Breakpoint Manager and see what's listed there.
There might be two default breaks, but there shouldn't be any more.

Unexas 10-02-2017 14:21

Re: Teleop Pausing Itself
 
You shouldn't be running the program by the arrow build it then deploy it and run it from the driver station.

flemdogmillion 10-02-2017 14:24

Re: Teleop Pausing Itself
 
Quote:

Originally Posted by Unexas (Post 1643022)
You shouldn't be running the program by the arrow build it then deploy it and run it from the driver station.

He's probably just debugging the program, as an actual build/run as startup takes several minutes.

Tom Line 10-02-2017 14:27

Re: Teleop Pausing Itself
 
Quote:

Originally Posted by Unexas (Post 1643022)
You shouldn't be running the program by the arrow build it then deploy it and run it from the driver station.

This is not true. LabVIEW is meant to be able to run without a full deploy. If you have a slow laptop or packet loss, that can cause the behavior you are seeing. In addition, any errors showing in the diagnostic window can potentially cause issues.

Jonathan L. 10-02-2017 15:03

Re: Teleop Pausing Itself
 
Quote:

Originally Posted by Tom Line (Post 1643026)
This is not true. LabVIEW is meant to be able to run without a full deploy. If you have a slow laptop or packet loss, that can cause the behavior you are seeing. In addition, any errors showing in the diagnostic window can potentially cause issues.

A slow wifi connection to the programming computer should not cause the robot to do anything out of the ordinary but it may cause indicators on the computer to be delayed. A slow wifi connection to the DS could cause some hiccups, however.



Are you seeing the pause button near the run arrow turn red? If so, what happens when you click the red pause button to un-pause?

Greg McKaskle 10-02-2017 15:04

Re: Teleop Pausing Itself
 
Just to pile on, ... err ... , I mean clarify, LabVIEW debugging involves running the VI interactively by pressing the run button

Each VI's compiled code is downloaded to memory, connections are established so that you can see panels, probe, breakpoint, change some values on panels, etc.

Once the code is working well, you build an exe and deploy it. There happens to be a way to compile debugging into an exe, but that is not used as often as the interactive case.

Greg McKaskle

Jonathan L. 10-02-2017 15:07

Re: Teleop Pausing Itself
 
Does deploying as startup produce the same pausing behavior?

Hitchhiker 42 10-02-2017 15:50

Re: Teleop Pausing Itself
 
Quote:

Originally Posted by Jonathan L. (Post 1643047)
Are you seeing the pause button near the run arrow turn red? If so, what happens when you click the red pause button to un-pause?

Yes, the pause button turns red. When I un-pause it, it finishes that iteration of the teleop loop, and pauses on the next iteration.


All times are GMT -5. The time now is 00:28.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi