Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

NI-DAQmx: Generate Single Point Analog Output In VB 6

0 ratings | 0.00 out of 5
Print

Overview

This example shows how to do single point analog output in VB 6 using the NI-DAQmx driver.

Downloads

Filename: ao_single_point.zip
Requirements: View

 Visual Basic 6.0 Example program:
    AO_Single_Point.frm

 Example Category:
    AO

 Description:
    This example demonstrates how to output a single point
    value to a single channel using NI-DAQmx.

 Instructions for Running:
    1. Select the Physical Channel to correspond to where your
       signal is output on the DAQ device.
    2. Enter the Minimum and Maximum Voltage Ranges.
    3. Move the voltage slider to set the AO voltage.
    4. Every movement of the slider outputs a new voltage value.

 Steps:
    1. Create a task.
    2. Create an Analog Output Voltage channel.
    3. Write the single point to the output channel.
    4. Call the StopButton module to stop and clear the task.
    5. Display an error if any.

 I/O Connections Overview:
    Make sure your signal output terminal matches the Physical
    Channel I/O Control. For more information on the input and output terminals
    for your device, open the NI-DAQmx Help, and refer to the NI-DAQmx Device
    Terminals and Device Considerations books in the table of contents.

Requirements


Filename: ao_single_point.zip

Software Requirements


Application Software: Measurement Studio Visual Basic Support 6.0
Language(s): Visual Basic
Additional Software: Visual Studio 6.0

Hardware Requirements


Hardware Group: CompactDAQ, Multifunction DAQ (MIO)
Hardware Model: PCI-6010, PCI-6013, PCI-6014, PCI-6023E, PCI-6024E, PCI-6025E, PCI-6031E, PCI-6032E, PCI-6033E, PCI-6034E, PCI-6035E, PCI-6036E, PCI-6040E (PCI-MIO-16E-4), PCI-6040E (PCI-MIO-16E-4), PCI-6040E (PCI-MIO-16E-4), PCI-6040E (PCI-MIO-16E-4), PCI-6040E (PCI-MIO-16E-4), PCI-6040E (PCI-MIO-16E-4), PCI-6040E (PCI-MIO-16E-4), PCI-6040E (PCI-MIO-16E-4), PCI-6040E (PCI-MIO-16E-4), PCI-6052E, PCI-6053E, PCI-6071E, PCI-6110, PCI-6111, PCI-6115, PCI-6120, PCI-6122, PCI-6123, PCI-6132, PCI-6133, PCI-6143, PCI-6153, PCI-6154, PCI-6201, PCI-6220, PCI-6221, PCI-6221 (37-Pin), PCI-6221 (37-Pin), PCI-6221 (37-Pin), PCI-6221 (37-Pin), PCI-6221 (37-Pin), PCI-6221 (37-Pin), PCI-6221 (37-Pin), PCI-6221 (37-Pin), PCI-6221 (37-Pin), PCI-6222, PCI-6224, PCI-6225, PCI-6229, PCI-6230, PCI-6232, PCI-6233, PCI-6236, PCI-6238, PCI-6239, PCI-6250, PCI-6251, PCI-6254, PCI-6255, PCI-6259, PCI-6280, PCI-6281, PCI-6284, PCI-6289
Driver: NI-DAQmx 8.0

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).