Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA timeout event problem

I am trying to move animatics smart motor through labview 7.1. I have two different motor, one for the movement in the azimuthal plane and other for the elevation plane.
If the azmuth motor is looking to some direction say 85 or 110 deg, then the elevation motor can not read out the position of elevation.
The steps involved are open the VISA, initialise the visa, and then move to certain angle.
Actually the code gives error (-1073807339), which tells us that Time out expired before completed. I have tried to increase the time out from my default value 35 ms even to 2000 ms.
The error remain same. There is no while loop in my code. Simply some case structures which I am trying to run one after another with mouse clicking.
Did any of you faced the same  sort of problem?
Pls post your reply.
sandy


0 Kudos
Message 1 of 2
(3,191 Views)
I assume that you are communicating through a RS232 interface with your motion controller. Is this correct?

In this case the typical reason for running into a timeout error is that the device doesn't understand the command that you have sent.
Please refer to your device's user manual. There is a good chance that you must add a termination character like a Line feed (LF) or a carriage return (CR).
To accomplish this, there are two approaches that can be taken: explicitly append a termination character onto the end of each command you will send, or set a global attribute of the VISA session to automatically append a termination character.

Best regards,

Jochen Klier
National Instruments Germany
0 Kudos
Message 2 of 2
(3,165 Views)