Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire multiple channels (types) NI-DAQmx in VB6

Hi All,
I'm trying to do, what I think is a fairly basic requirement.
I have a PXI DAQ linked to an SCXI chassis, which contains various card types to condition the singals from all my data points.
Within the system there are voltages, thermocouples, RTDs, frequencies, strain, etc.
 
I can't seem to find an example that will acquire the data from all the different types?
The ones I have looked at concentrate on voltages, but I need the scaled results from all my various sensors.
When I run those the voltages work but it crashes on the others...
 
So, what I need to do is acquire scaled data from various channel types, either referncing by physical location, global virtual channel or task names...
 
Does anybody have a working example on how to acheive this?
It driving me mad Smiley Sad
0 Kudos
Message 1 of 4
(8,008 Views)
Sorry posted to the wrong message


Message Edited by JamesC on 06-27-2007 11:08 AM

0 Kudos
Message 2 of 4
(7,994 Views)
Hi Snelly,
 
The easiest way to do this would be to create a task in MAX which you can call from VB. You create a new task by right clicking on Data Neighbourhood in MAX. Add one channel type initially and just go through the wizard. When you get to the configuration page, you can add channels to the task. At which point you can add whatever other channel types you want to measure. You then just need to call that task in VB.
Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 3 of 4
(7,984 Views)

Thanks, I've got it going now.

I didn't realise that the DAQmxreadanalogF64 actually gave the scaled results Smiley Wink

 

0 Kudos
Message 4 of 4
(7,972 Views)