/// <summary>
 /// Send "stop" command to device.
 /// Make sure the device supports this by calling tdMethods() before any calls to this function.
 /// </summary>
 /// <param name="deviceId">The device id to stop</param>
 /// <returns>Success or error code</returns>
 public static int tdStop(int deviceId)
 {
     return(UnmanagedImport.tdStop(deviceId));
 }