09-15-2008 02:58 AM
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
09-16-2008 07:42 AM
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
09-16-2008 08:32 AM
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
09-16-2008 08:35 AM