cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

event structure

¡Resuelto!
Ir a solución

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.. 

0 kudos
Mensaje 1 de 8
4.786 Vistas

Hi Yee,

 

what kind of "event" are you talking about?

 

Yes, you could use MatchPattern in an event case to check a string. Did you test it with a simple VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 kudos
Mensaje 2 de 8
4.769 Vistas

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!

0 kudos
Mensaje 3 de 8
4.761 Vistas
Solución
Aceptado por el autor del tema yee0722

Hi Yee,

 

do you really need events and an event structure at all?

 

Why not just use a case structure handling your values depending an the received string?

Like this:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Mensaje 4 de 8
4.750 Vistas

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

0 kudos
Mensaje 5 de 8
4.747 Vistas

Hii thank you so much! Now I understand and I got it. thanks again. 

0 kudos
Mensaje 6 de 8
4.723 Vistas

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?

0 kudos
Mensaje 7 de 8
4.715 Vistas

That's a state machine pattern

_____________________________
- Cheers, Ed
0 kudos
Mensaje 8 de 8
4.701 Vistas