03-21-2010 11:10 AM
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
03-22-2010 08:53 AM
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
03-23-2010 06:58 PM
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
03-23-2010 10:08 PM
Thanks Matt,
I am much more familliar with the LabVIEW polymorphic instantces' names than the API naming conventions