4.39 - FourPack (ActiveX only) [U12 Datasheet] | LabJack
 
« Close

Datasheets and User Guides

App Notes

Software & Driver

 
Saturday/Sunday, March 28th&29th, 2020
Support: LabJack engineers available through email and chat.
Shipping: We are processing and shipping all orders.
Stock: 55/56 products in stock. More details.
Supply Chain: Some disruptions. More details.

4.39 - FourPack (ActiveX only) [U12 Datasheet]

This function is only in the OCX, and is used to convert a 4 element array into an integer. The packed value is determined as: valueA + (valueB * 28) + (valueC * 216) + (valueD * 224).

Declaration:

long FourPack (    long valueA,
                   long valueB,
                   long valueC,
                   long valueD )

Parameter Description:
Returns: Packed representation of a 4 element array.
Inputs:

  • valueA – Element 0 of the array to be converted.
  • valueB – Element 1 of the array to be converted.
  • valueC – Element 2 of the array to be converted.
  • valueD – Element 3 of the array to be converted.