Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the basic terminals with DAQmx C funcitons

I would like to enumerate the terminals on a PCI-6111 card using DAQmx "C" functions, however, I have not been able to find a function that returns them in the format that I am expecting. Specifically, I am looking for a function that will enumerate the "PFI" terminals. Is there a means of doing this using the DAQmx C functions?

Thanks.

0 Kudos
Message 1 of 3
(3,072 Views)
I know that this doesn' exist, but can I ask you what your use case is.  This is a feature we could provide in future versions of DAQmx, but it would be nice to know how you want to use it.  Why does knowing the PFI pins help you?  This is documented with your hardware.
 
Thanks
StuartG
0 Kudos
Message 2 of 3
(3,056 Views)
IMHO, the documentation is ambiguous when it comes to specifying the names of the terminals correctly for use in functions like DAQmxCfgSampClkTiming. If the full names of the pins were available from a function call in a comma separated list, they could be easily parsed out and then used in a subsequent DAQmx function call.

I spent a couple of hours the other day trying to figure out why my call to get trigger hysteresis was failing with error -200265. "The error Measurements: An attempt has been made to use an invalid analog trigger source."

What I eventually figured out was that this error was partly caused by the fact that the format for the terminal PFI9 I had used in the call to DAQmxCfgSampClkTiming was bad. I found it quite interesting that that attempting to get the trigger hysteresis was giving an error that turned out to be related to the terminal I had specified for the sample clock.

Personally, if I had been able to pick a string from a list that was returned by a function call to the device, I think things may have gone much easier.

Best Regards,
Matthew

0 Kudos
Message 3 of 3
(3,038 Views)