04-29-2016 08:02 PM
04-29-2016 08:37 PM
@blessedk wrote:
Please can anyone help with this:
I want the "true" output from an error dialog box ( after hitting ok button on the dialog) to give me a momentary true output and then fall back to false.
Is this possible and how ? Your prompt responses will be appreciated !
When you loop back around and there is no error, it should be FALSE. I don't understand what you are trying to do. Perhaps you should supply a better example, with a block diagram.
04-29-2016 09:53 PM
04-29-2016 10:43 PM - edited 04-29-2016 10:44 PM
I moved this message into a new thread. While your question seemed related to the title of the thread you posted in, it was an 11 year old thread, a very long thread, and that thread quickly devolved when the original poster went into a series of trolling rants.
You are more likely to be helped with your message now posted in a new thread.
If crossulz's reply doesn't help you, then I suggest you post the VI that you are working on giving you trouble so that we can see exactly what you are trying to do.
04-29-2016 11:31 PM
@blessedk wrote:
Basically I want to be able to apply a short "true " pulse to a while loop condition terminal and then return that to false after a second or so. I don't want to do this with a Boolean switch. I prefer the user clicks the OK button to generate a short-lived true pulse.
If the while loop conditional terminal changes, the loop will terminate and the boolean state is no longer relevant. How does the while lop start over?What else is there? Obviously, you are not telling us the whole story. Please attach your VI.
04-30-2016 01:29 PM
04-30-2016 02:28 PM
04-30-2016 02:55 PM
04-30-2016 05:03 PM
@blessedk wrote:
Basically I want to be able to apply a short "true " pulse to a while loop condition terminal and then return that to false after a second or so. I don't want to do this with a Boolean switch. I prefer the user clicks the OK button to generate a short-lived true pulse.
I realize that you have "moved on" from this question, but when I tried to answer it this morning, I discovered that while I could read the Forums, I couldn't Post (nor could I log in) -- sounds like maintenance was in progress. I did code up a possible solution to this problem, so I decided to post it anyway for your amusement.
I notice that though you've been visiting the Forums for a while, there is no code posted here with this question, so I cannot tell what version of LabVIEW you are using. I'm posting this as a LabVIEW 2015 Snippet, so if you have LabVIEW 2015, you can easily grab this code and try it out. If not, this might encourage you to Post Code (or at least tell us your LabVIEW Version).
This is the Initialization part of a sub-VI I call "Brief True". You put it whereever you want a Momentary True to "latch" for a period of time (another parameter to the sub-VI, default is 1000 msec). If Momentary True is off and Start is True (illustrated), this saves the "Stop Time" in a Shift Register and turns on Momentary True. Subsequent calls (in the Case not shown) just compare the Current Time to the previously-saved Stop Time and set Momentary True to "Current Time < Stop Time", ignoring the Start command.
Here is a Test Routine that shows how this works. The Start Button is a Latch When Released control, so it acts as a Momentary True switch. The Brief True sub-VI turns it into a 1-second True indicator that we test 20 times/second.
You described doing this with an Error Line -- you could either simply use Brief True on the Status component of the Error Cluster or adapt these routines to use the Error Line instead of a Boolean Input and Output.
Bob Schor
04-30-2016 08:07 PM