Go to Post Does FIRST know about some rare inverted mushroom that I do not? - sanddrag [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 03-03-2014, 02:16
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Load Problems

We have had trouble for a big portion of the build season with loading the cRIO from LabView. Thinking we had gone too far with the code somewhere, we started a fresh project today from the arcade w/simulation. Started adding stuff slowly, until it broke. Well, it broke on something really simple. Added a control, and a VI to spit out a string based on the input control (built an enum to avoid name issues on SmartDashboard data). Well the attached doesn't load in the simulator, and smells like our problems going to the cRIO . What dumb thing have we done?
TIA
Tim
Attached Files
File Type: vi SDIndexLookup.vi (15.5 KB, 7 views)
File Type: vi Periodic Tasks.vi (20.6 KB, 6 views)
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #2   Spotlight this post!  
Unread 03-03-2014, 06:55
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: Load Problems

The attached code is missing DevRefGet.vi. It is also missing the .ctl files, but I can get around that. If you attach or send the other file, I'll load it in the simulator to try to reproduce your problem.

Looking at the code, I don't see anything obviously wrong. What broke? Does it not compile, not run, something else?

Also, I see the value in the enum to string for the DevRefs if/when you are making code changes. But perhaps these would be better to build as an enum ring rather than a radio button control? The enum ring looks just like the one on the diagram. You can use the properties dialog box to build it, or you can type in the name, shift-enter, and type in the next, etc.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 03-03-2014, 22:42
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Load Problems

This got really ugly.

Let's start with my environment: Windows8 running in a virtual machine by Parallels under OSX 10.9.2 on a maxed out last Fall MacBook Pro. I know, lots of foundation variables.

Today, I create a new arcade project w/simulation. DS and a slightly customized DB are running. I go to RobotMain, change the target to My PC, then deploy from the white arrow. Result, No Robot Communications. See attached.

Something's corrupted some where. How does this happen?

TIA,
Tim
Attached Thumbnails
Click image for larger version

Name:	140303e ss.PNG
Views:	23
Size:	237.6 KB
ID:	16474  
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #4   Spotlight this post!  
Unread 04-03-2014, 06:25
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: Load Problems

Your setup sounds like mine, only mine is an older macbook. It should be fine.

Your DS window is covered, so I can't see the state of communications. The Waiting to Respond message is a generic message when the protocol isn't advancing. It can mean many things.

I can see your project window, and the LED on your target is not lit. This means that the first step is to find and connect to the controller. Once that happens, it asks the controller if it is already running code, what code, please stop and run this code instead, etc. That is the protocol.

My suspicion is that your VM networking may not be correct. Mine sometimes gets wonky when the laptop sleeps. It may be worthwhile to look at the DS Diagnostics screen to see if the ping LEDs next to the robot are lit green or not. You can also break the protocol down a bit and do smaller steps. If you right click on the target and choose Connect, this will only do the first portion of the protocol. Until this works, don't worry about your code or anything else.

If you post more description and more pictures, I can more easily help you get this going.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 04-03-2014, 22:46
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Load Problems

Thanks Greg. You start early Unfortunately, I am doing this after work in a timezone an hour later than you.

Built a arcade sim project from scratch. With no changes, I tried the target connect. The attached screenshot shows the results. Looked at the ethernet control panel and it was configured for IPv4 10.38.53.5

I hate Windoze...

Tim
Attached Thumbnails
Click image for larger version

Name:	SS140304a.PNG
Views:	19
Size:	660.6 KB
ID:	16485  
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #6   Spotlight this post!  
Unread 05-03-2014, 02:12
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,113
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: Load Problems

Quote:
Originally Posted by tcjinaz View Post
Looked at the ethernet control panel and it was configured for IPv4 10.38.53.5
Did you check the Advanced settings to make sure that was the only IP address configured?
Reply With Quote
  #7   Spotlight this post!  
Unread 05-03-2014, 08:01
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: Load Problems

Your DS has not been setup for your team number. It still reads xxyy. So the ping results are not valid. I think the simulator will work once that is corrected. You enter the team number on the DS's setup tab.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 05-03-2014, 20:42
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Load Problems

That's something new. The DS started forgetting the Team # between invocations. I can get a little farther now.
Did see some new mesaages that I had not seen before, about a loop running too slowly. Took a minute to remember the drive for n seconds VI is a loop
BTW, I asked the lint question, just to close that loop.
This isn't over yet, but I stopped going backwards.
Thanks,
Tim
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #9   Spotlight this post!  
Unread 05-03-2014, 23:33
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Load Problems

What expectations should we have of timing accuracy in the simulator? I am seeing what I thought was a lightly loaded TeleOp reporting 20-70mS executions (via 'Elapsed Timed.vi'), plus reported errors about a loop running too slow. The only loop referring to the asset was in TeleOp.

Aside: it would be nices to have a save as text option in the DS Diagnostics Message window. Triple-click is marginally useful. While we're at it some kind of text save from charts would be good. Or, toss out the definition of the stored file structure. I'm itching to code some Python

Oh to work in Unix, now that Spring is here.

Later,
Tim


PS CD's in trouble, I have come to grips with uploads
Attached Files
File Type: vi Teleop.vi (33.5 KB, 2 views)
File Type: vi Begin.vi (38.3 KB, 1 views)
File Type: vi Autonomous Independent.vi (22.8 KB, 2 views)
File Type: vi Periodic Tasks.vi (20.5 KB, 1 views)
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #10   Spotlight this post!  
Unread 06-03-2014, 19:37
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Load Problems

PROFILE IS GREAT!

Found our stupid user trick (sending too much DS data in TeleOp) in a minute or two.

THANKS GREG
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #11   Spotlight this post!  
Unread 08-03-2014, 07:11
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: Load Problems

Glad you found it. To answer your questions ...

The simulator is not simulating a cRIO, but it is a logical simulator of the code that runs on the cRIO. I'd expect that it will normally run faster than the cRIO, but that depends on the computer it is run on.

The log file format described in a few places on CD. Here is one http://www.chiefdelphi.com/forums/sh...d.php?t=104689

Since the log file contains all the info on the Diagnostics/Messages string and all of the Charts info, three are no other export buttons at this point. All of this is being reworked for 2015, so they may show up there.

Greg McKaskle
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 20:10.

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