Home / documentation / Virtuoso component Standard Library working Details - 1.0.0

Virtuoso component Standard Library working Details

FIFTEEN SEGMENT CONTROL

3. FIFTEEN SEGMENT CONTROL

Case 1:-“when Display Input Config” is “ASCII from DisplayByte”

(A)   Default Node Style

(B)   Default property window

(C) Default Preview Window

(D)  Default View in HOST

Case 2:-When “Is Target Property Int” is not  selected in property window, then sending value should be in Byte format.

(A)   Node Style

(B)   Property Window

(C)    View in HOST

EX:-It will be defined in TMB

unsigned char FifteenSeg = 48;

void tmr()

{

 

       if (FifteenSeg >= 90)

       {

              FifteenSeg = 48;

       }

       FifteenSeg++;

}

Case 3:-When “Is Target Property Int” is selected in property window, then sending value should be Integer

(A)    Node Style

(B)   Property window

(C)   View In HOST

Ex-: It will be defined in TMB

unsigned char FifteenSeg = 48;

void tmr()

{

 

       if (FifteenSeg >= 90)

       {

              FifteenSeg = 48;

       }

       FifteenSeg++;

}

Case 4:-“when Display Input Config” is “ASCII from DisplayByteArray”

(A)   Node Style

(B)   Property Window

Note:Need to provide array from “TMB”

unsigned char FifteenSegArr[] = {

       68,69,70,71,72,73,74,75

};

(A)   View in HOST

Case 5:-“when Display Input Config” is “Raw from UnsignedShort”

Value In binary: 100 0001 1111 1111

Value in DEC  for binary value in “USHORT”: 16,895

(A)  Node Style

(B)  Property Window

(C)  View in HOST

 

 

On this page: