LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial clear

Hello, I am trying to develop a dirver for a balance, but I am running into a few problems.  The  biggest problem is that the instrument does not do what I want it to do when I ask.  For example, if I send it five write commands in succession, it will most likely only register one of those commands.  So when I send another command, the action does not correspond to the most recent command, but to the oldest command in the queue.  The same behavior is true for the Read functions, meaning it returns data previously asked for but not yet recieved.  This a serious problem, and I have tried to use the VISA Clear vi and the the Flush Buffer VI, none of which really work at all.

One thing that is strange, that I have tried to research but come up short on, is the fact that the intrument uses "Timer Handshaking."  I have tried all of the different handshaking options of LabVIEW, but nothing seems to work.

Any suggestions?
0 Kudos
Message 1 of 2
(2,359 Views)
It sounds as though you may not be allowing enough time for the instrument to respond. Many instruments take 10s to 100s of milliseconds to repsond to a command and some instruments do not queue commands. Can you perform simple commands one at a time and get the expected results? What is the communications protocol to the instrument? RS-232, GPIB, Ethernet? Does the instrument manufacturer provide any software (drivers or applications) which successfully communicates with it?

Lynn
Message 2 of 2
(2,355 Views)