kull3rk3ks Posted January 22, 2013 Report Share Posted January 22, 2013 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 Quote Link to comment
ned Posted January 22, 2013 Report Share Posted January 22, 2013 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: That said, I don't actually see a logic problem with your original approach, so I suspect the problem may be further up. 1 Quote Link to comment
ShaunR Posted January 22, 2013 Report Share Posted January 22, 2013 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:Blinken-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: Quote Link to comment
kull3rk3ks Posted January 25, 2013 Author Report Share Posted January 25, 2013 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! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.