NI USB-TC01 Thermocouple Measurement Device
|
|
- Nelson Lester
- 6 years ago
- Views:
Transcription
1 Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics NI USB-TC01 Thermocouple Measurement Device HANS- PETTER HALVORSEN, Faculty of Technology, Postboks 203, Kjølnes ring 56, N-3901 Porsgrunn, Norway. Tel: Fax:
2 Table of Contents Table of Contents... ii Preface Introduction System Description Documentation Configuration Testing the NI USB- TC01 in MAX Using TC01 in LabVIEW NI- DAQmx DAQ Assistant Using TC01 in Visual Studio and C# DAQmx C# Example Using TC01 with Measurement Studio DAQmx Driver Measurement Studio Create a NI Windows Application Create a NI DAQ Windows Application ii
3 Preface You will find this document and lots of other information in the following web site: In order to use the NI TC- 01 Thermocouple device you need to install the DAQmx driver. You can use the TC- 01 device with LabVIEW or with Visual Studio. We can also use the device with Measurement Studio, which is an add- on to Visual Studio. Så the different alternatives are as follows: A - Using LabVIEW: 1. LabVIEW + DAQmx driver (Chapter 4) B - Using Visual Studio/C#: 2. Visual Studio + DAQmx driver (Chapter 5) 3. Visual Studio + DAQmx driver + Measurement Studio (Chapter 6) In this document we go through all these alternatives. 1
4 1 Introduction Below (Figure 1) we see the NI USB- TC01 Thermocouple Measurement device. Figure 1: NI USB- TC01 Thermocouple Measurement Device The NI USB- TC01 provides connections for one thermocouple. Thermocouple types J, K, R, S, T, N, E, and B are supported. At TUC we will use the J type. The NI USB- TC01 software support for Windows 7/Vista/XP is provided by the device. No separate driver installation is required for operation. Below (Figure 2) we see the different components that NI USB- TC01 Thermocouple is part of: Figure 2: NI USB- TC01 Thermocouple Components 1
5 Introduction The following window (Figure 3) should pop up automatically when you plug in your NI USB- TC01 device in your USB port: Figure 3: NI USB- TC01 Launch Screen If not this window pops up automatically, we need to start it manually, see Figure 4below: Figure 4: NI USB- TC01 appears as a separate drive in your Windows Explorer
6 Introduction Select TC01Launcher.exe and the Launch Screen in Figure 3 will appear. From the Launch Screen the following are available (Figure 5): LabVIEW Example (Figure 6 and Figure 7): Figure 5: Temperature Logger
7 Introduction Figure 6: LabVIEW Example Front Panel Figure 7: LabVIEW Example Block Diagram
8 2 System Description Below (Figure 8) we see the NI USB- TC01 Thermocouple Measurement device. Figure 8: NI USB- TC01 Thermocouple Measurement Device 2.1 Documentation The documentation for the NI USB- TC01 device is as follows: NI USB- TC01 User Guide and Specifications NI USB- TC01 Data Sheet NI USB- TC01 Calibration Procedure These documents are available from (or just Google them) 5
9 3 Configuration Configuring and testing: NI USB- TC01 can be configured and tested using MAX (Measurement and Automation Explorer), which is installed with the NI- DAQmx Driver Software Testing the NI USB-TC01 in MAX Before you start to use the NI USB- TC01 in an application, you should test the device in the Measurement and Automation Explorer (MAX), see Figure 9. Figure 9: MAX In the MAX window, expand the Devices and Interfaces node. Right- click on the NI USB- TC01 device and select Self- Test (Figure 10). 6
10 7 Configuration Figure 10: Self Test Hopefully the self- test passes without errors. Then, you should test the device using the Test Panels (Figure 11). Figure 11: Test Panels
11 4 Using TC01 in LabVIEW Software requirements: LabVIEW + DAQmx driver 4.1 NI-DAQmx In order to use the NI USB- TC01 in LabVIEW you need to use the DAQmx functions, see Figure 12 below. Figure 12: NI- DAQmx 8
12 9 Using TC01 in LabVIEW DAQmx Data Acquisition palette (Figure 13): Figure 13: DAQmx Palette in LabVIEW DAQ Assistant The easiest ways is to use the DAQ Assistant. When you drag the DAQ Assistant icon on your Block Diagram, the following window appears (Figure 14): Figure 14: DAQ Assistant Wizard Select Signal Type
13 10 Using TC01 in LabVIEW In this window you need to select Acquire Signals and Thermocouple. In the next window (Figure 15) you select the channels, and in this case there is only one channel available (AI0). Figure 15: DAQ Assistant Wizard Select Channel When clicking Finish, the following window appears (Figure 16):
14 11 Using TC01 in LabVIEW Figure 16: DAQ Assistant - Properties In the Timing Settings, select 1 Sample (On Demand). You are now finished with the configuration. Click OK in the DAQ Assistant window The DAQ Assistant icon appears on the Block Diagram: Example: Wire the data output to a numeric indicator like this (and hit the Run button):
15 12 Using TC01 in LabVIEW Then numeric indicator will show, e.g., the following value: If you want a continuous acquisition, put a While loop around the DAQ Assistant like this: However you should not use the DAQ Assistant inside a loop because of the lack of performance. The following is therefore better: In this example we have put the DAQ Assistant outside the While loop. Inside the loop we have used the DAQmx Read.vi in order to read the value from the ai0 channel.
16 13 Using TC01 in LabVIEW You should also use the DAQmx Start Task.vi and the DAQmx Clear Task.vi. [End of Example]
17 5 Using TC01 in Visual Studio and C# Software requirements: Visual Studio + DAQmx driver 5.1 DAQmx In order to use the NI USB- TC01 Thermocouple Measurement device with C# we need to have the DAQmx driver and the DAQmx API for C# installed. Note! In order to install the DAQmx API for C#, make sure to select.net Support when installing the DAQmx driver. This application uses the C# API included in the NI DAQmx driver, so make sure that you have installed the NI DAQmx driver in advance. During the installation makesure to select Custom : 14
18 15 Using TC01 in Visual Studio and C# Next, make sure that you select.net Framework X.x Support for the version of.net that yourversion of Visual Studio id using: 5.2 C# Example We vill create the following simple application: Add Reference: We need to add the following Assembly references: NationalInstruments.Common
19 16 Using TC01 in Visual Studio and C# NationalInstruments.DAQmx We add References by right- clicking the References node in the Solution Explorer: When we have added the necessary References, the Solution Explorer will look like this: The dlls are normally to find here:
20 17 Using TC01 in Visual Studio and C# Initialization: We need to add the following Namespaces: using NationalInstruments; using NationalInstruments.DAQmx; Add Code: Enter the following code lines: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using NationalInstruments; using NationalInstruments.DAQmx; namespace TC01_DAQ_Example { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btngetdata_click(object sender, EventArgs e) { Task temperaturetask = new Task(); AIChannel myaichannel; myaichannel = temperaturetask.aichannels.createthermocouplechannel( "Dev1/ai0", "Temperature", 0, 100, AIThermocoupleType.J, AITemperatureUnits.DegreesC, 25 ); AnalogSingleChannelReader reader = new AnalogSingleChannelReader(temperatureTask.Stream); double analogdatain = reader.readsinglesample(); txttempdata.text = analogdatain.tostring(); } } } Test your application: Run your application. When clicking the button, you should now retrieve data from the temoerature device. Error?
21 18 Using TC01 in Visual Studio and C# If your application runs without error that s fine, but perhaps you get the following error: In order to fix the problem, open the Properties for your project: Make sure to select.net Framework X in the Target framework drop- down menu.
22 6 Using TC01 with Measurement Studio Software requirements: Visual Studio + DAQmx driver + Measurement Studio 6.1 DAQmx Driver In order to use the NI USB- TC01 Thermocouple Measurement device with C# we need to have the DAQmx driver and the DAQmx API for C# installed. Note! In order to install the DAQmx API for C#, make sure to select.net Support when installing the DAQmx driver. 6.2 Measurement Studio C# is a powerful programming language, but has few built- in features for measurement and control applications. Measurement Studio is an add- on to Visual Studio which makes it easier to create such applications. With Measurement Studio we can implement Data Acquisition and a graphical HMI. You don t need to use the Measurement Studio to create an application where you use the NI USB- TC01 Thermocouple Measurement device (as shown in previous chapter), but it is easier. Here we will use Visual Studio and the Measurement Studio Add- in to create some DAQ examples where we get temperature data from the NI USB- TC01 Thermocouple Measurement device. 6.3 Create a NI Windows Application In this example, we will select the NI windows Application Template in the New Project window (Error! Reference source not found.). 19
23 20 Using TC01 with Measurement Studio Figure 17: NI Windows Application Note! The New Project window may look different on your computer, it depends on what features you have installed and which version or edition of Measurement Studio you are using. Next we select the Class Libraries we want to include. In our case we need at least to select the DAQmx Library (Error! Reference source not found.). Figure 18: Measurement Studio Class Libraries
24 21 Using TC01 with Measurement Studio When we click Finish an empty project will be created for us. We are now ready to create our own application. We start by creating a simple User Interface (Error! Reference source not found.): Figure 19: Simple User Interface for reading Temperature Data When we click the Read Temp button, the Temperature data shall be shown in the Temp Data TextBox. In the event Handler for the Read Temp button, we create the following code: private void btnreadtempdata_click(object sender, EventArgs e) { Task analogintask = new Task(); AIChannel myaichannel; myaichannel = analogintask.aichannels.createthermocouplechannel( "Dev1/ai0", "Temperature", 0, 100, AIThermocoupleType.J, AITemperatureUnits.DegreesC, 25 ); } AnalogSingleChannelReader reader = new AnalogSingleChannelReader(analogInTask.Stream); double analogdatain = reader.readsinglesample(); txttempdata.text = analogdatain.tostring(); Then we can test our application:
25 22 Using TC01 with Measurement Studio Improvements: We should use a Timer in order to read Temperature data at specific intervals instead of pushing a button each time we need data. We drag in a Timer component from the Toolbox. First, we need to start the Timer: public Form1() { InitializeComponent(); } timer1.start(); Next, we need to specify the interval. We can do that in the Properties window: In the Timer Event we write the code for reading the Temperature: private void timer1_tick(object sender, EventArgs e) { Task analogintask = new Task(); AIChannel myaichannel; myaichannel = analogintask.aichannels.createthermocouplechannel( "Dev1/ai0", "Temperature", 0,
26 23 Using TC01 with Measurement Studio 100, AIThermocoupleType.J, AITemperatureUnits.DegreesC, 25 ); AnalogSingleChannelReader reader = new AnalogSingleChannelReader(analogInTask.Stream); double analogdatain = reader.readsinglesample(); } txttempdata.text = analogdatain.tostring("0.0"); Finally, we test the application: Congratulations, you have created your first DAQ application using Measurement Studio. 6.4 Create a NI DAQ Windows Application Note! This option is only availible if you to have either the Professional or Enterprise version of the Measurement Studio software. We start by creating a New Project from Visual Studio. In the New Project window (Figure 20) we select Visual C#» Measurement Studio, and then select the NI DAQ Windows Application Template that is part of the Measurement Studio.
27 24 Using TC01 with Measurement Studio Figure 20: New Project Window in Visual Studio Note! The New Project window may look different on your computer, it depends on what features you have installed and which version or edition of Measurement Studio you are using. Next, we need to go through different steps in a wizard. In the first step we select Create a new project task (Figure 21): Figure 21: Add DAQ Component In the next step we select the measurement type (Figure 22), and since the NI USB- TC01 Thermocouple Measurement device is for reading Temperature values, we need to select Acquire Signals.
28 25 Using TC01 with Measurement Studio Figure 22: Select Measurement Type In the Acquire Signals node we first select Temperature and then select Thermocouple. Figure 23: Thermocouple Next we need to select the physical channel(s), Figure 24. Since the NI USB- TC01 Thermocouple Measurement device has only one channel available, we need to select ai0 (Analog In, Channel 0).
29 26 Using TC01 with Measurement Studio Figure 24: Select Physical Channels Next we can set different Properties (Figure 25), such as Input Range, Acquisition Mode, Thermocouple Type, etc.
30 27 Using TC01 with Measurement Studio Figure 25: Properties Finally we see a Preview of the User Interface before it is automatically generated by the Measurement Studio (Figure 26):
31 28 Using TC01 with Measurement Studio Figure 26: Preview of User Interface When we click Finish, the Solution, the Project and User Interface will be automatically created (Figure 27). Finally we can test the Application (Figure 28): Figure 27: Visual Studio Generated Solution
32 29 Using TC01 with Measurement Studio Figure 28: Test of Application With this approach we get a flying start and we can change the code as we please. The drawback with this approach is that the code that is automatically generated is a little bit messy. So actually, this is not a method I will recommend to use.
33 Telemark University College Faculty of Technology Kjølnes Ring 56 N Porsgrunn, Norway Hans- Petter Halvorsen, M.Sc. Telemark University College Faculty of Technology Department of Electrical Engineering, Information Technology and Cybernetics E- mail: Blog:
NI mydaq HANS-PETTER HALVORSEN, Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics NI mydaq HANS-PETTER HALVORSEN, 2012.01.20 Faculty of Technology, Postboks 203, Kjølnes ring 56,
More informationNI Vision System HANS- PETTER HALVORSEN,
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics NI Vision System HANS- PETTER HALVORSEN, 2013.02.19 Faculty of Technology, Postboks 203, Kjølnes
More informationData Acquisition HANS-PETTER HALVORSEN,
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Data Acquisition HANS-PETTER HALVORSEN, 2011.10.14 Faculty of Technology, Postboks 203, Kjølnes
More informationDatalogging in LabVIEW
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Datalogging in LabVIEW HANS-PETTER HALVORSEN, 2011.01.04 Faculty of Technology, Postboks 203, Kjølnes
More informationVirtual Instruments with LabVIEW
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Virtual Instruments with LabVIEW HANS-PETTER HALVORSEN, 2011.01.04 Faculty of Technology, Postboks
More informationWireless DAQ using ZigBee
Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Wireless DAQ using ZigBee Cuong Nguyen, Hans- Petter Halvorsen 2013.10.29 Hardware
More informationHøgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics.
Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Wi- Fi DAQ Hardware Setup Cuong Nguyen, Hans- Petter Halvorsen, 2013.08.07
More informationDatalogging and Monitoring
Datalogging and Monitoring with Step by Step Examples Hans-Petter Halvorsen http://www.halvorsen.blog Content Different Apps for Data Logging and Data Monitoring will be presented Here you find lots of
More informationDAQ in MATLAB HANS-PETTER HALVORSEN,
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics DAQ in MATLAB HANS-PETTER HALVORSEN, 2011.06.07 Faculty of Technology, Postboks 203, Kjølnes ring
More informationSolutions. Discretization HANS-PETTER HALVORSEN,
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Solutions HANS-PETTER HALVORSEN, 2011.08.12 Discretization Faculty of Technology, Postboks 203,
More informationControl and Simulation in. LabVIEW
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Solutions Control and Simulation in HANS-PETTER HALVORSEN, 2011.08.11 LabVIEW Faculty of Technology,
More informationState Estimation with Observers
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics State Estimation with Observers HANS-PETTER HALVORSEN, 2012.08.20 Faculty of Technology, Postboks
More informationFaculty of Technology, Department of Electrical Engineering, Information Technology and Cybernetics. SCADA System
Høgskolen i Telemark Telemark University College Faculty of Technology, Department of Electrical Engineering, Information Technology and Cybernetics SCADA System Keywords: Data Communication, protocols,
More informationYou can call the project anything you like I will be calling this one project slide show.
C# Tutorial Load all images from a folder Slide Show In this tutorial we will see how to create a C# slide show where you load everything from a single folder and view them through a timer. This exercise
More informationLaboratory System. 1 Introduction
Høgskolen i Telemark Telemark University College Faculty of Technology, Department of Electrical Engineering, Information Technology and Cybernetics Laboratory System Keywords: Data Communication, Protocols,
More informationData Acquisition in LabVIEW
University College of Southeast Norway Data Acquisition in LabVIEW Hans-Petter Halvorsen, 2016.10.28 http://home.hit.no/~hansha Preface This tutorial explains the basic concepts of a Data Acquisition in
More informationWireless DAQ System. In this project you are going to create a Wireless DAQ System, see Figure 1-1. Figure 1-1: Wireless DAQ system
Høgskolen i Telemark Telemark University College Faculty of Technology, Department of Electrical Engineering, Information Technology and Cybernetics Wireless DAQ System Keywords: Data Communication, Protocols,
More informationWeather System. In this project you are going to create a Weather System, see Figure 1-1. Figure 1-1: Weather system
Høgskolen i Telemark Telemark University College Faculty of Technology, Department of Electrical Engineering, Information Technology and Cybernetics Weather System Keywords: Data Communication, Protocols,
More informationUniversity College of Southeast Norway. Web Services. with Examples. Hans-Petter Halvorsen,
University College of Southeast Norway Web Services Hans-Petter Halvorsen, 2016.11.01 with Examples http://home.hit.no/~hansha Table of Contents 1. Introduction... 4 1.1. The Problem... 4 1.2. The Solution...
More informationNow find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox]
C# Tutorial - Create a Tic Tac Toe game with Working AI This project will be created in Visual Studio 2010 however you can use any version of Visual Studio to follow along this tutorial. To start open
More informationSimulation in LabVIEW. Hans-Petter Halvorsen, M.Sc.
Simulation in LabVIEW Hans-Petter Halvorsen, M.Sc. Software LabVIEW LabVIEW Control Design and Simulation Module This module is used for creating Control and Simulation applications with LabVIEW. Here
More informationCALCULATOR APPLICATION
CALCULATOR APPLICATION Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
More informationDatabase Lab. Hans-Petter Halvorsen
2017.03.24 Database Lab http://home.hit.no/~hansha/?lab=database Hans-Petter Halvorsen Lab Overview Database Design & Modelling SQL Server Management Studio Create Tables Database Management Microsoft
More informationExercise 5: Basic LabVIEW Programming
Exercise 5: Basic LabVIEW Programming In this exercise we will learn the basic principles in LabVIEW. LabVIEW will be used in later exercises and in the project part, as well in other courses later, so
More informationFirst start a new Windows Form Application from C# and name it Interest Calculator. We need 3 text boxes. 4 labels. 1 button
Create an Interest Calculator with C# In This tutorial we will create an interest calculator in Visual Studio using C# programming Language. Programming is all about maths now we don t need to know every
More informationLabVIEW Tutorials. T.1 Temperature Measurement and Cold Junction Compensation (CJC) LUMS School of Science and Engineering
LabVIEW Tutorials T.1 Temperature Measurement and Cold Junction Compensation (CJC) LUMS School of Science and Engineering Umer Hassan & Muhammad Sabieh Anwar Introduction: In this tutorial we shall learn
More informationIBSDK Quick Start Tutorial for C# 2010
IB-SDK-00003 Ver. 3.0.0 2012-04-04 IBSDK Quick Start Tutorial for C# 2010 Copyright @2012, lntegrated Biometrics LLC. All Rights Reserved 1 QuickStart Project C# 2010 Example Follow these steps to setup
More informationExperiment 5 : Creating a Windows application to interface with 7-Segment LED display
Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Objectives : 1) To understand the how Windows Forms in the Windows-based applications. 2) To create a Window Application
More informationSCADA Lab. Supervisory Control and Data Acquisition. Hans-Petter Halvorsen
2017.04.18 SCADA Lab Supervisory Control and Data Acquisition http://home.hit.no/~hansha/?lab=scada Hans-Petter Halvorsen Lab Overview In this Lab we will create a SCADA System from scratch Air Heater
More informationWe are going to use some graphics and found a nice little batman running GIF, off course you can use any image you want for the project.
C# Tutorial - Create a Batman Gravity Run Game Start a new project in visual studio and call it gravityrun It should be a windows form application with C# Click OK Change the size of the to 800,300 and
More informationUniversity College of Southeast Norway. LM-900 Level Tank. Hans-Petter Halvorsen,
University College of Southeast Norway LM-900 Level Tank Hans-Petter Halvorsen, 2016.10.26 http://home.hit.no/~hansha Table of Contents Table of Contents... ii 1 Introduction... 1 2 System Description...
More informationStart Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK.
Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK. Before you start - download the game assets from above or on MOOICT.COM to
More informationTo start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer
C# Tutorial Create a Motivational Quotes Viewer Application in Visual Studio In this tutorial we will create a fun little application for Microsoft Windows using Visual Studio. You can use any version
More informationNI-DAQmx Basic Course NITS John Shannon
NI-DAQmx Basic Course NITS 2005 John Shannon Agenda Intro to DAQMX Difference between traditional / DaqMX MAX and DAQ Assistance Analog Input / Output Property Nodes Buffered / Continuous Acquisition Analog
More informationThe Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at:
This document describes how to create a simple Windows Forms Application using some Open Core Interface functions in C# with Microsoft Visual Studio Express 2013. 1 Preconditions The Open Core Interface
More informationClick on the empty form and apply the following options to the properties Windows.
Start New Project In Visual Studio Choose C# Windows Form Application Name it SpaceInvaders and Click OK. Click on the empty form and apply the following options to the properties Windows. This is the
More informationStart Visual Studio and create a new windows form application under C# programming language. Call this project YouTube Alarm Clock.
C# Tutorial - Create a YouTube Alarm Clock in Visual Studio In this tutorial we will create a simple yet elegant YouTube alarm clock in Visual Studio using C# programming language. The main idea for this
More informationDatabase Communication in Visual Studio/C# using Web Services
https://www.halvorsen.blog Database Communication in Visual Studio/C# using Web Services Hans-Petter Halvorsen Background With Web Services you can easily get your data through Internet We will use Web
More informationUsing SQL Server in C#
University College of Southeast Norway Using SQL Server in C# Hans-Petter Halvorsen, 2016.11.01 with Examples http://home.hit.no/~hansha Table of Contents 1. Introduction...
More informationForm Properties Window
C# Tutorial Create a Save The Eggs Item Drop Game in Visual Studio Start Visual Studio, Start a new project. Under the C# language, choose Windows Form Application. Name the project savetheeggs and click
More informationIntroduction to LabVIEW
University College of Southeast Norway Introduction to LabVIEW Hans-Petter Halvorsen, 2016-09-07 http://home.hit.no/~hansha Preface This document explains the basic concepts of LabVIEW. You find additional
More informationHardware: Acquiring Data and Communicating with Instruments
Hardware: Acquiring Data and Communicating with Instruments 4 Acquiring a Signal This chapter introduces you to the Express VIs you use to acquire data and communicate with instruments on Windows. These
More informationLabVIEW MathScript Quick Reference
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics LabVIEW MathScript Quick Reference Hans-Petter Halvorsen, 2012.06.14 Faculty of Technology, Postboks
More informationCSIS 1624 CLASS TEST 6
CSIS 1624 CLASS TEST 6 Instructions: Use visual studio 2012/2013 Make sure your work is saved correctly Submit your work as instructed by the demmies. This is an open-book test. You may consult the printed
More information1. Learn about LabView software and its different components
SfwrEng 4aa3/4ga3 Lab 1 Lab Sessions: Week starting Sept. 21, 2009. Pre-lab reports Due: Week Starting Sept. 21, 2009 at the start of lab sessions. Lab-Reports Due: Week Starting Oct. 5, 2009 at the start
More informationStart Visual Studio, create a new project called Helicopter Game and press OK
C# Tutorial Create a helicopter flying and shooting game in visual studio In this tutorial we will create a fun little helicopter game in visual studio. You will be flying the helicopter which can shoot
More informationConventions in this tutorial
This document provides an exercise using Digi JumpStart for Windows Embedded CE 6.0. This document shows how to develop, run, and debug a simple application on your target hardware platform. This tutorial
More informationWireless Data Acquisition in. LabVIEW
University College of Southeast Norway Wireless Data Acquisition in Hans-Petter Halvorsen, 2016.10.31 LabVIEW http://home.hit.no/~hansha Preface It's not just phones and computers that can communicate
More informationSensors and Actuators with Arduino. Hans-Petter Halvorsen, M.Sc.
Sensors and Actuators with Arduino Hans-Petter Halvorsen, M.Sc. System Overview NTC Thermistor Arduino Download Code Computer TMP36 Pt-100 Sensors (Input) Actuators (Output) Examples: Data Logging Programming
More informationhttps://www.halvorsen.blog Industrial IT Laboratory Work https://www.halvorsen.blog/documents/teaching/courses/industrialit Hans-Petter Halvorsen
https://www.halvorsen.blog Industrial IT Laboratory Work https://www.halvorsen.blog/documents/teaching/courses/industrialit Hans-Petter Halvorsen OPC Laboratory Work The Industrial IT course contains different
More informationif (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient;
More informationHands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011
Hands-On Lab Lab: Client Object Model Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: RETRIEVING LISTS... 4 EXERCISE 2: PRINTING A LIST... 8 EXERCISE 3: USING ADO.NET DATA
More informationAdditional products and features
SECTION 7.3: adding national instruments hardware Step: 1 In order to record data from a National Instruments device, you must fi rst install NI-DAQmx software from the National Instruments website. http://ftp.ni.com/support/softlib/multifunc-
More informationCreate your own Meme Maker in C#
Create your own Meme Maker in C# This tutorial will show how to create a meme maker in visual studio 2010 using C#. Now we are using Visual Studio 2010 version you can use any and still get the same result.
More informationThe first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear.
4 Programming with C#.NET 1 Camera The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear. Begin by loading Microsoft Visual Studio
More informationInstall the Software and Hardware
WHERE TO START WITH YOUR NI 4350/4351 This document explains how to begin using your National Instruments 4350/4351 high-precision temperature and voltage meters. The NI 4350/4351 (NI 435x) products include
More informationChapter 12. Tool Strips, Status Strips, and Splitters
Chapter 12 Tool Strips, Status Strips, and Splitters Tool Strips Usually called tool bars. The new ToolStrip class replaces the older ToolBar class of.net 1.1. Create easily customized, commonly employed
More informationIntroduction to Visual Studio and C#
https://www.halvorsen.blog Introduction to Visual Studio and C# Hans-Petter Halvorsen Introduction to Visual Studio and C# Hans-Petter Halvorsen Copyright 2017 E-Mail: hans.p.halvorsen@usn.no Web: https://www.halvorsen.blog
More informationLab Exercise 2: Data Acquisition with NI LabVIEW
Objective When you have completed this exercise, you will be able: To use the DAQ Assistant to acquire analog data measurements with NI LabVIEW To use Write to Measurement express VI to log real time data
More informationSavoy ActiveX Control User Guide
Savoy ActiveX Control User Guide Jazz Soft, Inc. Revision History 1 Revision History Version Date Name Description 1.00 Jul, 31 st, 2009 Hikaru Okada Created as new document 1.00a Aug, 22 nd, 2009 Hikaru
More information3-tier Architecture Step by step Exercises Hans-Petter Halvorsen
https://www.halvorsen.blog 3-tier Architecture Step by step Exercises Hans-Petter Halvorsen Software Architecture 3-Tier: A way to structure your code into logical parts. Different devices or software
More informationVisual Studio Team Services
Visual Studio Team Services Getting Started Hans-Petter Halvorsen, M.Sc. Visual Studio Team Services Visual Studio Team Services is a platform taking care of all aspects of the process of developing software
More informationQuick Guide for the ServoWorks.NET API 2010/7/13
Quick Guide for the ServoWorks.NET API 2010/7/13 This document will guide you through creating a simple sample application that jogs axis 1 in a single direction using Soft Servo Systems ServoWorks.NET
More informationClass Test 4. Question 1. Use notepad to create a console application that displays a stick figure. See figure 1. Question 2
Class Test 4 Marks will be deducted for each of the following: -5 for each class/program that does not contain your name and student number at the top. -2 If program is named anything other than Question1,
More informationMain Game Code. //ok honestly im not sure, if i guess its a class ment for this page called methodtimer that //either uses the timer or set to timer..
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;
More informationUnit Testing. Quiz with Explainations. Hans-Petter Halvorsen, M.Sc.
Unit Testing Quiz with Explainations Hans-Petter Halvorsen, M.Sc. Questions 1. What is Unit Testing? 2. List some Unit Test Framework 3. Who is creating the Unit Tests? 4. What kind of Requirements does
More informationThis is the empty form we will be working with in this game. Look under the properties window and find the following and change them.
We are working on Visual Studio 2010 but this project can be remade in any other version of visual studio. Start a new project in Visual Studio, make this a C# Windows Form Application and name it zombieshooter.
More informationContents. Software CALIBRATION PROCEDURE NI TC-4353
CALIBRATION PROCEDURE NI TC-4353 This document contains the verification procedure for the National Instruments TC-4353. For more information about calibration solutions, visit ni.com/calibration. Contents
More informationStrain and Force Measurement
NORTHEASTERN UNIVERSITY DEPARTMENT OF MECHANICAL, INDUSTRIAL AND MANUFACTURING ENGINEERING MIMU 0-MEASUREMENT AND ANALYSIS Strain and Force Measurement OBJECTIVES The primary objective of this experiment
More informationIntroduction to ERwin
Introduction to ERwin Database Design & Modelling Hans-Petter Halvorsen, M.Sc. Software The following Editions can be downloaded for Free on Internet: CA ERwin Data Modeler Community Edition SQL Server
More informationStep 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content
Step 1: Start a GUI Project Start->New Project->Visual C# ->Windows Forms Application Name: Wack-A-Gopher Step 2: Add Content Download the Content folder (content.zip) from Canvas and unzip in a location
More informationDeveloping for Mobile Devices Lab (Part 1 of 2)
Developing for Mobile Devices Lab (Part 1 of 2) Overview Through these two lab sessions you will learn how to create mobile applications for Windows Mobile phones and PDAs. As developing for Windows Mobile
More informationDetermination of Drag Coefficient
DEPARTMENT OF MECHANICAL, INDUSTRIAL AND MANUFACTURING ENGINEERING MIMU 505 - MEASUREMENT AND ANALYSIS Determination of Drag Coefficient You will need to bring a zip disk or USB storage device to the lab
More informationObject oriented lab /second year / review/lecturer: yasmin maki
1) Examples of method (function): Note: the declaration of any method is : method name ( parameters list ).. Method body.. Access modifier : public,protected, private. Return
More informationNAME EET 2259 Lab 3 The Boolean Data Type
NAME EET 2259 Lab 3 The Boolean Data Type OBJECTIVES - Understand the differences between numeric data and Boolean data. -Write programs using LabVIEW s Boolean controls and indicators, Boolean constants,
More informationStep-by-Step Data Acquisition Part II Exercise 2: Generating an Analog Output Waveform
Step-by-Step Data Acquisition Part II Exercise 2: Generating an Analog Output Waveform In this exercise, you will use the DAQ Assistant to build a LabVIEW VI that generates and outputs an analog waveform.
More informationMeasurement & Automation Explorer (MAX) View and control your devices and software
1. Labview basics virtual instruments, data flow, palettes 2. Structures for, while, case,... editing techniques 3. Controls&Indicators arrays, clusters, charts, graphs 4. Additional lecture State machines,
More informationDeveloping for Mobile Devices Lab (Part 2 of 2)
Developing for Mobile Devices Lab (Part 2 of 2) Overview In the previous lab you learned how to create desktop and mobile applications using Visual Studio. Two important features that were not covered
More informationIntroduction to Labview and Temperature Measurement
Introduction to Labview and Temperature Measurement Objective This lab is intended to familiarize you with the LABVIEW software and the data acquisition board used in this class and with temperature measurements
More informationNotes on installing and using the OM-USB-5201 and OM-USB-5203 data logging devices
Notes on installing and using the OM-USB-5201 and OM-USB-5203 data logging devices Thank you for purchasing the OM-USB-5201 or OM-USB-5203 device from Omega Engineering! Please read this sheet to help
More informationCreate a worksheet that collects, displays and saves temperature data
DASYLab Techniques Create a worksheet that collects, displays and saves temperature data This document describes how to create a worksheet that acquires and processes temperature data using Measurement
More informationCreate a Virtual Test Environment
Create a Virtual Test Environment Step by Step Exercises Hans-Petter Halvorsen, M.Sc. Why Do We Need a Test Environment? Why cant we just use our own PC? Why Test Environment? It works on my PC says the
More informationVisual Basic/C# Programming (330)
Page 1 of 12 Visual Basic/C# Programming (330) REGIONAL 2017 Production Portion: Program 1: Calendar Analysis (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores
More informationContents. Software Requirements CALIBRATION PROCEDURE NI TB-4353
CALIBRATION PROCEDURE NI TB-4353 Français Deutsch ni.com/manuals This document contains information about verifying National Instruments PXIe-4353 modules using NI-DAQmx 9.3 and later. It also contains
More informationHomework Assignment 9 LabVIEW tutorial
Homework Assignment 9 LabVIEW tutorial Due date: Wednesday, December 8 (midnight) For this homework assignment, you will complete a tutorial on the LabVIEW data acquistion software. This can be done on
More informationUniversity College of Southeast Norway ASP.NET. Web Programming. Hans-Petter Halvorsen,
University College of Southeast Norway Hans-Petter Halvorsen, 2016.11.01 ASP.NET Web Programming http://home.hit.no/~hansha Table of Contents 1 Introduction... 4 1.1 Visual Studio... 4 1.2 C#... 5 1.3.NET
More informationTemperature control with DeltaV using MPC
Faculty of Technology Temperature control with DeltaV using MPC Fakultet for teknologiske fag Adresse: Kjølnes ring 56, 3918 Porsgrunn, telefon 35 02 62 00, www.hit.no Bachelorutdanning - Masterutdanning
More informationDAC-4U SERIES DIGITAL TO ANALOG CONVERTER TECHNICAL REFERENCE
TABLE OF CONTENTS DAC-4U SERIES DIGITAL TO ANALOG CONVERTER TECHNICAL REFERENCE Specifications... page 1 Connection Diagram and Warranty... page 2 Technical Support... page 2 Terminal Block Connections...
More informationDAC-8U SERIES DIGITAL TO ANALOG CONVERTER TECHNICAL REFERENCE
TABLE OF CONTENTS DAC-8U SERIES DIGITAL TO ANALOG CONVERTER TECHNICAL REFERENCE Specifications... page 1 Connection Diagram and Warranty... page 2 Technical Support... page 2 Terminal Block Connections...
More informationLabVIEW Basics I: Introduction Course
www.ni.com/training LabVIEW Basics I Page 1 of 4 LabVIEW Basics I: Introduction Course Overview The LabVIEW Basics I course prepares you to develop test and measurement, data acquisition, instrument control,
More informationEL-USB-RT API Guide V1.0
EL-USB-RT API Guide V1.0 Contents 1 Introduction 2 C++ Sample Dialog Application 3 C++ Sample Observer Pattern Application 4 C# Sample Application 4.1 Capturing USB Device Connect \ Disconnect Events 5
More information// Specify SEF file to load. edischema oschema = oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDIx64;
More informationTeam Foundation Server Visual Studio Team Services. Hans-Petter Halvorsen, M.Sc.
Team Foundation Server Visual Studio Team Services Hans-Petter Halvorsen, M.Sc. Team Foundation Server (TFS) is an Application Lifecycle Management (ALM) system The Software Development Lifecycle (SDLC)
More informationHands-On Lab (MBL04) Lab Manual Incorporating COM Objects into Your.NET Compact Framework 2.0 Application
Hands-On Lab (MBL04) Lab Manual Incorporating COM Objects into Your.NET Compact Framework 2.0 Application Please do not remove this manual from the lab Information in this document is subject to change
More informationWriting Your First Autodesk Revit Model Review Plug-In
Writing Your First Autodesk Revit Model Review Plug-In R. Robert Bell Sparling CP5880 The Revit Model Review plug-in is a great tool for checking a Revit model for matching the standards your company has
More informationRepresenting Recursive Relationships Using REP++ TreeView
Representing Recursive Relationships Using REP++ TreeView Author(s): R&D Department Publication date: May 4, 2006 Revision date: May 2010 2010 Consyst SQL Inc. All rights reserved. Representing Recursive
More informationBE/EE189 Design and Construction of Biodevices Lecture 5. BE/EE189 Design and Construction of Biodevices - Caltech
BE/EE189 Design and Construction of Biodevices Lecture 5 LabVIEW Programming Data acquisition DAQ system Signals and signal conditioning Nyquist frequency NI ELVIS II NI-DAQmx and DAQ assistant LabVIEW
More informationLab Exercise 4: Analog & Digital I/O Signals
Objective To interface with analog & digital inputs & outputs. When you have completed this exercise, you will be able to: Configure and read analog input data Configure and write analog output data Configure
More informationYour First Windows Form
Your First Windows Form From now on, we re going to be creating Windows Forms Applications, rather than Console Applications. Windows Forms Applications make use of something called a Form. The Form is
More informationActivating AspxCodeGen 4.0
Activating AspxCodeGen 4.0 The first time you open AspxCodeGen 4 Professional Plus edition you will be presented with an activation form as shown in Figure 1. You will not be shown the activation form
More information