-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify Nova Px VB Script Commands #20
Comments
command = ('{axis}Pos = GetParam(tScanner, scPosition, 0, {channel})\n\n'
'SetSharedDataVal "shared_{axis}Pos", {axis}Pos, "F64", 8'
.format(axis=axis, channel=channel)) To test z position (in Jupyter): axis = 'z'
channel = 2
command = ('{axis}Pos = GetParam(tScanner, scPosition, 0, {channel})\n\n'
'SetSharedDataVal "shared_{axis}Pos", {axis}Pos, "F64", 8'
.format(axis=axis, channel=channel))
ntmdt_stage._run_script_text(command)
time.sleep(0.5)
ntmdt_stage._get_shared_float('shared_{axis}Pos'.format(axis=axis)) Always returns |
To set stage position: command = ('SetParam tScanner, scPosition, {scanner}, {channel}, {position}\n'
'Do\n'
'idle\n'
'Loop Until GetParam(tScanner, cStatus, {scanner}) = False'
.format(channel=0, position=position, scanner=1)) |
As mentioned above, running get and set position code with However, it appears that running the code with scanner = 0 and channel = 0 produces a value, see below. axis = 'z'
channel = 0
scanner = 0
position = 1.56
command = ('SetParam tScanner, scPosition, {scanner}, {channel}, {position}\n'
'Do\n'
'idle\n'
'Loop Until GetParam(tScanner, cStatus, {scanner}) = False'
.format(channel=0, position=position, scanner=1))
ntmdt_stage._run_script_text(command)
time.sleep(1)
command = ('{axis}Pos = GetParam(tScanner, scPosition, {scanner}, {channel})\n\n' # setting argument #2 = 1 (previously 0)
'SetSharedDataVal "shared_{axis}Pos", {axis}Pos, "F64", 8'
.format(axis=axis, channel=channel, scanner=1))
ntmdt_stage._run_script_text(command)
time.sleep(1)
ntmdt_stage._get_shared_float('shared_{axis}Pos'.format(axis=axis)) Returns This might be the "tube", a separate piezo component, which will provide satisfactory control if this is true. |
This (above comment) might not be true, as then running |
I have corrected the z axis control code and it is now working. Unknown travel range, possible 7 microns. |
Movement of the tube can be implemented by changing the scanner number. |
Clarification of tube axes requested. Included was for additional information about nova px thermo tab. |
VB Script commands have been created on branch
dev_ntmdt_stage
, however, some commands need to be verified by NT-MDT.Commands to be verified include:
The text was updated successfully, but these errors were encountered: