need some help here.

Desing, arrangement, usability and everything associated with user interace
Ответить
caluctra
beginner
beginner
Сообщения: 14
Зарегистрирован: 24 мар 2009, 16:33
Версия LabVIEW: 8.2
Контактная информация:

need some help here.

Сообщение caluctra »

hello all...

say I have two VIs... on the first one I have a boolian control, and I would like to be able to trigger and event on the 2nd VI whith a change in value of the first VI's boolian.

my aproached was to create a reference of that boolian, then pass it to the 2nd VI, but I am struggling a little bit here.

thanks for any help.
Аватара пользователя
mzu2006

Professionalism Tutorials Black
doctor
doctor
Сообщения: 2456
Зарегистрирован: 16 авг 2008, 02:12
Награды: 3
Версия LabVIEW: 7.1 10 11 12
Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
Контактная информация:

Re: need some help here.

Сообщение mzu2006 »

I would take a second look at your application architecture. I would suggest to create a notifier. When the control of the first one changes, you "post" the notifier. In the second vi you wait for the notification in a while loop.
caluctra
beginner
beginner
Сообщения: 14
Зарегистрирован: 24 мар 2009, 16:33
Версия LabVIEW: 8.2
Контактная информация:

Re: need some help here.

Сообщение caluctra »

hello mzu2006 and thanks for taking the time to give me a hand.

i have never used the notifiers before nor I knew that capability you just mentioned.

if it is not much to ask could you please post two simple VIs where you trigger an event case from one VI to another using the famous notifiers?

on the mean time I will give it a try myself.

regards.
Stranger
interested
interested
Сообщения: 9
Зарегистрирован: 03 апр 2009, 16:11
Версия LabVIEW: 8.5.1

Re: need some help here.

Сообщение Stranger »

Hello, caluctra! Here is an example of sending and getting notifiers in two separate vi's. The first one creates notifier with boolean data type, and setting it from the signal of boolean control. The second obtains notifier, reads it and sets the led to true or false.
Любая секретарша должна знать, что если вышел из строя блок питания, сгорел транзистор VT54 )
caluctra
beginner
beginner
Сообщения: 14
Зарегистрирован: 24 мар 2009, 16:33
Версия LabVIEW: 8.2
Контактная информация:

Re: need some help here.

Сообщение caluctra »

hello stranger, and thanks for the help.

I have the feeling I did not explained my self correctly when I first posted my question.

here I post a picture.

regards.

Pedro E.
Вложения
question.JPG
Stranger
interested
interested
Сообщения: 9
Зарегистрирован: 03 апр 2009, 16:11
Версия LabVIEW: 8.5.1

Re: need some help here.

Сообщение Stranger »

Hello! sorry for such a long time answer....

Here is an another example of notifier setting and getting, with dynamic control events. So, the notifiers sets the Boolean1, this event is programmatically hadling, and boolean2 starts blinking.
Вложения
notifiers.rar
(20.25 КБ) 288 скачиваний
Любая секретарша должна знать, что если вышел из строя блок питания, сгорел транзистор VT54 )
Ответить

Вернуться в «Front panel»