@@ -494,6 +494,13 @@ Function ImageScanGmode(xpos, ypos, liftheight, scansizeX,scansizeY, scanlines,
494
494
495
495
i =0
496
496
do
497
+
498
+ // ENODE stuff
499
+ error+= td_xsetoutwavepair ( 0, "Event.0,repeat" , "Output.A" , lightwave, "Output.B" , voltagewave,-1 )
500
+ loadarbwave ( 1000, 5, 2.5, polarity=0 )
501
+ Sleep / S 3
502
+ //
503
+
497
504
starttime2 = StopMSTimer ( -2 ) //Start timing the raised scan line
498
505
print "line " , i +1
499
506
@@ -509,17 +516,14 @@ Function ImageScanGmode(xpos, ypos, liftheight, scansizeX,scansizeY, scanlines,
509
516
td_StopInWaveBank ( -1 )
510
517
td_StopOutWaveBank ( -1 )
511
518
512
- error+= td_xSetInWave ( 0, "Event.0" , "ZSensor" , ReadWaveZ, "" , Downinterpolation) // used during Trace to record height data
513
- if ( error != 0 )
514
- print i , "error1" , error
515
- endif
516
-
517
- error+= td_xSetOutWavePair ( 0, "Event.0" , "PIDSLoop.0.Setpoint" , Xdownwave, "PIDSLoop.1.Setpoint" , Ydownwave ,- DownInterpolation)
518
- if ( error != 0 )
519
- print i , "error2" , error
520
- endif
521
-
519
+ // error+= td_xSetInWave(0,"Event.0", "ZSensor", ReadWaveZ,"", Downinterpolation)// used during Trace to record height data
520
+ // error+= td_xSetOutWavePair(0,"Event.0", "PIDSLoop.0.Setpoint", Xdownwave,"PIDSLoop.1.Setpoint",Ydownwave ,-DownInterpolation)
522
521
522
+ //ENODE Stuff
523
+ error+= td_xSetInWave ( 0, "Event.0" , "ZSensor" , ReadWaveZ, "" , - UpInterpolation) // used during Trace to record height data
524
+ error+= td_xSetOutWavePair ( 0, "Event.0" , "PIDSLoop.0.Setpoint" , Xdownwave, "PIDSLoop.1.Setpoint" , Ydownwave ,- UpInterpolation)
525
+ //
526
+
523
527
SetPassFilter ( 1, q = ImagingFilterFreq, i = ImagingFilterFreq)
524
528
525
529
td_wv ( LockinString + "Amp" , CalHardD)
@@ -555,6 +559,11 @@ Function ImageScanGmode(xpos, ypos, liftheight, scansizeX,scansizeY, scanlines,
555
559
td_stopInWaveBank ( -1 )
556
560
td_stopOutWaveBank ( -1 )
557
561
562
+ //ENODE Stuff
563
+ loadpulsewave ( 100, 2, 0.003, 1 )
564
+ Sleep / S 3
565
+ //
566
+
558
567
// Outputs three signals from the ARC. If CutDrive is active, then "trigger" is replaced by the drive signal to the shake pieze
559
568
// Otherwise, the outputs are:
560
569
// BNC0 : triggerwave
0 commit comments