ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Control De Inventario


Enviado por   •  18 de Enero de 2015  •  9.426 Palabras (38 Páginas)  •  270 Visitas

Página 1 de 38

Telemark University College

Department of Electrical Engineering, Information Technology and Cybernetics

Faculty of Technology, Postboks 203, Kjølnes ring 56, N-3901 Porsgrunn, Norway. Tel: +47 35 57 50 00 Fax: +47 35 57 54 01

Database Communication in LabVIEW

HANS-PETTER HALVORSEN, 2011.02.11

2

Preface

This document explains the basic concepts of a database system and how to communicate with a database from LabVIEW.

You should have some basic knowledge about LabVIEW, e.g., the “An Introduction to LabVIEW” training. This document is available for download at http://home.hit.no/~hansha/.

In addition to LabVIEW Professional Development System, you need to install the “LabVIEW Database Connectivity Toolkit”.

For more information about LabVIEW and Databases, visit my Blog: http://home.hit.no/~hansha/

Some text in this document is based on text from www.wikipedia.org and “LabVIEW Database Connectivity Toolkit User Manual”.

iii

Table of Contents

Preface ..................................................................................................................................................... 2

Table of Contents .................................................................................................................................... iii

1 Introduction to LabVIEW ................................................................................................................ 1

1.1 Dataflow programming ........................................................................................................... 1

1.2 Graphical programming ........................................................................................................... 1

1.3 Benefits .................................................................................................................................... 2

2 Database Systems ........................................................................................................................... 3

2.1 RDBMS Components ............................................................................................................... 3

2.2 Data warehouse ...................................................................................................................... 4

2.3 Relational Database ................................................................................................................. 4

2.4 Real-time databases ................................................................................................................ 4

2.5 Database Management Systems ............................................................................................. 5

2.6 MDAC ....................................................................................................................................... 5

2.6.1 ODBC ................................................................................................................................ 5

2.6.2 OLE DB ............................................................................................................................. 5

2.6.3 ADO (ActiveX Data Objects) ............................................................................................ 6

3 Relational Databases ...................................................................................................................... 7

3.1 Tables....................................................................................................................................... 7

3.2 Unique Keys and Primary Key .................................................................................................. 7

3.3 Foreign Key .............................................................................................................................. 9

3.4 Views ....................................................................................................................................... 9

3.5 Functions ............................................................................................................................... 10

3.6 Stored procedures ................................................................................................................. 10

iv Table of Contents

Tutorial: Database Communication in LabVIEW

3.7 Triggers .................................................................................................................................. 11

4 Structured Query Language (SQL) ................................................................................................ 12

4.1 Queries .................................................................................................................................. 12

4.2 Data manipulation ................................................................................................................. 13

4.3 Data definition ....................................................................................................................... 14

4.4 Data types .............................................................................................................................. 14

4.4.1 Character strings............................................................................................................ 14

4.4.2 Bit strings .......................................................................................................................

...

Descargar como (para miembros actualizados)  txt (72.6 Kb)  
Leer 37 páginas más »
Disponible sólo en Clubensayos.com