 Timestamp:
 Aug 29, 2017 12:55:04 PM (5 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/VC_SideView.ipf
r954 r1062 81 81 Variable B_SDD, B_offset 82 82 83 NVAR TB_SDD_ offset = gFront_SDDOffset //in mm !!distance T/B are behind L/R  not to be confused with lateral offset83 NVAR TB_SDD_setback = gFront_SDDsetback //in [cm] distance T/B are behind L/R  not to be confused with lateral offset 84 84 85 85 //front … … 115 115 116 116 // FRONT 117 FT_profileX = F_SDD+TB_SDD_offset/1000 //SDD in meters, set back from L/R  convert to meters for the plot117 FT_profileX = (F_SDD+TB_SDD_setback) //SDD in [cm], set back from L/R  convert to meters for the plot? 118 118 FB_profileX = FT_profileX 119 119 120 FT_profileY[0] = F_TB_sep // separation in mm121 FT_profileY[1] = FT_profileY[0] + F_TB_h // add in height of T/B panel in mm120 FT_profileY[0] = F_TB_sep // separation in cm 121 FT_profileY[1] = FT_profileY[0] + F_TB_h // add in height of T/B panel in cm 122 122 123 123 FB_profileY = FT_profileY … … 125 125 //angles (not calculating anything, just connect the dots) 126 126 FT_rayX[0] = 0 127 FT_rayX[1] = F_SDD+TB_SDD_ offset/1000128 FT_rayX[2] = F_SDD+TB_SDD_ offset/1000127 FT_rayX[1] = F_SDD+TB_SDD_setback 128 FT_rayX[2] = F_SDD+TB_SDD_setback 129 129 FT_rayX[3] = 0 130 130 … … 136 136 137 137 FB_rayX[0] = 0 138 FB_rayX[1] = F_SDD+TB_SDD_ offset/1000139 FB_rayX[2] = F_SDD+TB_SDD_ offset/1000138 FB_rayX[1] = F_SDD+TB_SDD_setback 139 FB_rayX[2] = F_SDD+TB_SDD_setback 140 140 FB_rayX[3] = 0 141 141 … … 147 147 148 148 // MIDDLE 149 MT_profileX = M_SDD+TB_SDD_ offset/1000 //SDD in meters149 MT_profileX = M_SDD+TB_SDD_setback //SDD in [cm] 150 150 MB_profileX = MT_profileX 151 151 152 MT_profileY[0] = M_TB_sep // separation in mm153 MT_profileY[1] = MT_profileY[0] + M_TB_h // add in height of T/B panel in mm152 MT_profileY[0] = M_TB_sep // separation in cm 153 MT_profileY[1] = MT_profileY[0] + M_TB_h // add in height of T/B panel in cm 154 154 155 155 MB_profileY = MT_profileY … … 157 157 //angles (not calculating anything, just connect the dots) 158 158 MT_rayX[0] = 0 159 MT_rayX[1] = M_SDD+TB_SDD_ offset/1000160 MT_rayX[2] = M_SDD+TB_SDD_ offset/1000159 MT_rayX[1] = M_SDD+TB_SDD_setback 160 MT_rayX[2] = M_SDD+TB_SDD_setback 161 161 MT_rayX[3] = 0 162 162 … … 168 168 169 169 MB_rayX[0] = 0 170 MB_rayX[1] = M_SDD+TB_SDD_ offset/1000171 MB_rayX[2] = M_SDD+TB_SDD_ offset/1000170 MB_rayX[1] = M_SDD+TB_SDD_setback 171 MB_rayX[2] = M_SDD+TB_SDD_setback 172 172 MB_rayX[3] = 0 173 173 … … 178 178 179 179 // BACK 180 B_S_profileX = B_SDD //SDDb in meters180 B_S_profileX = B_SDD //SDDb in [cm] 181 181 182 182 B_S_profileY[0] = B_h/2 // halfheight … … 230 230 ModifyGraph/W=VCALC#SideView mirror=2 231 231 ModifyGraph/W=VCALC#SideView nticks(left)=8 232 Label/W=VCALC#SideView left "\\Z10Vertical position ( mm)"233 Label/W=VCALC#SideView bottom "\\Z10SDD ( meters)"234 SetAxis/W=VCALC#SideView left 80 0,800235 SetAxis/W=VCALC#SideView bottom 0,25 232 Label/W=VCALC#SideView left "\\Z10Vertical position (cm)" 233 Label/W=VCALC#SideView bottom "\\Z10SDD (cm)" 234 SetAxis/W=VCALC#SideView left 80.0,80.0 235 SetAxis/W=VCALC#SideView bottom 0,2500 236 236 // TextBox/W=VCALC#SideView/C/N=text0/A=MC/X=22.54/Y=42.04 "\\JCSIDE VIEW\rOnly the Top/Bottom panels are shown" 237 237 TextBox/W=VCALC#SideView/C/N=text0/A=MC/X=40.15/Y=43.62 "\\JCSIDE VIEW\r= Top/Bottom panels" … … 337 337 338 338 // FRONT 339 FL_profileX = F_SDD //SDD in meters339 FL_profileX = F_SDD //SDD in [cm] 340 340 FR_profileX = FL_profileX 341 341 342 FL_profileY[0] = F_LR_sep // separation in mm343 FL_profileY[1] = FL_profileY[0] + F_LR_w // add in width of L/R panel in mm342 FL_profileY[0] = F_LR_sep // separation in cm 343 FL_profileY[1] = FL_profileY[0] + F_LR_w // add in width of L/R panel in cm 344 344 345 345 FR_profileY = FL_profileY … … 369 369 370 370 // MIDDLE 371 ML_profileX = M_SDD //SDD in meters371 ML_profileX = M_SDD //SDD in [cm] 372 372 MR_profileX = ML_profileX 373 373 374 ML_profileY[0] = M_LR_sep // separation in mm375 ML_profileY[1] = ML_profileY[0] + M_LR_w // add in width of L/R panel in mm374 ML_profileY[0] = M_LR_sep // separation in cm 375 ML_profileY[1] = ML_profileY[0] + M_LR_w // add in width of L/R panel in cm 376 376 377 377 MR_profileY = ML_profileY … … 400 400 401 401 // BACK 402 B_T_profileX = B_SDD //SDDb in meters402 B_T_profileX = B_SDD //SDDb in [cm] 403 403 404 404 B_T_profileY[0] = B_h/2 // halfheight … … 452 452 ModifyGraph/W=VCALC#TopView mirror=2 453 453 ModifyGraph/W=VCALC#TopView nticks(left)=8 454 Label/W=VCALC#TopView left "\\Z10Horizontal position ( mm)"455 Label/W=VCALC#TopView bottom "\\Z10SDD ( meters)"456 SetAxis/W=VCALC#TopView left 80 0,800457 SetAxis/W=VCALC#TopView bottom 0,25 454 Label/W=VCALC#TopView left "\\Z10Horizontal position (cm)" 455 Label/W=VCALC#TopView bottom "\\Z10SDD (cm)" 456 SetAxis/W=VCALC#TopView left 80.0,80.0 457 SetAxis/W=VCALC#TopView bottom 0,2500 458 458 TextBox/W=VCALC#TopView/C/N=text0/A=MC/X=41.61/Y=43.62 "\\JCTOP VIEW\r= Left/Right panels" 459 459 endif
Note: See TracChangeset
for help on using the changeset viewer.