- Timestamp:
- Mar 16, 2018 3:38:18 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_EventModeProcessing.ipf
r1060 r1091 365 365 case 2: // mouse up 366 366 // click code here 367 v_tic() 368 printf "Show rescaled time graph = " 367 369 Execute "V_ShowRescaledTimeGraph()" 370 v_toc() 368 371 // 372 v_tic() 373 printf "calculate and show differential = " 369 374 V_DifferentiatedTime() 375 v_toc() 370 376 // 371 377 break … … 958 964 959 965 966 Variable t1 = ticks 960 967 SetDataFolder root:Packages:NIST:VSANS:Event: 961 968 … … 1006 1013 // 1007 1014 1008 //tic() 1015 1009 1016 Wave timePt=timePt 1010 1017 Wave xLoc=xLoc 1011 1018 Wave yLoc=yLoc 1012 1019 V_CleanupTimes(xLoc,yLoc,timePt) //remove zeroes 1013 //toc()1014 1020 1015 1021 NVAR gResol = root:Packages:NIST:VSANS:Event:gResol //timeStep in clock frequency (Hz) … … 1023 1029 // -- the time scaling is NOT done. it is still in raw ticks. 1024 1030 // 1031 1025 1032 if(mode == MODE_STREAM) // continuous "Stream" mode - start from zero 1033 v_tic() 1034 printf "Duplicate wave = " 1026 1035 Duplicate/O timePt rescaledTime 1036 v_toc() 1037 v_tic() 1038 printf "rescale time = " 1027 1039 rescaledTime = 1*(timePt-timePt[0]) //convert to nanoseconds and start from zero 1040 v_toc() 1041 v_tic() 1042 printf "find wave Max = " 1028 1043 t_longest = waveMax(rescaledTime) //should be the last point 1044 v_toc() 1029 1045 endif 1046 1030 1047 1031 1048 if(mode == MODE_OSCILL) // oscillatory mode - don't adjust the times, we get periodic t0 to reset t=0 … … 1051 1068 SetDataFolder root: 1052 1069 1070 Variable t2 = ticks 1071 1053 1072 STRUCT WMButtonAction ba 1054 1073 ba.eventCode = 2 1055 1074 V_ShowEventDataButtonProc(ba) 1056 1075 1076 Variable t3 = ticks 1077 1078 Print "load and process (s) = ",(t2-t1)/60.15 1079 Print "Overall including graphs (s) = ",(t3-t1)/60.15 1057 1080 return(0) 1058 1081 End
Note: See TracChangeset
for help on using the changeset viewer.