Jump to content
Sign in to follow this  
kull3rk3ks

Blinking on RT + FPGA

Recommended Posts

Hi there!

 

For my current project i needed to make some DOs on a cRIO blink at certain intervals (for signaling).

I wrote a sub-VI that i thought would do the trick, but it doesn't seem to work.

 

The output merely pulses. It works with "normal" tick counts on the computer, but as soon as I send it to the RT Task (Communicating with the FPGA) it seems to stop working.

 

i've attached the sub-VI. it's written in LV 2012. Hope you can help,

 

Robert

Blinken.vi

Share this post


Link to post
Share on other sites

What do you mean by "send it to the RT Task"? Can you show how this is used in your larger project? Generally I wouldn't recommend writing it that way; it's better not to put indicators inside structures if they are connected to subVI outputs. A somewhat simpler approach would be this:
post-3989-0-56084200-1358874543.png

That said, I don't actually see a logic problem with your original approach, so I suspect the problem may be further up.

  • Like 1

Share this post


Link to post
Share on other sites
What do you mean by "send it to the RT Task"? Can you show how this is used in your larger project? Generally I wouldn't recommend writing it that way; it's better not to put indicators inside structures if they are connected to subVI outputs. A somewhat simpler approach would be this:

attachicon.gifBlinken-modified.png

That said, I don't actually see a logic problem with your original approach, so I suspect the problem may be further up.

Another alternative:

 

Share this post


Link to post
Share on other sites

Thank you for your helpful replies.

 

You were absolutely right, ned. The problem was the indicator inside the structure. Moved it outside and it workes like a charm.

I really like your approach better though, I might steal it :)

 

Thanks!

Share this post


Link to post
Share on other sites

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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