Dear all,
I am making a counter vi on RT target (PXI-6254 M-sereis board). The counter task counts the pulse of 100Khz internal clock source and using external line as sample clock (PFI9). i am feeding a 1Hz square signal to PFI9.
Please see the attached vi. it's part of my whole program but I trim it to show the problematic part. you could run it.
The while loop will execute every 1 second as it has a "waits for next sample clock" vi in its subframe. And I could verify it does run in every second by reading the "DAQmx Read-counter" vi inside which increase 100000 everytime.
But the problem is the two "channel property - CI count" as They only refresh their value every other time they are called. so what happened is, when this while loop runs, those property vi doesn't change its value, and when next time the loop runs, those property vi increase the value by 200000.
This is only happened on RT target. I runs the same vi on windows based labview on a E-series DAQCard without any problem.
Could anybody give me a explanation?
Thanks
Feilong
I