LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Value (Signalling) String Functionality

Solved!
Go to solution

Hi All,

 

I'm using Value(Signalling) of a string indicator to trigger an Event.

 

What is meant to happen is:

1) When 'Fault' is Bad, the indicator should show 'Bad' and the Date and Time of the FIRST fault should appear

2) If 'Fault' is Good, the indicator should show 'Good' and the Date and Time are cleared

 

The problem seems to be:

1) With the functionality of the Value(Signalling) String, where any input into it triggers the Event (even when it's the same value as the previous). I'm assuming this can't be changed.

2) The Fault indicator clears whenever the Value(Signalling) is triggered.

 

Is there a workaround for this? 

0 Kudos
Message 1 of 4
(983 Views)
Solution
Accepted by topic author SDuffyLV

@SDuffyLV wrote:

The problem seems to be:

1) With the functionality of the Value(Signalling) String, where any input into it triggers the Event (even when it's the same value as the previous). I'm assuming this can't be changed.


You can check if it did change, either before sending the value signaling even, or when handling the event. Usually, you make it so that it isn't a problem.

 


@SDuffyLV wrote:

2) The Fault indicator clears whenever the Value(Signalling) is triggered. 


That's because you're putting an empty value in it (the event case is returning the default string value, which is an empty string). If you don't want this, put the indicator in the time out case. Or, read it's value with a local (or property node, or through a shift register).

Message 2 of 4
(967 Views)
Solution
Accepted by topic author SDuffyLV

Hi SDuffyLV,

 

Should it be to simulate User activity, or do you want to just programmatically trigger the events? If the latter, I would rather go for User Events instead.

snippetValueSignalling.png

_______________________________________________________________

-Patrik
CLA || CTA
If it helps - Kudo it, if it answers - Mark As Solution
Message 3 of 4
(958 Views)

Thanks for the replies both of you.

 

I've figured out what I need with the following program.

 

Both of your ideas pushed me to this solution so you both get credit for Accept as Solution 🙂

Message 4 of 4
(945 Views)