Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Write Continously

Hello. I am needing some help on VISA Write function. I saw a few post close to my needs but I am quite confuse. I am working on a project to control 2 servo motor (yaw and pitch).

I am using VISA write to send data to serial port. But, I can only send once (e.g: 8813 8813- hex). If I want to send the second one, (e.g: 7C15 7C15), I have to clear the data manually on my front panel. Only this makes my servo to move for any data that I send. 

Somehow, when I send my second data (e.g: 7C15 7C15), it indicates "return count-8" and "status write- operation completed sucessfully" but my servo does not move.

I am unsure how to troubleshoot this issue. Your kind assistance will really help me alot. Thank you.  

 

0 Kudos
Message 1 of 4
(4,405 Views)
It really does no good to keep hammering the device with the same data. Use an event structure to only send when the string changes value.
Message 2 of 4
(4,396 Views)

Thank you for the guidance.

Is there any example code related that I can go through? 

0 Kudos
Message 3 of 4
(4,356 Views)
Help> Find Examples for the event structure.
0 Kudos
Message 4 of 4
(4,353 Views)