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

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

NI-DAQmx: Continuous Analog Acquisition with NI-DAQmx Events in Visual Basic 6.0

2 ratings | 3.00 out of 5
Print

Downloads

Filename: 200036.zip
Requirements: View

This example program demonstrates how to use the NI-DAQmx Every N Sample event in Visual Basic 6 to perform continuous analog acquisition.

The method used is based on the ANSI C shipping example "\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Events\Every N Samples"

Requirements


Filename: 200036.zip

Software Requirements


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

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO)
Hardware Model: PCI-6010, 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-6110, PCI-6111, PCI-6115, PCI-6120, PCI-6122, PCI-6123, PCI-6132, PCI-6133, PCI-6143, PCI-6153, PCI-6154, PCI-6220, PCI-6221, 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, 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-6115, PXI-6120, PXI-6122, PXI-6123, PXI-6132, PXI-6133, PXI-6143, PXI-6220, PXI-6221, PXI-6230, PXI-6224, PXI-6225, PXI-6229, PXI-6230, PXI-6232, PXI-6233, PXI-6236, PXI-6238, PXI-6239, PXI-6250, PXI-6251, PXI-6254, PXI-6255, PXI-6259, PXI-6280, PXI-6281, PXI-6284, PXI-6289, PCI-6013, PCI-6014, PCI-6023E
Driver: NI-DAQmx 9.2

 
2 ratings | 3.00 out of 5
Print

Reader Comments | Submit a comment »

Error!
This example will show a msgbox saying "In task done Event Handle" after several moments.
- 煜桐 孙, 江苏大学. gamesun@21cn.com - Oct 31, 2009

when N = 1,it doesn't work.
I'd found this examples for VB for a long time.But when I set the "Samples/Channel/Read:" & "Samples to display" to "1". it will show a msgbox saying "In task done event handler".why?
- 煜桐 孙, 江苏大学. gamesun@21cn.com - Oct 24, 2009

 

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/).