Experimental Physics and
| |||||||||||||||
|
Is it possible to call a C function to avoid having a very cumbersome when clause in my epics sequencer program? I get some compiler error or other when I try different variations, so I'm hoping someone can tell me the best way to handle this.
I would like to do this: %{ /* This function checks for exceeding any of the soft limits. */ static int softCheck() { return( (vacuumReading >vacuum_high) ||(tempReading >tempCerm_high) ||(eminusReading >electron_high) ||(pmtReading >pmtlight_high) ); } }% ... when (softCheck()) } state backOff Thanks, Dennis
| ||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |