Jump to content

Initializing a variable once on the RT side of a RIO


Recommended Posts

Hi there, Thanks 

So when i wrote the VI i notices it automatically populated a feedback node

If i tried to delete it , i could not compile. 

So the feedback node is my answer but need to understand how to use it. 

I know my Q output to initialize to false and my Q not to be high

I will read the link you sent me. Thank you

 

Link to post

My only other issue is, I am triggering my Latch reset with a falling edge trigger.

 

The clock that is running the latch is only running at the speed of a while loop. 

It is causing me to miss the falling edge sometimes. Do you have any suggestions

Thanks

Setting the Feedback node like this to false did not work

I need to find a way to guarantee it

 

Latch.png

Edited by rscott9399
Link to post

If you don't want to use a feedback node, another option is using a local variable (see example below)

It sounds like you're trying to process losslessly. If that's the case, you usually need some sort of buffer. In this example, I use the event queue as my buffer.

 

RS Latch Local.png

RS Latch Event.png

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.