Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Get counter port mapping

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

0 Kudos
Message 1 of 3
(1,413 Views)

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

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 3
(1,390 Views)

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.

0 Kudos
Message 3 of 3
(1,386 Views)