You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
322B

  1. function error = prologix_error(addr)
  2. %PROLOGIX_ERROR Summary of this function goes here
  3. % Detailed explanation goes here
  4. t = prologix_connect();
  5. fprintf(t, ['++addr ', num2str(addr)]);
  6. fprintf(t, 'system:error?');
  7. fprintf(t, '++read');
  8. error = fscanf(t);
  9. prologix_disconnect(t);
  10. end