Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I reference Scxi module channels from VB

I have a PXI-1011 with a PXI-6052E NIDAQ board in slot4 (this also appears as device 3 in MAX)
I'm using MXI-3 for the PC-PXI comms
IN the SCXI bus slots I have..
Module 1: SCXI-1102B
Module 2: SCXI-1122
Module 3: SCXI-1122
Module 4: SCXI-1122
I'm using the 1122's for RTD measurement
I'm fine with the hardware however
How do I get readings for example say chn0 on module2 to a cwAI?

can some one give me a vb example

I can do it in MAX using the virtual Instruments and defining a RTD

Graeme
0 Kudos
Message 1 of 2
(3,165 Views)
Graeme,

You can reference your SCXI channels using one of two methods -- using the SCXI channel string or using a Virtual Channel configured in MAX.

Step-by-step instructions on creating a Virtual Channel are available in the Measurement & Automation Explorer Help. As for SCXI Channel Strings, please reference the following Knowledge Base article. The channel string is the same for Measurement Studio and LabVIEW so the article is still valid for you as a Measurement Studio for VB user.

Valid SCXI Channel String Arrays under LabVIEW
http://digital.ni.com/public.nsf/ websearch/ 6FC83B7AC9ACA5788625615B00823D65?OpenDoc ument

Also, take a look at the example titled, "SCXI Continuous Acquisition.Vbp" which ships with Measurement Studio for VB
. Look in \Program Files\National Instruments\MeasurementStudio\VB\Samples\DAQ\Scxi\Continuous Acquisition on your computer for this example.

Therefore, if you are wanting to read from channel 0 of a module in the second slot you would use the SCXI channel string "sc1!md2!0". If you configured a Virtual Channel called "Channel0" you would use "Channel0" instead of "sc1!md1!0".

Regards,
Justin Britten

Applications Engineer
National Instruments
Message 2 of 2
(3,165 Views)