2nd Harmonic EFM Frequency Sweep with LIA2, 3
PowerScript
main
0 files
2nd Harmonic EFM …..js
2nd Harmonic EFM …..js
757 bytes
lia2 = {
'frequencyHz': 100,
'drivePercent': 100,
'channel': 'tip bias'
}
lia3 = {
'frequencyHz': 100,
'drivePercent': 0
}
print('kHz, amp2_mV, amp3_mV')
freq = 20*1000
while(freq <= 400*1000){
lia3['frequencyHz'] = freq * 2
spm.lockin3.modulator.config = lia3
spm.sleep(300)
lia2['frequencyHz'] = freq
spm.lockin2.modulator.config = lia2
spm.sleep(1000)
spm.addChannel('ChannelLockin2Amplitude')
amp2 = spm.readChannelAveraged('ChannelLockin2Amplitude', 100, 10)
spm.addChannel('ChannelLockin3Amplitude')
amp3 = spm.readChannelAveraged('ChannelLockin3Amplitude', 100, 10)
print((freq/1000).toFixed(1) + ' , ' + (amp2*1000).toFixed(1) + ' , ' + (amp3*1000).toFixed(1))
spm.sleep(300)
freq += 1000
}
Comments (0)
No comments yet. Be the first to comment!
Snippet Information
Author:
daeyeon.won
Language: PowerScript
Created:
Oct 23, 2025
Updated:
0 minutes ago
Views: 18
Stars: 2