08-26-2020 01:40 AM
Hello.
I want to have a possibility to get the port and line number of the ports by a function in CVI.
So e.g. to know that counter 0 is port 2 line 4 and so on.
Thanks
08-26-2020 06:40 AM - edited 08-26-2020 06:41 AM
I'm not aware of any DAQmx function call that will do something like that. But it's been a while since the last time I took a deep dive into vi.lib and the examples folder trying to search for a utility that wasn't on the function palettes.
In general, mapping between the port/line designation and the corresponding PFI designation and any corresponding counter *functional* designation is something that can vary from board to board. The kind of pinout info you can display n MAX is shown in more of an image format, so I'm a little doubtful the info is available in some kind of text or database format to be looked up.
Sorry, not the answer you hoped for. You might be able to hardcode your own lookup table for the signals of interest, especially if this app is always attached to the same DAQ device.
-Kevin P
08-26-2020 08:06 AM
Thanks for the answer.
You're right. That is not the answer I need, but thanks for your help.
A lookup table we already have. But only for the existing HW. Now, there was a new HW coming with other port/line for counter 0 e.g. and we had the problem. So a function in CVI would be helpfull.
Has someone else an idea?
Thanks.