Home / documentation / Virtuoso Standard Library - 1.0.0

Virtuoso Standard Library

Fifteen Segment

The Fifteen Segment Display is a drag-and-drop virtualization for physical fifteen segment displays. The Fifteen Segment Display can be added to a host to display the standard fifteen segment LED alphanumeric character.

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

1. Default Node Style

                

 

2. Default property window

             

 

3. Default Preview Window

                

 

4. 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.

1. Node Style

                     

 

                     

2. Property Window

                           

 

3. View in HOST

                      

EX:-It will be defined in TMB
unsigned char FifteenSeg = 48;
void tmr()
{
if (FifteenSeg >= 90)
{
FifteenSeg = 48;
}
FifteenSeg++;
}
void main()
{
InitializeVirtuoso(HOST_NAME); //This must be the first function called for
Virtuoso.
//User code must start from here....
//tmr();
while (1)
{
// The call to sleep for 10ms is optional and only needed for computers
// with low hardware configuration. Comment this out if it is not needed.
VirtuosoSleep(10);
}
}

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


1. Node Style

                      

               

                   

                  

2. Property window     

                                 

 

3. View In HOST

                                          

 

Ex-: It will be defined in TMB
unsigned char FifteenSeg = 48;
void tmr()
{
if (FifteenSeg >= 90)
{
FifteenSeg = 48;
}
FifteenSeg++;
}
void main()
{
InitializeVirtuoso(HOST_NAME); //This must be the first function called for Virtuoso.

//User code must start from here....
//tmr();
while (1)
{
// The call to sleep for 10ms is optional and only needed for computers
// with low hardware configuration. Comment this out if it is not needed.
VirtuosoSleep(10);
}
}

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


1. Node Style

                   

2. Property Window               

                     

 

Note:Need to provide array from “TMB”
unsigned char FifteenSegArr[] = {
68,69,70,71,72,73,74,75
};

3. 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


1. Node Style

                 

 

2. Property Window

                 

3. View in HOST

                 

On this page: