ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help transferring old code into a LabView format

Hi everyone,

 

I'm trying to take data from a trace stored on a dinosaur Spectrum Analyser (I've checked for drivers). I have the manual and a code written from 1997 unfortunately I'm not very computer savvy. I've managed to get a basic program working with a GPIB connection on labview but I'm having trouble on this final step (where I need the data placed stripped to my computer) heres what I need to do in code, if anyone could point me in a direction I'd be extremely grateful.

 

OPTION BASE 1                (Specify lower boundary of arrays to be 1)

OUTPUT "TRDEF NN,20;"   (define user-defined trace of 20 elements, NN)

OUTPUT "MOV NN,0;"        (Store 0 in all elements of trace array)

OUTPUT "PDA NN,TRA,5;" (Performs an amplitude of distribution function on trace A)

DIM A(20)                           (Dimension 20-element computer array)

OUTPUT "NN?;"

ENTER   (Store values in computer array)

FOR I=1 TO 20                   (Print values on computer display)

NEXT I

 

Thanks

0 Kudos
Message 1 of 2
(2,760 Views)

Depends on how your instrument formats the data. Assuming you do the testing of the communication in MAX, what is the data when you do a VISA Read after the NN? write?

0 Kudos
Message 2 of 2
(2,725 Views)