Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

visual basic 6.0 source code for reading DAQ 6015 USB

I am doing a specific software in Visual Basic 6.0 to measure some characteristics of a filter.
To do that I use a NI DAQ 6015 for USB; I need to drive a pressure controller by an analogic output with an increasing (step by step) tension DC.
 
Can anyone give me the source code to do this.
 
It seems that I have another problem : the sensors give me a right tension DC, but after the MAX software gives me always +10 Volts : is it a malfunction of the card or of the software; in this last case, can anyone give me the good code.
 
Thanks a lot.
0 Kudos
Message 1 of 2
(3,204 Views)

Hello!

Visual Basic 6.0 is now supported by NI-DAQmx 7.5, so you can directly use the NI-DAQmx drivers to use your DAQPad-6015.

You can find an analog output example in the following folder "C:\Program Files\National Instruments\NI-DAQ\Examples\Visual Basic 6.0\Analog Out\Generate Voltage\Cont Gen Volt Wfm-Int Clk". This will show you how to generate a continuous waveform.

Concerning the voltage that is at 10 volts, it looks like you misconfigure the external connection. You should take a look at the NI-DAQmx help file in the section "Measurement Fundamentals >> Signals >> Analog >> Connecting Analog Input Signals" to check that you use the correct configuration.

Best regards!

 

0 Kudos
Message 2 of 2
(3,107 Views)