04-01-2015 03:51 PM
A Value Change event is a "User event. Writing to the terminal will not fire an event. Write to a Vaule Signaling throgh a property node or use the VC even of the slider and a case structure driven by the same logic
Do not set Timeout to 0 it completely defeats the event structure and you go greedy with the loop. The idea is to only use as much CPU as necessary not to iterate as fast as possible.
You have no event for stop VC
Something more like this :
04-01-2015 06:12 PM
Your original code worked but had timing issues. There was nothing to prevent the true case from starting the external VI multiple times, plus there was no delay in the while loop so everything in the loop was executing as fast as your computer would allow it. Consider something like this. I think this will give you the behavior you want. The code in the true case only gets executed if the slide is above 5 AND 5 seconds have elapsed since the last true case was executed.
04-01-2015 08:24 PM
04-02-2015 10:35 AM
Thank again!
But i have some trouble for now, i try to use event for boolean " Fire Alarm " or Alarm ON or Alarm OFF without sukces.
Please tell me how i must to do in this case?
p.s. slider i use only for simulation of logic . i use rs 232 serial read & VISA. i resive date from fire sensors with arduino i/o board.
Thanks!
04-02-2015 12:43 PM
What you need to do is to learn about Event Structures. Watch the video here. It will teach you about Events in LabVIEW. You will probably benefit by watching the other videos in this series.
Bob Schor
P.S. -- this is basically the same advice you've been given before, though maybe without pointing you to the specific teaching material ...
04-02-2015 01:31 PM
Thanks a lot!
04-03-2015 04:03 PM
Hello!
it is about my problem:
and how solve it :
https://decibel.ni.com/content/docs/DOC-30002
Thanks for all!