Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

A question about hardcopy GPIB remote control?

     This is final data

0 Kudos
Message 11 of 20
(2,496 Views)

@xiaochouyu wrote:

the data size  is 72676kb,but only read out  4096kb.So I think the <block>size only 4096kb.


I think that is a VISA limitation, not your instrument.  Use a loop to continuously read until you read all of the data.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 20
(2,487 Views)

This is a good idea, but how to read it circularly?I have tried continuous reading, but only the first one can work.

Can you tell me the specific function?

0 Kudos
Message 13 of 20
(2,477 Views)

A related question. But it still can't solved.

如何使用VISA从串口读取多于4096个字节的数据

0 Kudos
Message 14 of 20
(2,475 Views)

Use a read i a while loop.

Read 4096 bytes max a time.

Only the last should have the correct number of byetes left.

greetings from the Netherlands
0 Kudos
Message 15 of 20
(2,472 Views)
0 Kudos
Message 16 of 20
(2,448 Views)

The question is not  loop.but is how to read correctly!

such as this code:

 

Dim fanal As String = ""
Do
status = viRead(vi, strRes, 4096, retCount) '太长时读出为空,容易卡死
Dim x As Integer = Val(Mid(strRes, 2, 1))
Dim y As Integer = Val(Mid(strRes, 3, x))
strRes = Mid(strRes, x + 3, y)
fanal = fanal & strRes

Loop Until (retCount < 4096)

 

read only 16 bytes!

 

if use

status = viReadToFile(vi, "D:\YouName.WMF", 4096, retCount) 

the result only first viReadToFile can work!

0 Kudos
Message 17 of 20
(2,434 Views)

can't connect “FSEA30”,may be  too old. and the source is no help.

thank you

0 Kudos
Message 18 of 20
(2,433 Views)

You may try to download the printcapture software.

http://www.printcapture.com/equiplist.html#testequipment

 

the Rohde Schwarz FSEA Spectrum Analyzer is in the support model list.

0 Kudos
Message 19 of 20
(2,429 Views)

I used to use it. it only supports NI GPIB drive. can't supports other driver such as Agilent.

0 Kudos
Message 20 of 20
(2,426 Views)