I'm writing code for GUI to control an Agilent analyzer. Now this analyzer is quite old so all of the code examples in the programming manual are all in HP Basic 5.0. I'm fairly new to C++ and am still trying to get my head around it all.
Below is the code I'm trying to decipher. I have a fairly good idea of whats going on I'm just not sure how it would translate in C++. The program is dumping an active trace in ASCII then loading that trace.
DDAS (dump data in ASCII) and LDAS (load data in ASCII) is syntax that belong to the Agilent analyzer. The first line of code is connecting to the device which I know how to do in C++.
Thanks
Below is the code I'm trying to decipher. I have a fairly good idea of whats going on I'm just not sure how it would translate in C++. The program is dumping an active trace in ASCII then loading that trace.
Code:
ASSIGN @Dsa TO 720 ! Create REAL array for data DIM Data_buffer(1:1668) ! Dump data in ASCII format OUTPUT @Dsa;"DDAS" ! Read format/length specifier ENTER @Dsa;Specifier$ L=VAL (Specifier$[3]) PRINT "FORMAT SPECIFIER = ";Specifier$[1,2] PRINT "LENGTH = ";L ! Read header and trace data ENTER @Dsa;Data_buffer(*) ! Load data in ASCII format OUTPUT @Dsa;"LDAS" ! Output format and length OUTPUT @Dsa;Specifier$ ! Output header and trace data OUTPUT @Dsa;Data_buffer(*)
Thanks