Ignore:
Timestamp:
Aug 30, 2018 11:12:50 AM (4 years ago)
Author:
srkline
Message:

bug fixes for:

RealTime? updating at VSANS
Mask loading at SANS

added highResGain field for VSANS R/W

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_HDF5_Write.ipf

    r1109 r1114  
    43144314        endif 
    43154315End 
     4316 
     4317// high res detector gain, a single value, only for detB 
     4318Function V_writeDetector_highResGain(fname,detStr,val) 
     4319        String fname,detStr 
     4320        variable val 
     4321 
     4322//      String path = "entry:instrument:detector_"+detStr+":highResGain" 
     4323        if(cmpstr(detStr,"B") == 0) 
     4324         
     4325                Make/O/D/N=1 wTmpWrite 
     4326        //      Make/O/R/N=1 wTmpWrite 
     4327                String groupName = "/entry/instrument/detector_"+detStr  
     4328                String varName = "highResGain" 
     4329                wTmpWrite[0] = val 
     4330         
     4331                variable err 
     4332                err = V_WriteWaveToHDF(fname, groupName, varName, wTmpWrite) 
     4333                if(err) 
     4334                        Print "HDF write err = ",err 
     4335                endif 
     4336                // now be sure to kill the data folder to force a re-read of the data next time this file is read in 
     4337        //      err = V_KillNamedDataFolder(fname) 
     4338        //      if(err) 
     4339        //              Print "DataFolder kill err = ",err 
     4340        //      endif 
     4341         
     4342                return(err)      
     4343        else 
     4344                DoAlert 0,"Bad call to V_writeDetector_highResGain" 
     4345                return(0) 
     4346        endif 
     4347End 
     4348 
    43164349 
    43174350Function V_writeDetDescription(fname,detStr,str) 
Note: See TracChangeset for help on using the changeset viewer.