cancel
Showing results for 
Search instead for 
Did you mean: 
Knowledge Base

Example Code

Top Contributors
Sort by:
Description Description-Separate-1 Simple TCP client-server messaging application for sending short text messages via wifi. A Scan IPs button is used to discover the devices connected to the same wifi and write down the host name and the IP address to a 2D-Array. The port number must be the same to the receiver and can be chosen and dynamically changed by means of a numeric control. The recipient IP address can be chosen by double click it on the IP List or manually entered. Sent and received messages are written down on a text indicator used as register.     The main VI uses a master-slave architecture for discovering the devices connected to the wifi. A producer-consumer architecture with event handler is used to write down sent and received messages from the TCP server and the TCP client. Port change in runtime is allowed by means a simple loop architecture that encapsulates two simple loop architectures used as TCP server and TCP client.     Host names and IP address are discovered by parsing the results of "arp" and "nslookup" DOS commands by means the "System Exec.vi".       An Android app is also attached to test the application with smartphone and tablet.                   Description-Separate-2 Additional Information Additional-Separate-1 Acknowledgment I'd like to give special thanks to Federico Muretti, NI technical support engineer, for its precious support.       Additional-Separate-2
View full article
Description Description-Separate-1  Tartaglia's triangle and powers of two   Simple application to generate the Tartaglia's triangle by means the "Binomial Coefficient VI", and calculate the powers of two as the sum of the elements of each row. Generated values are converted in string and stored in a table. A numeric control is used to set the maximum number of rows.   Additional-Separate-2 Description-Separate-2
View full article