Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

use a USB6001 DAQ in a visual basic application

Can you answer these questions for me …………..?

 

  1. My goal is to make a DAQ based automated tester – I will stimulate a circuit and measure and evaluate the circuit’s response. I am new to the USB-6001 DAQ and fairly new to Visual Basic.
  2. How do I get a USB-6001 DAQ to talk to/listen to a Visual Basic application? I am using Visual Studio 2017.  If there is a better Visual Basic version, please advise.
  3. Where is there reference information to learn how to use a USB-6001 DAQ with a Visual Basic application?
  4. Is there a WAIT command (a time delay and to free up CPU resources) for Visual Basic as there is for LabView? What is it’s name in Visual Basic?
0 Kudos
Message 1 of 3
(4,875 Views)

Hey analogdude,

 

To control the USB-6001, you'll need to install the DAQmx driver first. You can download that here:

 

http://www.ni.com/download/ni-daqmx-17.1/6836/en/

 

When you're installing it, make sure to install support for .NET. You can find this under the custom installation settings.

 

After that's installed, I'd recommend starting with some examples we ship with DAQmx. This KnowledgeBase article should show you how to find examples for using DAQmx with VB:

 

http://digital.ni.com/public.nsf/allkb/AFFC0BE95DE6B38186256D9B0051342B

 

As for your last question, there are various ways to delay the execution of your code. Here's a basic version that will let you delay for a certain time:

 

https://stackoverflow.com/questions/15857893/wait-5-seconds-before-continuing-code-vb-net/15861154

 

Cheers,

Ryan C.

 

Message 2 of 3
(4,847 Views)

While I have not yet executed all your suggestions, I have studied the links you gave and I believe they are exactly what I need to proceed! 

Thank you for your great help. 

Analogdude

0 Kudos
Message 3 of 3
(4,825 Views)