Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   PSI Value for a Case Structure (http://www.chiefdelphi.com/forums/showthread.php?t=92243)

winglerw28 18-02-2011 20:31

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

Joe Ross 18-02-2011 20:44

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.

Greg McKaskle 19-02-2011 05:37

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

winglerw28 19-02-2011 08:23

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. :)


All times are GMT -5. The time now is 09:11.

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