|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||||
|
||||||
|
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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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. ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|