04-14-2014 04:43 AM
Hi, I am new to Labview. May i ask is it possible to use "match pattern" inside event structure to detect offset? For example, if the event detect "one", it will go to first event, if detect "two", it will go to second event..
Your help will very much appreciateD! Thank you..
Solved! Go to Solution.
04-14-2014 05:28 AM
04-14-2014 05:50 AM
hii thank you for your reply.. Ya i have tested simple vi, it works well with two matche pattern, but I don't know how to implement in event structure.
I build temperature monitoring project using serial communication. I want use match pattern to differentiate temperature value coming from two different locations, for example, if value 3001, the last two value "01" indicate from location 1 and go to event 1, inside the event it will extract the matched string and show temperature "30" celcius. if value is 2902, "02" indicate it is from location 2 and go to event 2....
It is a bit confusing for me to explain... hope you can help me! thank you so much!
04-14-2014 06:04 AM
04-14-2014 06:10 AM
Hello!
There are many ways to solve this kind of "problems".
You could use a case structure insisde the "message received event" or fire dynamic events depending on the signal source.
They way you are formulating the problem makes me doubt that you really want the event structure in this case.
best regards
04-14-2014 07:16 AM
Hii thank you so much! Now I understand and I got it. thanks again.
04-14-2014 07:42 AM
Another question, is it possible to link from one case to another case? For example, if the value obtain in case 3 is 0, then it go to case 1, How should I link it?
04-14-2014 08:18 AM
That's a state machine pattern