Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error of timeout 1073807339

Hi,
 
At first, sorry for my english quite bad. I'am just received tow stepper motors and I want to test them with Measurement & Automation. When I send the default string to write : *idn?\n, I have the same string in response and any error but when I send a specific string : "8401001C00000002" to the motor, it appends a timeout error during the reading and I obtain the same string in response, that is not normal. Now, I can say that I don't know what to do so if somebody could help me, I would be very thankful. Thank you.
 
Here is a screen enclosed about the error.
0 Kudos
Message 1 of 4
(3,565 Views)
*IDN? is probably an invalid command and the reason you don't get a timeout error is you included the termination characters \r\n so the instrument received it. It echoed it back because it didn't know what the command was. When you sent the other string, you did not include \r\n. This is the '\' Code way to send a CR and LF. Try sending those with each command.
0 Kudos
Message 2 of 4
(3,561 Views)
Ok thanks, it works better now but I have another question to ask you because my motor doesn't
run anymore.
I believe to know why but I would like to have your opinion. I bought a NI RS-485 2 ports
and each connector have 9 pins (cf figure). The RXD+ and RXD- permit to write data in the buffer and the TXD +/- permit to read the data generated by the motor. The problem is the motor works with only 2 cables, one is +RS485 and the other is -RS485. As I had to cable the DB-9 connectors myself, I reliabled the RXD+ with the TXD+ and the RXD- with the TXD-. Now, I have the impression that it can't work because when the one cable is connected (without motor), I receive answers in the reading. It was just stupid to do this.
What do you think about this problem ?
0 Kudos
Message 3 of 4
(3,558 Views)
See if this helps.
0 Kudos
Message 4 of 4
(3,543 Views)