Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

VB6 6009


phsieh2005 wrote:

Hi, Jeff,

 

Thanks!

 

I have to sample 2 channels at the same time.   Is DAQmxReadAnalog1ChNsamplesdbl for just 1 channel?

 

Also, where can I find all the commands that are available for VB6?  So far, I have seen DAQmxReadAnalogScalarF64, DAQmxCfgSampClkTiming, and DAQmxReadAnalog1ChNsamplesdbl.  Are there others?

 

Pei-Ying


yes.  DAQmxReadAnalogNChNsamplesdbl returns a 2d array


"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 14
(1,185 Views)

Hi, Jeff,

 

VB6 cannot find either DAQmxReadAnalog1ChNsamplesdbl or  DAQmxReadAnalogNChNsamplesdbl.  Do I have to include specific componenet or references into VB6?  It did find DAQmxReadAnalogScalarF64, though.

 

Pei-ying

 

 

0 Kudos
Message 12 of 14
(1,172 Views)

Hi Pei,

The Visual Basic 6 and C API use a lot of the same function calls, if you look at the DAQmx C Reference help and the DAQmx C API Visual Basic 6.0 Help. You can see what read function are avail and you can find the function prototype and definitions of these functions. The DAQmxReadAnalogScalarF64 command will only read one value from one channel the  DAQmxReadAnalogF64 can read from multiple

Matt
Applications Engineer
National Instruments
Message 13 of 14
(1,152 Views)

Thanks Matt,

 

I am much more familliar with the LabVIEW polymorphic instantces' names than the API naming conventions


"Should be" isn't "Is" -Jay
0 Kudos
Message 14 of 14
(1,151 Views)