Go to Post Be the change you want to see. - staplemonx [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 Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 21-04-2013, 19:57
xule xule is offline
Registered User
no team
 
Join Date: Mar 2008
Location: long beach
Posts: 9
xule is an unknown quantity at this point
Test Mode

I read the test mode tutorial but I would like to see some examples of test mode code to put in the vi. If I want to see if am getting a digital signal from a magnetic switch on my solenoid how would I write the code?
Reply With Quote
  #2   Spotlight this post!  
Unread 21-04-2013, 20:48
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 987
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Test Mode

You don't need to write any code for that. Jut put the robot in Test Enabled and click on the Test tab on the Dashboard. Then find the appropriate Digital Input in the list and observe the value.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-04-2013, 10:16
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,748
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: Test Mode

Yep. Test mode supports immediate viewing of the most common settings and value of sensors and actuators. It allows you to test most actuators. And it also has a plug-in for running self-tests. This is where you'd plug in a VI to run the elevator up and down and verify the limit switches, pots, etc.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 22-04-2013, 21:24
xule xule is offline
Registered User
no team
 
Join Date: Mar 2008
Location: long beach
Posts: 9
xule is an unknown quantity at this point
Re: Test Mode

Thanks, we used it to test a digital input we programmed and it worked fine, we did have problems testing the compressor though. When we tested the compressor the spike never changed color and the compressor never started. When we switched to teleop the compressor did not work. Rebooted the crio went to teleop compressor worked. Switched back to test mode and same issue.
Any ideas?
Reply With Quote
  #5   Spotlight this post!  
Unread 22-04-2013, 21:57
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,748
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: Test Mode

I don't have a test rig handy, but I'll try to remember to test it on one tomorrow. Test mode went in late in the beta and had only basic testing, so it could be that you've found a bug. Thanks for the good description of your issue.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 23-04-2013, 12:21
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,748
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: Test Mode

The most likely thing you are seeing is that Test mode has a side-effect of stopping the compressor. If you simply start it in Begin and never expect anyone to stop it, then test mode is breaking that assumption.

If you want to put a Compressor Start in Disable or somewhere else in your code, like in teleop on a button, that will fix it.

While looking, I also found a few issues with how test mode controls the compressor. At least in the code I was looking at, it would start but turn off the relay each second. I'll fix that for next year.

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 08:18.

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