Book Image

LabVIEW Graphical Programming Cookbook

By : Yik Yang
Book Image

LabVIEW Graphical Programming Cookbook

By: Yik Yang

Overview of this book

<p>LabVIEW is a graphical programming development environment for problem solving, accelerated productivity, and continual innovation. It integrates all the tools that engineers and scientists need to build a wide range of applications in a short amount of time. It offers unprecedented integration with existing legacy software, IP, and hardware, while capitalizing on the latest computing technologies.</p> <p>LabVIEW Graphical Programming Cookbook is a concise and fast paced guide to help you gain a comprehensive understanding of the different features and programming practices in LabVIEW. All the concepts in the book are described with the help of examples. This book also shows you how to pass data using STM, in addition to helping you understand different ways to handle errors.</p> <p>You will start by learning about LabVIEW settings, and then, the different features of LabVIEW using the front panel and block diagram. For the front panel, a variety of tips on creating a user interface are provided. For the block diagram, different architectures such as master slave architecture and state machine architecture are demonstrated, along with how data is passed among different sections of the code. Finally, the book shows you different ways to work with external code in DLL format and external applications.</p>
Table of Contents (17 chapters)
LabVIEW Graphical Programming Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using Telnet and FTP with files


Telnet allows users to log in to another machine to perform file operations. File Transfer Protocol (FTP) allows file transfer from one machine to another. In this example, we will demonstrate how to use telnet to log in to a Unix machine and create a folder. With the folder created, FTP is used for transferring a file to that folder.

How to do it…

We will create a state machine to use telnet and ftp for transferring files using the following steps:

  1. Create the state machine, as shown in the following screenshot. The first state is "User input". It waits for the user to click on start and populate a cluster with values from the front panel controls.

  2. The next state is "Initialize". It creates a telnet session with user input IP address of the Unix machine:

  3. The next state is "Wait for login". The state waits for the string login: to appear. If it does, the program transits to the Send Login state. If not, after the user-specified timeout has expired, the program transits...