04-19-2017 07:31 AM
Hello,
I'm a Newbie with counter/timers or any other data acquisition/generation task with hardware. So please be forgiving, when this seems to be a pretty basic question.
I am trying to get used to NI-DAQmx (without LabView). I managed to create a simulated NI-6612 Device (2 Ports, 32bit/8bit) and selftest of it is successful. I also get some sort of signals in Testpanel which I do not fully understand yet but am able to adress specific lines (PFI0-39) and put a finite/continuous signal on them by myself which makes sense to me. However, when I try to measure a pulsetrain on any of the 8 counters, the corresponding signal-to-measure-channel is already given by the internal routing as given by Pinout-Description. Given that my input-signal lies on the right channel in a separate task, nothing appears to happen when I press run. I get no error, but it does not count the edges at least. Beside that it is confusing, that some counters refer to Port1-Lines which doesn't support buffered signals at all. So I guess I have a lack of understanding how the tasks/internal routing of MAX work (although I read the manual) or what I have to do, to get the edges of my pulsetrain counted (in simulated mode).
Thank you in advance!
04-19-2017 09:12 AM
Behavior of simulated devices is scripted. Many things you might try to do to configure it differently won't have the effect you'd see on a real device.
So attempts to generate and then measure will probably produce a scripted measurement result that has no relation to what you "generated" (in a simulated way).
One other point of clarification for you: counter tasks are distinct from regular digital i/o tasks even though they receive/produce the same digital logic signals. PFI lines cannot be used for buffered digital i/o, but they *can* be flexibly routed for counter signals. Port 0 *can* be used for buffered digital i/o, but those lines cannot be routed for counter signals.
-Kevin P