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

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 13, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Digital Output in NI-DAQmx using Visual Basic 6.0

4 ratings | 3.50 out of 5
Print

Downloads

Filename: daqmxdigwrite.zip
Requirements: View

This particular example creates a DAQmx task, configures the task for digital output, writes single values to multiple digital lines on the board using the DAQmxWriteDigitalLines function, then disposes of the DAQmx task.

This example shows how the NI-DAQmx driver can be used in Visual Basic 6.0 using function calls. It also illustrates how to check for NI-DAQmx error conditions and display the error message appropriate for the error code.

DISCLAIMER: National Instruments does not support NI-DAQmx application development in Visual Basic 6.0, this code is provided only as an example that it CAN be done. If you need to expand beyond this example, look at the NI-DAQmx C Reference Help and the NI-DAQmx C header files to do this yourself.

Requirements


Filename: daqmxdigwrite.zip

Software Requirements


Language(s): Visual Basic
Additional Software: Visual Basic 6.0

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO), Digital I/O (DIO)
Hardware Model: PXI-6513, PXI-6514, PXI-6515, PXI-6521, PXI-6522, PXI-6523, PXI-6525, PXI-6526, PXI-6527, PXI-6528, PXI-6533, PXI-6534, PXI-6541, PXI-6542, PXI-6551, PXI-6552, PXI-6561, PXI-6562, PXI-6810, PXI-6830, PXI-7030/6533, PXI-7040/6533, DAQCard-6023E, DAQCard-6024E, DAQCard-6034E, DAQCard-6035E, PCI-6527, PCI-6528, PCI-6533, PCI-6534, PCI-6541, PCI-6542, PCI-6551, PXI-6511, PXI-6512, PCI-6552, PCI-6561, PCI-6562, PCI-6810, PCI-7030/6533, PCI-7040/6533, PCI-DIO-24, PCI-DIO-96, PXI-6011E, PXI-6023E, PXI-6024E, PXI-6025E, PXI-6030E, PXI-6031E, PXI-6032E, PXI-6033E, PXI-6035E, PXI-6040E, PXI-6052E, PXI-6053E, PXI-6070E, PXI-6071E, PXI-6503, PXI-6504, PXI-6505, PXI-6507, PXI-6508, PXI-6509, DAQCard-6036E, DAQCard-6062E, DAQPad-6020E for USB w/BNC Term, DAQPad-6020E for USB w/Mass Term, DAQPad-6024E for USB w/BNC Term, DAQPad-6024E for USB w/Mass Term, DAQPad-6025E for USB w/BNC Term, DAQPad-6025E for USB w/Mass Term, DAQPad-6036E for USB w/BNC Term, DAQPad-6036E for USB w/Mass Term, DAQPad-6052E for Ethernet w/BNC Term, DAQPad-6052E for Ethernet w/Mass Term, DAQPad-6052E for IEEE 1394 w/BNC Term, DAQPad-6052E for IEEE 1394 w/Mass Term, DAQPad-6052E for USB w/BNC Term, DAQPad-6052E for USB w/Mass Term, DAQPad-6070E for IEEE 1394 w/BNC Term, DAQPad-6070E for IEEE 1394 w/Mass Term, 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-6052E, PCI-6053E, PCI-6071E, PCI-6503, PCI-6504, PCI-6505, PCI-6509, PCI-6510, PCI-6511, PCI-6512, PCI-6513, PCI-6514, PCI-6515, PCI-6516, PCI-6517, PCI-6518, PCI-6519, PCI-6522, PCI-6525, PCI-6526
Driver: NI-DAQmx 7.3

 
4 ratings | 3.50 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/).