Ignore:
Timestamp:
Apr 23, 2019 10:38:10 AM (4 years ago)
Author:
srkline
Message:

adding first pass of procedures to allow plotting of sensor data. currently the sensor data folders are listed (if present), with status of data fields and a plot of the data. Attributes are not read in so the units are not known. CUrrently limited to temperature data

access to the nre panel is from the menu or the raw data panel.

Location:
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS
Files:
1 added
3 edited

Legend:

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

    r1121 r1146  
    131131#include "V_Utilities_Comparisons" 
    132132#include "V_Sector_Average" 
     133#include "V_TemperatureSensor" 
    133134 
    134  
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Menu.ipf

    r1144 r1146  
    2323                "Patch Detector Deadtime",V_PatchDetectorDeadtimePanel() 
    2424                "Patch Detector Calibration",V_PatchDetectorCalibrationPanel() 
     25                "-" 
     26                "Display Temperature Sensors",V_InitSensorGrapn() 
    2527                "-" 
    2628                "Show Mask for Averaging",V_Display_Four_Panels() 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_RAW_Data_Panel.ipf

    r1108 r1146  
    180180        Button button_RestorePanels,pos={880,146},size={100,20},proc=V_RestorePanelButtonProc,title="Restore Panels" 
    181181 
    182  
    183         TitleBox title_file,pos={606,178},fsize=12,size={76,20},variable= root:Packages:NIST:VSANS:Globals:gLastLoadedFile 
    184         TitleBox title_dataPresent,pos={606,210},fsize=12,size={76,20},variable= root:Packages:NIST:VSANS:Globals:gCurDispFile 
    185         TitleBox title_status,pos={606,240},size={200,200},fsize=12,variable= root:Packages:NIST:VSANS:Globals:gStatusText 
     182        Button button_sensor,pos={607,146+33},size={70,20},proc=V_SensorButtonProc,title="Sensors" 
     183 
     184 
     185        TitleBox title_file,pos={606,178+30},fsize=12,size={76,20},variable= root:Packages:NIST:VSANS:Globals:gLastLoadedFile 
     186        TitleBox title_dataPresent,pos={606,210+30},fsize=12,size={76,20},variable= root:Packages:NIST:VSANS:Globals:gCurDispFile 
     187        TitleBox title_status,pos={606,240+30},size={200,200},fsize=12,variable= root:Packages:NIST:VSANS:Globals:gStatusText 
    186188         
    187189//      Button button_tagFile,pos={720,412},size={70,20},proc=V_TagFileButtonProc,title="Tag File" 
     
    692694End 
    693695 
     696 
    694697// fake restore panels button click 
    695698Function V_FakeRestorePanelsButtonClick() 
     
    798801        return 0 
    799802End 
     803 
     804// 
     805// opens up the graph of the sensors available 
     806// 
     807Function V_SensorButtonProc(ba) : ButtonControl 
     808        STRUCT WMButtonAction &ba 
     809 
     810        switch( ba.eventCode ) 
     811                case 2: // mouse up 
     812                        // click code here 
     813                        V_InitSensorGraph() 
     814                        break 
     815                case -1: // control being killed 
     816                        break 
     817        endswitch 
     818 
     819        return 0 
     820End 
     821 
    800822 
    801823 
Note: See TracChangeset for help on using the changeset viewer.