LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why RT target vi doesn't refresh counter property reading

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
0 Kudos
Message 1 of 2
(2,460 Views)
Hello,

I have a few questions in order to determine what is causing the problem.  In your Real-Time system you have an M-Series, but in your computer, you have an E-Series.  I would first like to identify whether it has to do with the cards themselves. 

Also, what Real-Time version do you have?
I can open the VI that you posted, but I cannot run it because I am missing the following subVIs:
32bitUnsignedSub.vi
AE_Data_64INT.vi
variables - network - RT (separate)_Stop_RT.vi

Take care!
Kameralina

0 Kudos
Message 2 of 2
(2,389 Views)