/afm_control_nova_script

AFM and NOVA communication

Primary LanguagePythonOtherNOASSERTION

AFM communicates with NOVA

Workflow 1

  1. Do experiment preparation for both AFM and NOVA
  2. AFM calculates a position matrix and then reaches the 1st position.
  3. Do Approach and settle some time (wait for servo to be stable).
  4. Send a signal to trigger NOVA to do an electrochemical experiment. Meanwhile, AFM will hold the current position.
  5. NOVA will create a file named as 'state_fin' to represent Finish state.
  6. AFM will use a polling way to check if 'state_fin' exists. Each check will sleep about 0.5 second.
  7. If 'state_fin' exists, delete it.
  8. Do Withdraw and move AFM tip to the next position.
  9. Repeat from the 2nd step until all positions have been handled.

Workflow 2

  1. Do experiment preparation for both AFM and NOVA
  2. AFM calculates a position matrix and then reaches the 1st position.
  3. Do Approach.
  4. Settle some time (wait for servo to be stable).
  5. Send a signal to trigger NOVA to do an electrochemical experiment. Meanwhile, AFM will hold the current position.
  6. NOVA will create a file named as 'state_fin' to represent Finish state.
  7. AFM will use a polling way to check if 'state_fin' exists. Each check will sleep about 0.5 second.
  8. If 'state_fin' exists, delete it.
  9. Move AFM tip to the next position.
  10. Repeat from the 3nd step until all positions have been handled.

Script Dependencies

  1. Python 2.7
  2. Scipy
  3. Numpy
  4. MinGW