03-20-2018 10:48 AM
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!!
Solved! Go to Solution.
03-20-2018 11:32 AM
The documentation suggests that this does not follow the SCPI command set. See section 3.6 of the manual for command and response parameters.
03-21-2018 06:35 AM
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