12.07.2015 Views

Delcom DLL Manual - Delcom Products Inc.

Delcom DLL Manual - Delcom Products Inc.

Delcom DLL Manual - Delcom Products Inc.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VB: Public Declare Function <strong>Delcom</strong>NumericInteger Lib "<strong>Delcom</strong><strong>DLL</strong>.dll" _(ByVal DeviceHandle As Long, ByVal Number As Long, ByVal Base As Long) As Long<strong>Delcom</strong>NumericHexaDecimal – This function sends data to the display in hexadecimal integer format.This function is the same as the above function accept the display radix 16.C: DWORD <strong>Delcom</strong>NumericHexaDecimal(HANDLE hUsb, DWORD Number, DWORD Base);VB: Public Declare Function <strong>Delcom</strong>NumericHexaDecimal Lib "<strong>Delcom</strong><strong>DLL</strong>.dll" _(ByVal DeviceHandle As Long, ByVal Number As Long, ByVal Base As Long) As Long<strong>Delcom</strong>NumericDouble – This function sends data to the display in real numbers format. The firstparameter is the handle to the device. The second parameter is a signed real number. This parameter can bepositive or negative. A minus sign is prefixed to the number if there is space to show it. The thirdparameter is the base parameter. Base parameter controls the placement off the decimal point. Valid valuesare; 0=no decimal point, 1=right decimal point, 10=tenth decimal point, 100=hundredth decimal point, andso on. Values are always right justified and fractions are padded with zeros. Number are not rounded whenprecision is dropped.C: DWORD <strong>Delcom</strong>NumericDouble(HANDLE hUsb, double Number, DWORD Base );VB: Public Declare Function <strong>Delcom</strong>NumericDouble Lib "<strong>Delcom</strong><strong>DLL</strong>.dll" _(ByVal DeviceHandle As Long, ByVal Number As Double, ByVal Base As Long) As LongNumeric Display Examples:<strong>Delcom</strong>NumericInteger (hUsb, 123456, 0 ) => 123456<strong>Delcom</strong>NumericInteger (hUsb, 123456, 1 ) => 123456.<strong>Delcom</strong>NumericInteger (hUsb, 123456, 10 ) => 12345.6<strong>Delcom</strong>NumericInteger (hUsb, -123456, 100) => -1234.56<strong>Delcom</strong>NumericInteger (hUsb, 0, 100) => 0.00<strong>Delcom</strong>NumericInteger (hUsb, 5, 100) => 0.05<strong>Delcom</strong>NumericHexaDecimal (hUsb, 255, 0 ) => FF<strong>Delcom</strong>NumericHexaDecimal (hUsb, 255, 10 ) => F.F<strong>Delcom</strong>NumericHexaDecimal (hUsb, -10, 0 ) => -A<strong>Delcom</strong>NumericDouble (hUsb, 123.45, 100 ) => 123.45<strong>Delcom</strong>NumericDouble (hUsb, 0.45, 100 ) => 0.45<strong>Delcom</strong>NumericDouble (hUsb, 0.05, 100 ) => 0.05<strong>Delcom</strong>NumericDouble (hUsb,- 0.05, 100 ) => -0.05<strong>Delcom</strong>NumericDouble (hUsb, 12.34, 0 ) => 0<strong>Delcom</strong>NumericDouble (hUsb, 12.34, 1 ) => 12.<strong>Delcom</strong>NumericDouble (hUsb, 12.34, 10 ) => 12.3<strong>Delcom</strong>NumericDouble (hUsb, 12.34, 100 ) => 12.34<strong>Delcom</strong>NumericDouble (hUsb, 12.34, 1000 ) => 12.340<strong>Delcom</strong>NumericDouble (hUsb, -123.45, 100 ) => -123.45<strong>Delcom</strong> <strong>DLL</strong> <strong>Manual</strong> 18 of 21 June 9, 2011 Ver 1.1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!