Hello!
I have been attempting the following three steps:
1.- Capture a Alphanumeric string from a I/O port.
2.- Pull the first 15 values of that string and discard the rest.
3.- Save that value to be used further down the code multiple times.
DIM Ref$[15]
ENTER @Meter;Ref$
WAIT 1
Ofst=Ref$[0;15]
PRINT ” METER READS : “;Ofst;” at 1 Vdc Range”
PRINT
I have attempted different variations of this section of the code and the best that I have been able to get is…
METER READS: +0 Vdc at 1 Vdc Range
Now the typical Alphanumeric string pulled from the I/O port is in the next form….
+1.84280000E-05 VDC,2004,11,21,14,54,33.104,1008,0
I seem to be unable to find the correct set of statements and commands to achieve my purpose.
Can anyone help me out?
Please bear with these questions, I am learning HTBasic as I go and how to code at the same time.
Thank you.
-
This topic was modified 7 months, 2 weeks ago by JSOTO211. Reason: Changed the DIM statement