Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a function to determine the number of differential AI Channels of a device?

I want to create a list of the names of the analogue channels available on a device installed on my system. I have previously used 'Device.AIPhysicalChannels' which gives me the appropriate list for single-ended inputs. Now I want a list of channel names for differential inputs. Is there perhaps another function/property which will give me this? Or perhaps someway of filtering the single-ended list?

 

As I couldn't find how to do this automatically, I tried to filter the results using the rule that in each group of 16 single-ended inputs, the first 8 channel names are used. This is okay for some devices (e.g. E series and some M series) but is not always applicable. If I do need to use such filtering, how can I determine if the board allows differential inputs and if this requires me to halve the number of physical channels (S series does not, and some M series are DI only).

 

Thanks for any help.

CAS

 

0 Kudos
Message 1 of 4
(3,720 Views)

CAS,

 

I do not know of a way to determine a list of differential channels.  So I'm afraid you will have to continue with your single ended list of channels and filter them as you have been.

 

You can however use the DAQmx Physical Channel property node, select AI.TermCfgs.  This will return the supported terminal configurations, allowing you to determine if the channel you are looking at can be selected for differential input.

Also, the DAQmx Channel property node, element AI.TermCfg returns the setup for that channel.

 

A thread with other information that may be useful to you is available here: http://forums.ni.com/ni/board/message?board.id=250&message.id=42504&requireLogin=False

 

Sheela Sujeeun

Applications Engineer
National Instruments UK
0 Kudos
Message 2 of 4
(3,702 Views)

Dear Sheela,

 

Thank you for your reply. I thought I'd done a pretty good search of the DAQ functions but I had not spotted the PhysicalChannel.AITerminalConfigurations (I'm using Measurement Studio) property. This will supply with me with sufficient information to produce my filter.

 

CAS

0 Kudos
Message 3 of 4
(3,700 Views)
Glad to be of help CAS Smiley Happy
Sheela Sujeeun

Applications Engineer
National Instruments UK
0 Kudos
Message 4 of 4
(3,699 Views)