Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop Visa flushing directly after Write?

So what? I will repeat what I have said before. The flush is not any problem. If it bothers you for some reason, use something other than VISA.

0 Kudos
Message 11 of 21
(1,455 Views)

Comparing Visa to Hyperterminal that is the difference when viewd through Portman?  Isn't this basic what I'm trying to do even when I use a LV example it's the same thing......?

 

If the "flush" is not the problem problem what? What else could I try?

0 Kudos
Message 12 of 21
(1,454 Views)

Attach your modified VI with an actual command saved in the 'String Write' control (Edit>Make Current Values Default. Save the VI). Provide a link or attach the programming manual for the instrument.

0 Kudos
Message 13 of 21
(1,451 Views)

Here's vi and newer manual.......... 

 

I've noticed the only way to stop flush is is changing "flow control" ......

Download All
0 Kudos
Message 14 of 21
(1,444 Views)

You changed the string format but now the string does not have the CR (\r)

0 Kudos
Message 15 of 21
(1,440 Views)

Forgot to save with "\r"  but still reads zero on output attached pdf with view. Format problem on read?

0 Kudos
Message 16 of 21
(1,436 Views)

Please post actual VIs rather than images placed into a PDF. We can't debug PDFs.

 

Several comments:

  • Why do you send one character at a time? Where does it say in the programming manual that you have to wait a certain amount of time between characters?
  • Why are you setting flow control to XON/XOFF? The programming manual makes no mention of this being supported. 
  • You have termination character enabled, but you have a loop set up to read the serial port based on the available bytes. This makes no sense. If you have termination character enabled, then you should have no loop. Simply wire a large value to the byte count input of VISA Read. It stops automatically once it sees the termination character.
  • You have no formatting on the buffer you read, so I don't understand your comment about bad formatting on the read.
  • The sequence frame is completely unnecessary.
0 Kudos
Message 17 of 21
(1,429 Views)

Code is posted in this thread?

 

1) one character at a time : I guess it's not needed but when I first started by viewing Portman didn't know if I full string would work.

2)  time between characters : For the way it's set up presently it needs to be set at 200 but without out loops and sequence it's not needed? 

3) setting flow control to XON/XOFF : Not using just saved with it selected.

4) wire a large value : Yep did that trying different things to see how stuff works...Novice..

5) no formatting on the buffer you read: Trying to figure out how to read...? LV only reading one channel but scaning 4 channels???? 

6) sequence frame : Correct not needed.........

0 Kudos
Message 18 of 21
(1,419 Views)

Unless the manual explictly tells you that you're supposed to wait a certain amount of time between characters, or the manufacturer tells you that, simply wire the full command string to VISA Write. If the device communicates via the RS-232 protocol, then it will have a UART that has a buffer. Also, turn off flow control since it's not supported. You can't have flow control to be one-sided.

0 Kudos
Message 19 of 21
(1,403 Views)

Not using " flow control " just saved when selected.

 

Need to have time in loop or no result for output......

 

Working on String Read output for all channel output instead of just one channel?

0 Kudos
Message 20 of 21
(1,393 Views)