0 Null XYSee 4.0 Demonstration MACRO... 0SinTest.MAC 8/93. 0 Null (C) 1993, Insight Advantage. All Rights Reserved. 0 BEEP 0 MESSAGE Example of using XYSee for : 3 MESSAGE ** TESTING ** 1 MESSAGE {Blank out line} 1 MESSAGE ** TESTING ** 1 MESSAGE {Blank out line} 1 MESSAGE Your requirements may be more sophisticated, 4 MESSAGE but don't worry... 3 MESSAGE XYSee MACROs are SIMPLE to prepare ! 4 ACCEPT Select the FAMILY Menu. 0 DOWN 1 DOWN 1 ACCEPT Select the TRIGONOMETRIC Menu. 1 ACCEPT Select the SINE module. 0 MESSAGE First let's set some initial conditions. 4 DOWN 0 MESSAGE We'll set the model to Y=Asin(BX+C). 4 ACCEPT Select the Select Model option. 1 UP Selected model is Y=Asin(BX+C) 1 UP 1 ACCEPT 1 ACCEPT Select the VARIABLE UPDATE Menu. 0 MESSAGE And initialize our variables. 4 DOWN Enter an initial set of values. 1 ACCEPT "A" 1 8.0 Enter values for the variables... 1 UP 1 ACCEPT "C" 1 0.0 0 MESSAGE {Blank out line} 1 CANCEL To plot the initial values. 1 DOWN 1 DOWN 1 RIGHT Select the OVERLAY Menu. 0 MESSAGE Let's SAVE the initial conditions. 4 ACCEPT SAVE the initial plot. 0 MESSAGE {Blank out line} 1 RIGHT 0 BEEP Time to start... 1 ACCEPT Select the CURSOR option. 0 MESSAGE == Ready? ... Let's Begin == 5 RIGHT * 9 Move to the Maximum Amplitude point. 0 UP * 31 0 MESSAGE MAXIMUM AMPLITUDE What is this point on the wave called? 9 MESSAGE The magnitude from this point... 5 DOWN * 66 0 RIGHT * 13 0 MESSAGE PEAK-TO-PEAK AMPLITUDE To the opposite point is called? 9 CANCEL Exit the CURSOR option. 0 MESSAGE {Blank out line} 1 ACCEPT Select the VARIABLE UPDATE Menu. 1 UP 1 ACCEPT "C" 1 -1.5 1 CANCEL Replot with the new values. 1 RIGHT 1 ACCEPT Select the CURSOR option. 0 LEFT * 7 0 UP * 66 0 MESSAGE What is the distance from this point on the wave... 5 LEFT * 26 Position the cursor to the second point/wave. 0 MESSAGE WAVELENGTH To this point on the wave called? 9 CANCEL Exit the CURSOR option. 0 MESSAGE {Blank out line} 0 DOWN 1 RIGHT 1 ACCEPT OVERLAY our previous plot. 1 RIGHT 1 ACCEPT Select the CURSOR option. 0 MESSAGE What is the difference from this point... 5 LEFT * 7 0 MESSAGE PHASE SHIFT To the same point on a different wave called? 9 MESSAGE {Blank out line} 0 CANCEL Exit the CURSOR option. 1 ACCEPT Select the VARIABLE UPDATE Menu. 1 DOWN 1 ACCEPT "A" 1 5.0 Amplitude value first. 1 UP 1 ACCEPT "C" 1 0.0 Followed by the Phase Shift. (none here) 1 CANCEL Replot with the new values. 1 DOWN 1 RIGHT 1 ACCEPT OVERLAY the initial plot again. 1 RIGHT 1 ACCEPT Select the CURSOR option. 0 MESSAGE What is the variation from this point... 5 DOWN * 12 0 MESSAGE AMPLITUDE DIFFERENCE To the matching point called? 9 MESSAGE {Blank out line} 1 CANCEL Exit the CURSOR option. 0 CANCEL Exit the SINE module. 1 CANCEL Exit the TRIGONOMETRIC Menu. 1 CANCEL To the MAIN Menu. 0 MESSAGE It's time to check your answers. 4 MESSAGE The first question was an easy warmup, 4 MESSAGE It is the MAXIMUM AMPLITUDE point? 6 MESSAGE The second one was a little harder... 6 MESSAGE It's PEAK to PEAK. 6 MESSAGE I hope you remembered the...WAVE LENGTH. 6 MESSAGE Number four was harder...PHASE SHIFT. 6 MESSAGE Last, the variation here is in...AMPLITUDE. 6 MESSAGE We've covered a lot, I hope you did well ! 4 BEEP Notify the Instructor. 0 STOP Terminate this testing MACRO.