Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

N1470A high voltage power supply: Serial communications through USB VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.

Solved!
Go to solution

I have a Caen N1470A high voltage power supply.

I get a Visa time out when i send *IDN? or a Read command.
Writing to it seems not to be a problem.
I use the  National Instruments Measurement & Automation Explorer (NI-MAX).
My NI-MAX settings are as follows:

Port settings (Hardware):
Baud rate: 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow control: XON/XOFF


Serial Settings:
Baud rate: 9600
Data bits: 8
Parity: None
Stop bits: 1

Flow control settings:
XON/XOFF
Software control:
Xon Char x11
Xoff Char x13
Output State:
Ready To Send (RTS): asserted
Data Terminal Ready (DTR): asserted

I/O settings:
Timeout: 2000 ms
I/O Protocol: Normal
Termination Methods:
Supress End on reads: unchecked/unselected
Send end on Writes: checked/selected
Enable termination character: unchecked/unselected
End mode for reads: Termchar
End mode for writes: none
Termination Character: Line feed \n, value: xA
Error replacement character: x0

 

The above settings are shown also in the uploaded photos.

I have also uploaded the manual of the source.

 

Any ideas??

Thank you very much for your help and time!!

0 Kudos
Message 1 of 3
(2,964 Views)
Solution
Accepted by topic author thomas8491

The documentation suggests that this does not follow the SCPI command set.  See section 3.6 of the manual for command and response parameters.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 3
(2,956 Views)


Hi Minions!

You are right IDN is not supported and not noticing that confused me.

I have solved the problem in Matlab:

If i create a visa-serial object:

s =visa('ni','ASRL5::INSTR');

I cannot set the termination caharacter to CR/LF.

So i created a 'normal' serial object:

s = serial('COM5','Baudrate', 9600, 'Flowcontrol', 'software' ...
 ,'Parity', 'none', 'StopBits', 1, 'DataBits', 8 ...
 ,'Terminator', 'CR/LF'...
 );

which allows me to set the terminator and now everything works

0 Kudos
Message 3 of 3
(2,929 Views)