Forum Replies Created
-
AuthorPosts
-
If you install Free FOXIT Reader PDF you can configure your Print driver in your Device setup as “Foxit Reader PDF Printer”
I never test the 10.2 HTBasic version. I’m still on 10.1.
Have you try to read data with a STRING variable ?DIM I$[200]
!
OUTPUT Analyzer;”:CALC1:MARK1 ON”
OUTPUT Analyzer;”:CALC1:MARK1:X:POS 1″
!
I$=””
OUTPUT Analyzer;”:CALC1:MARK1:Y?”
ENTER Analyzer;I$
I$=TRIM$(I$)
PRINT I$Hi, I think you could try to connect directly your device to PC through USB.
DIM Cmd$[80],Response$[1024]
!
Isc=13 ! Free Interface Select Code
Devname$=”USBInstrument1″ ! Your Instrument Find in AGILENT Connection Expert / USB Interface
ON ERROR GOSUB Erreur
LOAD BIN “USBS;DEV “&Devname$&” ISC “&VAL$(Isc)&” TIME 10″
!
Identity: Response$=””
Cmd$=”*IDN?”
OUTPUT Isc;Cmd$
ENTER Isc;Response$
!
PRINT Response$
GOTO Exit
!
Erreur: OFF ERROR
ERROR RETURN
!
Exit: ENDHi,
I think you can download programming manual here : https://www.siglenteu.com/resources/documents/spectrum-analyzers/
For example in this document “ProgrammingGuide_PG0703P_E02A.pdf” you will found SCPI commands overview and some programming example at the end.
As I see, it’s seem very similar to KEYSIGHT programming.
Please find some lines extract of my dedicated E4990A Analyzer HTBasic code
Hope that could help …!——————————————————————
! ANALYZER KEYSIGHT E4990A
!——————————————————————
Analyzer=717
!
Fstart=1000 ! KHz
Fstop=20000 ! KHz
Fstep=50 ! KHz
Npoint=((Fstop-Fstart)/Fstep)+1! #
Average=256 ! #
!
OUTPUT Analyzer;”*CLS” ! Interface Device CLEAR
OUTPUT Analyzer;”:SYST:PRES” ! Initial Setup
!
!—————————–
! SETUP CHANNEL1
!—————————–
OUTPUT Analyzer;”:DISP:WIND1:TRAC1:Y:SPAC LIN” ! Set Y-Axis at LIN Format
OUTPUT Analyzer;”:DISP:WIND1:TRAC2:Y:SPAC LIN” ! Set Y-Axis at LIN Format
!
OUTPUT Analyzer;”:DISP:WIND1:TRAC1:STAT ON” !
OUTPUT Analyzer;”:DISP:WIND1:TRAC2:STAT ON” !
OUTPUT Analyzer;”:DISP:WIND1:TITL OFF” !
OUTPUT Analyzer;”:DISP:WIND1:LAB ON” ! Axle Labels
!
OUTPUT Analyzer;”:CALC1:PAR1:DEF Z” ! Set Measurement parameter Trace1 : |Z|
OUTPUT Analyzer;”:CALC1:PAR2:DEF TZ” ! Trace2 : Phi
!
OUTPUT Analyzer;”:CALC1:PAR:COUN 2″ ! Nb of Trace = 2
!
!—————————–
! SETUP STIMULUS1
!—————————–
OUTPUT Analyzer;”:SENS1:SWE:POIN “&VAL$(Npoint) ! Set Number of Points
OUTPUT Analyzer;”:SENS1:FREQ:STAR “&VAL$(Fstart)! Set START Frequency
OUTPUT Analyzer;”:SENS1:FREQ:STOP “&VAL$(Fstop) ! Set STOP FrequencyOUTPUT Analyzer;”:SENS1:SWE:TYPE LIN” ! Set SWEEP Type at LIN
OUTPUT Analyzer;”:SENS1:AVER:COUN “&VAL$(Avg) ! Average
OUTPUT Analyzer;”:SENS1:AVER:STAT OFF”
OUTPUT Analyzer;”:SENS1:APER 1″ ! Measurement Time FAST
!
OUTPUT Analyzer;”:SOUR1:MODE VOLT” ! Set OSC Mode
OUTPUT Analyzer;”:SOUR1:VOLT 750E-3″ ! Set OSC Level
OUTPUT Analyzer;”:SOUR1:ALC OFF” ! Turn OFF ALC
!
OUTPUT Analyzer;”:CALC1:AVER:COUN “&VAL$(Avg) !
OUTPUT Analyzer;”:CALC1:AVER:STAT ON” !
OUTPUT Analyzer;”:CALC1:AVER:CLE” !
!
ENDCAT instructions could be very useful to put all the files selected with your criteria in a list :
Nb_file=0
Directory$=”D:\Calibration Measurement”
CAT Directory$;NAMES,COUNT Nb_file
!
ALLOCATE Catalog$(1:Nb_file)[80]
Selection$=”*.Cal”
!
CAT Directory$ TO Catalog$(*);SELECT Selection$,COUNT Nb_file,NAMES
!
FOR I=1 TO Nb_file
PRINT I,Catalog$(I)
NEXT I
!
PRINT
PRINT “Nb File=”;Nb_file
!
ENDAn alternative solution would be to use the “FILE WIDGET” or the “DIALOG FILE” from Basic Plus (BPLUS) but there’re adapted for manual file choice.
For a file choice by software the CAT function could be useHi,
Advice : Add some PRINT in your code to see the different data values at each step
You will see if data are extracted from array well defined in your code : For example, L=D(I*2-1) and R=D(I*2) are always 0 (?)
or if array dimensions are compatible with your loop …Hi Jr,
Do you try to download your HTBasic Demo version from the Download page?
I just try and seem to working well for me.
Here in France, I buy my HTBasic licence from Techsoft.de
The guys are reactive and have good support because they are also HTBasic developer
Regards,
ZeRiderHi, do you try Beyond Compare from Scooter software ?
Work great if you copy-paste the HTBasic code with text format choiceSolution found !!!
Size=100
ALLOCATE Data$[Size]
!
DLL GET “STDCALL LONG Piplx_w32:_PIPLX_CardId@16” AS “Identity”
Status=FNIdentity((Session),(Card),Data$,(Size))Here is the function description, if that could help …
PIPLX_CardId
unsigned long PIPLX_CardId (long session, unsigned long cardNumber, char cardID[], unsigned long length);
Purpose
Obtains the identification string of the specified card. The string contains these elements:
“model code;serial number;revision code”
The <revision code> value represents the hardware version of the unit – cards have no firmware on-board.Parameters
Session/ Type/ Description
Input/ long /Handle of current session.cardNumber/ Type/ Description
Input/ unsigned long/ Card number.length/ Type/ Description
Input/ unsigned long/ Length of character string buffer.CardID/ Type/ Description
Output/ char []/ Identification string of the specified card. The string contains these elements:
“model code;serial number;revision code”
The <revision code> value represents the hardware version of the unit – cards have no firmware on-board.Return Value/ Type/ Description
Return/ unsigned long/ Zero for success, or no-zero error code.Hi Corey,
I like your method2, I will try immediately …The top method3) would be to create the complete file of the desired printer in the registry from a sript when launching HTBasic !
Except this forum, it’s clear that HTBasic is very light on the support side … 🙁
Maybe it’s the same question than drew, does somebody know how to choose the printer by software (without going manually through the Tools / Device Setup interface)?
Is there something like that is existing ? : CONTROL 10,xxx; “HP Officejet Pro 8500”Very good idea.
And some update on SYSTEM$(“VERSION:OS”) for the Windows 10 system could be great …
Actually the response is “6.2 Windows NT”
I found an alternative using “ProduKey” from NirSoft but a correction would be welcomeHi,
Go to your Keysight Connection Expert manager and find your GPIB-USB interface …
Note your SICL Interface ID : gpib0 for example
Note your Logical Unit : 7And now with HTBasic try to load the SICL driver like this :
LOAD BIN “HPIBS;DEV gpib0 ISC 7” -
AuthorPosts