示例#1
0
 public void DoCommandIEEEBlock(string strCommand,
                                byte[] DataArray)
 {
     // Send the command to the device.
     m_IoObject.WriteIEEEBlock(strCommand, DataArray, true);
     // Check for inst errors.
     CheckInstrumentErrors(strCommand);
 }
 protected void WriteIEEEBlock(string Command, object data, bool flushAndEND = true)
 {
     if (DriverIsReady)
     {
         try {
             _driver.WriteIEEEBlock(Command, data, flushAndEND);
         }
         catch (Exception ex) {
             Close();
             throw ex;
         }
     }
     else
     {
         throw new System.InvalidOperationException("Cannot execute WriteIEEEBlock(...). Driver not initialized or is closed.");
     }
 }
 public void WriteInt16Array(string command, Int16[] data)
 {
     _myVisaSg.WriteIEEEBlock(command, data, true);
 }