LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed loop enforce sample rate

Solved!
Go to solution

Am I using the timed loop and wait function correctly to ensure the loop runs no faster than 25Hz? It's a cRio 9047 in hybrid mode.

 

timed loop.png

0 Kudos
Message 1 of 8
(3,807 Views)
Solution
Accepted by topic author Corelab

When you run it, is it doing what you want?

 

I'm going to guess it's not because you have set your timed loop to run with a 1000 msec iteration.,  so 1 Hz.

0 Kudos
Message 2 of 8
(3,701 Views)

I'm astonished that RavensFan could provide help!   That picture of LabVIEW code is so tiny that all I can determine is that it may use Dbls (I can see orange on what looks like Global Variable references).  If you must attach a picture, at least make it a Snippet so we can drag it into a Block Diagram and have it show up as though you pasted a VI (and all its accompanying references, i.e. the rest of the Project).

 

Bob Schor

0 Kudos
Message 3 of 8
(3,617 Views)

@Bob_Schor wrote:

I'm astonished that RavensFan could provide help!   That picture of LabVIEW code is so tiny that all I can determine is that it may use Dbls (I can see orange on what looks like Global Variable references).  If you must attach a picture, at least make it a Snippet so we can drag it into a Block Diagram and have it show up as though you pasted a VI (and all its accompanying references, i.e. the rest of the Project).

 

Bob Schor


As far as I can tell (I haven't actually opened it up) that picture is also the code - it appears to be an authentic snippet.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 8
(3,593 Views)

Thanks. I've not used timed loops at all. I was thinking that frame duration was the way to time the loop, but I see from your reply that period is the direct way. Don't know why my snippet was so small...

0 Kudos
Message 5 of 8
(3,588 Views)

@Bob_Schor wrote:

I'm astonished that RavensFan could provide help!   That picture of LabVIEW code is so tiny that all I can determine is that it may use Dbls (I can see orange on what looks like Global Variable references).  If you must attach a picture, at least make it a Snippet so we can drag it into a Block Diagram and have it show up as though you pasted a VI (and all its accompanying references, i.e. the rest of the Project).

 

Bob Schor


LOL.  That was a ridiculously small picture.  Even smaller than I think it should have been if it was a straight up, insert picture.  I just clicked and clicked and clicked until I got it full screen and could then zoom in.

0 Kudos
Message 6 of 8
(3,584 Views)

Was the screen size/resolution at the the time I made the snippet, or was it the way I included it in the post?

0 Kudos
Message 7 of 8
(3,573 Views)

You're making of the snippet doesn't cause any problems. 

 

Probably the way you included the picture.  The forums will tend to scale stuff down if it doesn't fit in the post.  But yours was not so large and would have fit.  My guess is that you picked an option to put in a smaller image rather than just include it full scale when you inserted it.

0 Kudos
Message 8 of 8
(3,561 Views)