AnsweredAssumed Answered

fast way to get Sparms from 8753 using visa32.bas & VB6?

Question asked by tdriver on Jul 22, 2008
Latest reply on Jul 23, 2008 by odanzy
Hi, this is my first post here.  I have written a fair amount of  VB code, but it's not my primary responsibility, so I have some holes in my understanding.

Currently I can talk to the VNA fine, and retrieve the trace data using  some VB code:
Dim strres  As String * 50000
.
.
.
    Call viVPrintf(vi, "SMIC" & Chr$(10), 0)
    Call viVPrintf(vi, "FORM4;" & Chr$(10), 0)
    Call viVPrintf(vi, "OUTPFORM;" & Chr$(10), 0)
    Call viRead(vi, strres, 75000, actual)
.
.
.
which grabs trace data (real and imag) and puts it into 1 big string called strres.  I can then parse that string looking for commas or asc(10) separators. 

It would be a lot nicer if I could just read the VNA trace data directly into a (numpoints X 2) array in a single shot.  Is there a way to do this?  If not, is there a quicker way to do this than I am trying?

thanks
Tim  

Outcomes