Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I access the list of virtual channel names in VB

I have a PXi chassis with about 100 different sensors attached on various SCXI modules, I have created a unique virtaul channel for each.

I have no problem using these names in my code to access the data.

I would like to create a diagnostic panel in my application from where I can access any of the channels via a drop down combo.

Is there a method of getting reading the virtual names that I have created in MAX?

Graeme
0 Kudos
Message 1 of 5
(7,056 Views)
It sounds like you are probably using the CWDAQ ActiveX control in VB6. In that case, unfortunately, there is not a way to get this information.

If you are using DAQmx, you could use the C API or LabVIEW or CVI to get this information, but it is not yet supported in the .NET or C++ APIs. If you need more information on calling C functions from .NET or C++, please post a reply to this message.

Tony H
Measurement Studio
0 Kudos
Message 2 of 5
(7,053 Views)
Graeme,

Unfortunately, this is not possible in Visual Basic. This functionality exists in LabVIEW, but it is not available through the ActiveX controls or NI-DAQ function calls.

Good luck with your application.

Spencer S.
0 Kudos
Message 3 of 5
(7,052 Views)
Ta,
I had a horrible feeling this was the reply I would get but Rats anyway!

I don't suppose anyone knows how to extract this info from the MAX config file?
All I want to do is generate a list box with all my declared virtual channels (trying to save me typing them in more than once)

Graeme
0 Kudos
Message 4 of 5
(7,052 Views)

Hi Tony,

I just came across this message, can you please provide more information on calling C functions from .NET with DAQmx?

Thank you,

LogicT

 

0 Kudos
Message 5 of 5
(6,841 Views)