LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

counter digital

Solved!
Go to solution

no,i just can use the scan mode

but for example why i could do it with a more simple code in labview,and when i try to go it a little bit more complicated i have this problem?

it is about my computer,the labview code?

0 Kudos
Message 21 of 27
(1,126 Views)

Is it theorethical possible to read data from cRIO at 1kHz, in scan mode and over ethernet(?) ? 

 

//Ulf

0 Kudos
Message 22 of 27
(1,124 Views)

yes,scan mode is used to read E/S until 1kHz

 

have you red about i posted before about the pwm signal? because i had 2 codes and in one of them i could generate a pwm signal until 500Hz,but in the other code i had the same problem that i have now with my counter,

why it happens? maybe because in one code i am recieving the time for the counters directly and in the other code it has to do more operations?

0 Kudos
Message 23 of 27
(1,118 Views)

Are both of your PWM generation VIs running in the same project, or are they in different projects?  If they are in different projects, check that the scan engine settings are the same in both.  If it's not the scan engine, the major difference I see between the two PWM generation programs is that in one you are using extended precision math, and in the other you are using floating point and integers.  I don't have a cRIO available to test, but it's possible that extended precision math is not efficient on the cRIO.  Try changing it to use single or double precision,

 

When reading the signal, how is the scan engine configured?  If it is not scanning fast enough, you won't get good data regardless of how fast the loop runs.  Reading the shared variable returns the value that was most recently read; it does not force a read.  You can synchronize the timed loop to the scan engine (right-click the timed loop timing options and choose Configure Input Node).  There's no need to run the loop faster than the update rate of the scan engine.

0 Kudos
Message 24 of 27
(1,110 Views)
Solution
Accepted by topic author mariomoskis

I went back and looked at the project you uploaded here: http://forums.ni.com/t5/LabVIEW/frequency-problem-compact-rio/m-p/1868977#M633499.  If this is the same project you're using now, then the scan engine settings are almost definitely the problem.  The scan period is set to 10ms.  You can change this by right-clicking on the cRIO target in the project and choose Scan Engine.

0 Kudos
Message 25 of 27
(1,107 Views)

GOOD!! 

it was the problem which i had all this last time,ufff

one month working on this problem and it was a simple thing!

 

Thank you for the time that you have dedicated to help me. It was much of a help

 

THANKS YOU!!!

0 Kudos
Message 26 of 27
(1,101 Views)

i don´t know why i didn´t see the problem before! i lost so much time on it

0 Kudos
Message 27 of 27
(1,097 Views)