02-05-2011 05:20 AM
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
02-05-2011 03:12 PM
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?