This commit is contained in:
17
script/tutorial/15_ContinuousScan.js
Executable file
17
script/tutorial/15_ContinuousScan.js
Executable file
@@ -0,0 +1,17 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Demonstrate the use of Continuous Scan Scan: a Linear Scan with continuous motor move and
|
||||
// sampling on the fly.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
m1.move(0.0)
|
||||
|
||||
//A single motor at current speed
|
||||
r1 = cscan(m1, (ai1,ai2), -2, 3 , steps=10, undefined, undefined ,true)
|
||||
|
||||
//A single motor in a given time
|
||||
r2 = cscan(m1, (ai1,ai2), -2.0, 3.0, 100 , undefined , 4.0, true)
|
||||
|
||||
//Multiple motors in a given time
|
||||
r3 = cscan((m1, m2), (ai1,ai2), (-2.0, -3), (3.0, 5.0), steps=100, undefined, time = 4.0, relative=true)
|
||||
|
||||
Reference in New Issue
Block a user