Forum Replies Created
-
AuthorPosts
-
ZeRider
ParticipantSolution found !!!
Size=100
ALLOCATE Data$[Size]
!
DLL GET “STDCALL LONG Piplx_w32:_PIPLX_CardId@16” AS “Identity”
Status=FNIdentity((Session),(Card),Data$,(Size))ZeRider
ParticipantHere 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.-
This reply was modified 3 months, 1 week ago by
ZeRider.
ZeRider
ParticipantHi 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 !
ZeRider
ParticipantExcept 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”ZeRider
ParticipantVery 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 welcomeZeRider
ParticipantHi,
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”-
This reply was modified 6 months ago by
ZeRider.
ZeRider
ParticipantHello,
As you know HTBasic cannot handle new computers with multi-core CPUs.
This can slow down calculations or file storage enormously.
The solution is to force the modification of the affinity so as to increase the processor number used during resource-intensive operations.
On the other hand, during screen displays, it is better to keep the original affinity on single processor.
To do this job I use the NirCmd freeware utility, to download here : https://www.nirsoft.net/utils/nircmd.html
Please find bellow my code. Hope that help somebody …DIM Application$[80]
DIM Disque$[80],Prog$[200]
DIM Command$[200]
!
Application$=”HTBwin10″&”\HTBwin.exe”
Application$=”C:\Program Files (x86)\”&Application$
!
Affinity=0 ! Normal case
Affinity=4 ! For test, To use multi-core processors 0 to 4
!
Prog$=”nircmd.exe”
Disque$=Nircmd_directory$ ! Need to be completed with the correct directory …
Disque$=Disque$&”\NirCmd\nircmd-x64″
Prog$=Disque$&”\”&Prog$
!
SELECT Affinity
CASE 0
K$=” 0″
CASE ELSE
K$=” 0″
FOR I=1 TO Affinity
K$=K$&” “&VAL$(I)
NEXT I
END SELECT
!
Command$=”cmd /C start /MIN “&Prog$&” setprocessaffinity “&””””&Application$&””””&K$
EXECUTE CHR$(13)&Command$
!
ENDZeRider
ParticipantHi Shuave,
A video may be too heavy !
Please find below the configuration screen copy for AGILENT 82357A USB/GPIB interface and a AGILENT 34401A multimeter
And some code to test the connection after the HPIBS setting.
(Be careful some old devices don’t respond to the *IDN? Syntax)KEYSIGHT connection expert : Multimeter and Interface
http://zupimages.net/viewer.php?id=19/45/8gy4.jpgHTBasic 10 : AUTOST Load HPIBS driver
http://zupimages.net/viewer.php?id=19/45/vxdw.jpgHTBasic Tools\Devices Setup\HPIBS : HPIBS configuration
http://zupimages.net/viewer.php?id=19/45/jhps.jpgHTBasic : Little Identity software for 34401A multimeter
http://zupimages.net/viewer.php?id=19/45/3iav.jpgHTBasic : Identity software result
http://zupimages.net/viewer.php?id=19/45/g19b.jpg-
This reply was modified 1 year, 2 months ago by
ZeRider.
ZeRider
ParticipantHi,
you must load the GPIB USB driver like this (for example) : LOAD BIN “HPIBS;DEV gpib0 ISC 7”
You can find the Keysight 82357B properties with the Keysight Connection Expert software scan
SICL interface ID = gpib0
Logical unit = 7July 18, 2019 at 9:19 am in reply to: Porting HP Basic 6.2 with ITF (HP 46020A Keyboard )to HT Basic for Windows 10.0 #1808ZeRider
ParticipantHi Uwe,
Do you have seen in the code if some lines aren’t missing ?
Your programming keys are probably on this syntax : ON KEY – LABEL “——–” GOTO —
The command control Windows keyboard F1 to F8 (KEY 1 to 8)
Normally all the programming keys are visible after a KEY LABELS ON command
Write “KEY LABELS” in the help files to see some additional informationZeRider
ParticipantHi,
As I remember there is a bug in the first 10.0 release version.
You need the corrected version 10.0.2 for the Screen builder functionality
Contact your vendor and ask him the free update of the software.-
This reply was modified 1 year, 10 months ago by
ZeRider.
ZeRider
ParticipantVery good, I’m happy to read that 🙂
ZeRider
ParticipantHi,
Do you want to test this :CLEAR SCREEN
KEY LABELS OFF
!
!——————-
! TRACE ON SCREEN
!——————-
PLOTTER IS CRT,”INTERNAL”
GOSUB Plot
!
!——————-
! TRACE ON PRINTER
!——————-
DUMP GRAPHICS
GOTO End
!
!
Plot: GCLEAR
VIEWPORT 0,138,0,100
WINDOW 0,100,0,100
MOVE 50,50
LORG 5
CSIZE 10
PEN 2 ! RED
LABEL “TEST”
PEN 1 ! WHITE
LABEL “END”
CLIP 20,80,30,70
FRAME
RETURN
!
!
End: KEY LABELS ON
ENDZeRider
ParticipantHi, do you have verify your Printer properties in the HTBasic toolbar ?
Look at : Tools\Device Setup\WIN-PRNT\PropertiesZeRider
ParticipantSorry I don’t really understand the question
This is a problem in one of your program written with HPbasic?
If yes, could you copy here the listing or the part of the listing of the program that doesn’t work? -
This reply was modified 3 months, 1 week ago by
-
AuthorPosts