Go to Post It's not about going for any of the awards. Awards are to recognize what you are doing for First, your team, and the community. - SaraBailey [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 18-04-2011, 19:33
kenavt's Avatar
kenavt kenavt is offline
Registered User
AKA: Colin S
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Ann Arbor
Posts: 253
kenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond repute
LabVIEW deployment problems

Recently, I have been getting problems when deploying LabVIEW code to our practice robot (not permanently deployed, but temporarily, as long as the cRIO is on. I believe this is because the program is saved into RAM memory, but that is not the point of this post).

Specifically, when I attempt to deploy a robot project (from the Robot Main.vi), there springs up a Conflict Resolution window, where a bunch of VIs are unable to be resolved from current dialog, identified as part of a Real-Time Startup Application, and the VIs on the target will have to be closed to proceed. I click OK, and then I move on. Deployment begins and the VIs are pushed to the cRIO. However, they are pushed extraordinarily slow - about one VI every couple of seconds. Meanwhile, I lose comms according to LabVIEW (although the DS shows I still have comms), every once in a while. If I follow through with the whole deployment, I usually get about 85% of the way through, then lose comms permanently. Sometimes, it is before that.

To fix this issue, I have attempted to deploy with the "NO APP" dip switch turned to whatever is not the default position. This did not resolve the issue. Then, a couple of days later, I turned off my firewall, and attempted to deploy. When this failed in the same way as above, I attempted it in conjunction with the "NO APP" dip switch. Still, 'no dice'.

I know my code is fine, as another programmer on my team has deployed the exact same robot project to the same cRIO as it normally should happen, with the exact same ethernet cord (which has been used throughout this experience). This problem recently developed, as I have deployed other code to the cRIO previously (about a month ago). I also have all of the updates installed (LabVIEW, Utilities, and Driver Station).

Frankly, I'm at a loss. I have searched on CD for previous problems, attempted to apply those fixes, and failed. I plan to go to the LabVIEW booth at St. Louis, but until then, do you guys have any clue what's going on?
__________________
University of Michigan Computer Engineering '17

FRC 2337 student alumni (2010-2013)
Reply With Quote
  #2   Spotlight this post!  
Unread 18-04-2011, 19:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,713
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: LabVIEW deployment problems

When you set the NO APP switch, do you follow that with a cRIO reset or cycling the power, before attempting to run your project?
If you do it right, then there won't be a Conflict Resolution pop-up.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 18-04-2011, 19:57
kenavt's Avatar
kenavt kenavt is offline
Registered User
AKA: Colin S
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Ann Arbor
Posts: 253
kenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond repute
Re: LabVIEW deployment problems

Quote:
Originally Posted by Mark McLeod View Post
When you set the NO APP switch, do you follow that with a cRIO reset or cycling the power, before attempting to run your project?
If you do it right, then there won't be a Conflict Resolution pop-up.
I usually cycle the power. Should I be resetting the CRIO (through the DS)?
__________________
University of Michigan Computer Engineering '17

FRC 2337 student alumni (2010-2013)
Reply With Quote
  #4   Spotlight this post!  
Unread 18-04-2011, 20:15
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,713
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: LabVIEW deployment problems

Your description sounds like the NO APP switch isn't getting set properly.
To use the NO APP switch:
  1. flip it to ON
  2. reset the cRIO (3 equivalent ways)
    • cRIO panel black reset button
    • DS Diagnostics->Robot reboot...
    • cycle power
  3. After the DS Comm light comes back on, then you can flip the NO APP switch back OFF. You don't have to though until you want the user code to startup automatically.
If you get the NO APP switch working, then you can move on to discovering why you have to use it in the first place.
Usually, it's only necessary if your code is running too fast and hard. There are ways to check on that.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 18-04-2011, 20:30
kenavt's Avatar
kenavt kenavt is offline
Registered User
AKA: Colin S
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Ann Arbor
Posts: 253
kenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond repute
Re: LabVIEW deployment problems

Quote:
Originally Posted by Mark McLeod View Post
Your description sounds like the NO APP switch isn't getting set properly.
To use the NO APP switch:
  1. flip it to ON
  2. reset the cRIO (3 equivalent ways)
    • cRIO panel black reset button
    • DS Diagnostics->Robot reboot...
    • cycle power
  3. After the DS Comm light comes back on, then you can flip the NO APP switch back OFF. You don't have to though until you want the user code to startup automatically.
If you get the NO APP switch working, then you can move on to discovering why you have to use it in the first place.
Usually, it's only necessary if your code is running too fast and hard. There are ways to check on that.
I have read in other threads about the System Manager. While the NO APP switch has been ON (and I have cycled power), I have attempted to deploy. I have run the System Manager and observed that the CPU is occupied approximately 10-15% while data is being transferred between my laptop and the cRIO target. The VIs are still being uploaded to the CRIO at its crawling rate.

My friend has deployed the exact same code I have been trying to deploy the whole time with his laptop to the same cRIO, with the "NO APP" dip switch OFF. I believe the problem resides with my laptop hardware (or software on my computer, perhaps LabVIEW), not with the cRIO or with my code.

I have read through a few CD threads on deployment issues, and I believe this is a unique issue, as it hasn't been resolved (as far as I can tell) with the "NO APP" dip switch.
__________________
University of Michigan Computer Engineering '17

FRC 2337 student alumni (2010-2013)
Reply With Quote
  #6   Spotlight this post!  
Unread 18-04-2011, 20:46
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,713
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: LabVIEW deployment problems

I agree, it certainly sounds like your laptop is not using the full network.

Does the same laptop appear slow if you're doing typical browsing?
Is there a second NIC on it that you can try, like wireless?

Is your DS using the same NIC?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 18-04-2011, 20:54
kenavt's Avatar
kenavt kenavt is offline
Registered User
AKA: Colin S
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Ann Arbor
Posts: 253
kenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond repute
Re: LabVIEW deployment problems

Quote:
Originally Posted by Alan Anderson View Post
How do you have your networking set up? It sounds like you're connecting by wire, but is the D-Link router in the mix? Do you perhaps have both wired and wireless networks active on your computer at the same time?
Quote:
Originally Posted by Mark McLeod View Post
I agree, it certainly sounds like your laptop is not using the full network.

Does the same laptop appear slow if you're doing typical browsing?
Is there a second NIC on it that you can try, like wireless?

Is your DS using the same NIC?
I am connecting by an ethernet cable while concurrently accessing our team's wireless network. This could, perhaps, be the issue. I will try disabling my wi-fi adapter, and then deploying.

I think all of our team radios are encrypted, but if none of them are, I will try to deploy via those. I will probably get to this tomorrow.
__________________
University of Michigan Computer Engineering '17

FRC 2337 student alumni (2010-2013)
Reply With Quote
  #8   Spotlight this post!  
Unread 19-04-2011, 20:44
kenavt's Avatar
kenavt kenavt is offline
Registered User
AKA: Colin S
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Ann Arbor
Posts: 253
kenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond repute
Re: LabVIEW deployment problems

When I attempted to deploy the code via an ethernet cord with the wi-fi adapter turned off via the hardware switch on my laptop, the deployment was faster, but not the speed it should be still.

Normally, my team has our radios put away and we don't use them at our shop, but I pulled one out and hooked it up. Deploying over the bridge WAS at normal deploying speed (a big relief). Success.

I believe the issue is with my computer's hardware (perhaps the motherboard, I don't know much about computer hardware). I have had problems with my USB ports in recent days, after I spilled a little pop on my laptop. I thought the only consequence was one sticky key, but it appears that it has infiltrated my laptop's case and gotten on the hardware. That probably explains my USB ports (which are physically located next to the sticky key, CTRL) and my ethernet port (which is a little farther away, but on the same side).

Either way, thanks a lot, Mark and Alan. I see the hard work you guys do helping others to fix their programming issues, and I can tell you that it means a lot to me, personally, as well as the others, I am sure. I don't think I can say thank you enough! Thanks!
__________________
University of Michigan Computer Engineering '17

FRC 2337 student alumni (2010-2013)
Reply With Quote
  #9   Spotlight this post!  
Unread 19-06-2011, 18:30
FourPenguins's Avatar
FourPenguins FourPenguins is offline
Back in the Game
AKA: Ed Venator
FRC #2399
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Mount Olive, NJ
Posts: 261
FourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud of
Re: LabVIEW deployment problems

My team had a similar issue until the NI rep at Buckeye told us to disable Windows firewall. I don't know if that's the issue here (especially given the suspect hardware in your laptop), but he said that that was often the cause of connection/deployment problems.
__________________
MORT 11
-2005 New Jersey Regional Chairman's Award Winner
-2006 Palmetto Regional Winner
-2007 New York Regional Delphi Driving Tomorrow's Technology Award
-2008 New Jersey Regional Finalist, Chesapeake Regional Winner, Championship Event Overall Top Seed
HB 2399
-2009 Buckeye Regional Delphi Driving Tomorrow's Technology Award, Pittsburgh Regional GM Industrial Design Award
Reply With Quote
  #10   Spotlight this post!  
Unread 19-06-2011, 22:22
torihoelscher's Avatar
torihoelscher torihoelscher is offline
Wow I feel old
AKA: Princess Leia
no team
Team Role: College Student
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Palm Harbor FL
Posts: 191
torihoelscher has a brilliant futuretorihoelscher has a brilliant futuretorihoelscher has a brilliant futuretorihoelscher has a brilliant futuretorihoelscher has a brilliant futuretorihoelscher has a brilliant futuretorihoelscher has a brilliant futuretorihoelscher has a brilliant futuretorihoelscher has a brilliant futuretorihoelscher has a brilliant futuretorihoelscher has a brilliant future
Send a message via AIM to torihoelscher
Re: LabVIEW deployment problems

Quote:
Originally Posted by FourPenguins View Post
My team had a similar issue until the NI rep at Buckeye told us to disable Windows firewall. I don't know if that's the issue here (especially given the suspect hardware in your laptop), but he said that that was often the cause of connection/deployment problems.
That is true!!!
What my software mentor tells me and I sometimes remind him:
1) turn off wireless
2) turn off firewall
3) ping using cmd
4) if you cant ping power cycle
5) check ip address on computer
5.5) Use Measurement Automation Explorer
6) Reimage CRIO
__________________
Tori Hoelscher

FLL
FTC
FRC

"May the [mass x acceleration] be with you"
"Aren't you a little short to be a storm trooper?"

Alumni of Team 79 Krunch.

Last edited by torihoelscher : 19-06-2011 at 22:25. Reason: added another step
Reply With Quote
  #11   Spotlight this post!  
Unread 18-04-2011, 20:44
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,112
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: LabVIEW deployment problems

Quote:
Originally Posted by kenavt View Post
I know my code is fine, as another programmer on my team has deployed the exact same robot project to the same cRIO as it normally should happen, with the exact same ethernet cord (which has been used throughout this experience). This problem recently developed, as I have deployed other code to the cRIO previously (about a month ago). I also have all of the updates installed (LabVIEW, Utilities, and Driver Station).
How do you have your networking set up? It sounds like you're connecting by wire, but is the D-Link router in the mix? Do you perhaps have both wired and wireless networks active on your computer at the same time?
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 08:16.

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