Ignore:
Timestamp:
Feb 10, 2022 3:22:37 PM (8 months ago)
Author:
ilavsky
Message:

Prevent Nan to be sent to epics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/User Procedures/Indra 2/IN3_SamplePlate.ipf

    r1182 r1185  
    41724172        string PVAddress
    41734173        variable target
     4174        if(numtype(target)==0)                  //prevent NaN sent to epics, it will accept it and move to crazy place.
    41744175#if(exists("pvOpen")==4)
    4175         variable sxRBV
    4176         pvOpen/T=5 sxRBV, PVAddress                             // /T is timeout, should wait only this timeout.
    4177         pvPutNumber/Q sxRBV, target                             // /Q returns immediately, else waits until completion. 
    4178         pvClose sxRBV
     4176                variable sxRBV
     4177                pvOpen/T=5 sxRBV, PVAddress                             // /T is timeout, should wait only this timeout.
     4178                pvPutNumber/Q sxRBV, target                             // /Q returns immediately, else waits until completion. 
     4179                pvClose sxRBV
    41794180#endif 
     4181        endif
    41804182end
    41814183
Note: See TracChangeset for help on using the changeset viewer.