示例#1
0
 private void buttonHome_Click(object sender, EventArgs e)
 {
     // All of this operation has been placed inside a "catch-all" exception
     // handler. Normally you would catch the more specific exceptions that
     // the API call might throw (details of which can be found in the
     // Kinesis .NET API document).
     try
     {
         // We pass in a wait timeout of zero to indicates we don't care how
         // long it takes to perform the home operation.
         _longTravelStage.Home(0);
     }
     catch (Exception ex)
     {
         MessageBox.Show("Unable to return device to home position\n" + ex);
     }
 }
示例#2
0
 private void buttonHome_click(object sender, RoutedEventArgs e)
 {
     m_deviceX.Home(m_waitLong);
     m_deviceY.Home(m_waitLong);
 }