Go to Post Maybe FIRST could get a sponsorship from Ikea, and we all could get flat-packed field parts with pictoral assembly instructions. And then all the parts could have funny names. - 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 18-02-2011, 20:31
winglerw28 winglerw28 is offline
Registered User
FRC #1274
 
Join Date: Jan 2011
Location: Berea, OH, USA
Posts: 30
winglerw28 is an unknown quantity at this point
PSI Value for a Case Structure

I am used to C and C++ "if" statements, and I am wondering how I can plug the value of a digital input (connected to a pressure sensor) into a case statement so that our pneumatics compressor stops at 120psi.

Thank you,
Will
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2011, 20:44
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: PSI Value for a Case Structure

The WPI Robotics Library includes a compressor class which handles everything automatically.

To answer your question generally, the digital input vi gives you a boolean (true/false) value. You can wire that directly into a case structure.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2011, 05:37
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: PSI Value for a Case Structure

The case structure will also alloy you to connect an integer and you can type expressions in the case string such as ...
1
2,3
4..10
Default

You can also wire a string and put in string based expressions. You can wire error wires, and of course, enumerations.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2011, 08:23
winglerw28 winglerw28 is offline
Registered User
FRC #1274
 
Join Date: Jan 2011
Location: Berea, OH, USA
Posts: 30
winglerw28 is an unknown quantity at this point
Re: PSI Value for a Case Structure

Thank you very much!

This is the first time programming pneumatics, and I'm having a hard time with it since I'm pretty much just using LabView without ever really exploring it. Your help is immensely appreciated.
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:28.

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