Reading back the current XY stage position...

Moderators: Andreas Mohr, rah

Post Reply
kriswork
Posts: 2
Joined: Thu May 05, 2016 1:10 pm

Reading back the current XY stage position...

Post by kriswork » Fri May 06, 2016 8:58 am

Hi,

Using OPUS v7.2 on Windows 7.

I can move the XY Stage using these script commands:

Code: Select all

Result = Form.OpusRequest("OPUS_PARAMETERS")
Result = Form.OpusRequest("COMMAND_LINE Stage Control (0, {NOX=100, NOY=200 });")
...but when I read back the values of NOX and NOY with the code below I get the XY Origin values back (visible on the Grid tab of the "Non-video-assisted Mapping Measurement" window), not the values Shown on the XY Stage tab of the same Window

Code: Select all

Result = Form.OpusRequest("READ_PARAMETER NOX”) 
Thanks for any help

Kristian Benning
Diamond Light Source UK

kriswork
Posts: 2
Joined: Thu May 05, 2016 1:10 pm

Re: Reading back the current XY stage position...

Post by kriswork » Wed Jun 01, 2016 3:42 pm

Info from Bruker:

'strReturn = Form.OpusRequest("COMMAND_LINE GetStagePosition (0, {NDV=''DeviceName''});")

The above should work with a LUMOS, but we've got an LStepXYZstage which I set the NDV to equal, but It didn't work with Opus returning:

Error in Opus Command Line Execution – ID: 2

Post Reply