06-08-2011 08:57 AM
I have this application where I need to turn ON a digital output for like 50ms or 100ms and turn it OFF. I call it Pulse COntrol 🙂
Here is an attachment jpg that shows how I am achieving it.
Another question if I may regarding loop timing. I have a while loop which iterates at 100ms. I choose a certain part of the program and make it a Subvi to clean the program to look more readable. Will the program still run at 100ms per iteration? For example, I have an equation that calculates a valuve from a analog input. To make the program clearer, I put the calculation into a subvi and send info and receive info through subvi panes. Will this affect the loop timing? I hope my question is clearer.
My program does a lot more than just calculate a value, hence wondering. THANKS!
vj
06-09-2011 01:40 PM
Yes, using subVIs keep the timing the same. The used subVIs in your system are called during compiling the diagram in the same manner as if their blocks physically existing.
06-09-2011 05:07 PM
hey VeeJay,
did you want suggestions for how to do your Pule Control a different way, or were you satisfied with the way you have it implemented in the code you sent a pdf of? thanks!
~kgarrett
06-09-2011 05:51 PM
Mine works fine! I would like to see easier implementation or is there?
06-10-2011 04:15 PM
haha if you are satisfied with the way yours works, let's not mess with a good thing 🙂 I was just going to point you toward some LabVIEW examples, but yours works just fine!
~kgarrett
06-10-2011 04:41 PM
Haha sure. I don't give myself enough credit most of the time. I assume what I have done is mediocre and there is always an opportunity to do it better.
01-28-2021 12:32 PM
hello,
I want to know how can we on/off a digital output signal
01-28-2021 12:39 PM
Did you look at the picture in the first message?
Also, look at examples in Help >> Find Examples.... related to digital output.
01-28-2021 12:55 PM
I tried it but I could not able to achieve it.
01-28-2021 02:15 PM
Then start a new thread (this one is 10 years old).
Post whatever VI you have attempted and explain where you are stuck.