- Timestamp:
- Oct 31, 2017 1:09:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Transmission.ipf
r1064 r1072 87 87 WAVE groupIDW = root:Packages:NIST:VSANS:CatVSHeaderInfo:Group_ID 88 88 WAVE transmW = root:Packages:NIST:VSANS:CatVSHeaderInfo:Transmission 89 WAVE/T intentW = root:Packages:NIST:VSANS:CatVSHeaderInfo:Intent 89 90 90 91 // TODO … … 105 106 // TODO x- set the popup string to the matching name on exit 106 107 Variable targetID = groupIDW[ii] 107 String list = V_getFilePurposeList("TRANSMISSION",0) 108 // String list = V_getFilePurposeList("TRANSMISSION",0) 109 String list = V_getFileIntentPurposeList("SAMPLE","TRANSMISSION",0) 110 108 111 WAVE/T purposeW = root:Packages:NIST:VSANS:CatVSHeaderInfo:Purpose 109 112 for(ii=0;ii<np;ii+=1) 110 if(cmpstr(purposeW[ii],"TRANSMISSION")==0 && groupIDW[ii] == targetID)113 if(cmpstr(purposeW[ii],"TRANSMISSION")==0 && cmpstr(intentW[ii],"SAMPLE")==0 && groupIDW[ii] == targetID) 111 114 Print "transmission file match at ",filenameW[ii] 112 115 SetVariable setvar_2,value=labelW[ii] 113 116 SetVariable setvar_3,value=groupIDW[ii] 114 PopupMenu popup_1,mode=WhichListItem(fileNameW[ii], list )+1 117 PopupMenu popup_1,mode=WhichListItem(fileNameW[ii], list )+1,popValue=fileNameW[ii] 115 118 break 116 119 endif … … 122 125 // x- Detector Panel field is hard-wired for "B" 123 126 // 124 WAVE/T intentW = root:Packages:NIST:VSANS:CatVSHeaderInfo:Intent125 127 list = V_getFileIntentList("EMPTY BEAM",0) 126 128 … … 129 131 Print "empty beam match at ",filenameW[ii] 130 132 SetVariable setvar_4,value=labelW[ii] 131 PopupMenu popup_2,mode=WhichListItem(fileNameW[ii], list )+1 133 PopupMenu popup_2,mode=WhichListItem(fileNameW[ii], list )+1,popValue=fileNameW[ii] 132 134 133 135 // SetVariable setvar_6,value =_STR:"ML"
Note: See TracChangeset
for help on using the changeset viewer.