Hello, how can I make the value change corresponding to the changed unit in the array?
For example, when I change the unit of "flow" to be L/hr, the value should appear from 4 to 240 in the data mainstream without adjusting the value manually. It should pop up automatically. I know how to change the unit but don't know how to make it appear in the data mainstream with the same numeric control block.
I tried to use an event structure but don't know exactly how to work around it.
Event structure with unit change problems
-
IvanLis
- guru
- Сообщения: 5463
- Зарегистрирован: 02 дек 2009, 17:44
- Награды: 7
- Версия LabVIEW: 2015, 2016
- Откуда: СССР
- Благодарил (а): 28 раз
- Поблагодарили: 87 раз
Re: Event structure with unit change problems
Use NewVal and OldVal values to determine at what point the change occurred. If the element is changed, what we need, only then perform the action.Bombbooo писал(а):Hello, how can I make the value change corresponding to the changed unit in the array?
Знание нескольких принципов освобождает от знания многих фактов!
Правила форума
Как добавить в сообщение картинку или файл
Конвертация / версий (форматов) VI
Как правильно задать вопрос...
Правила форума
Как добавить в сообщение картинку или файл
Конвертация / версий (форматов) VI
Как правильно задать вопрос...
-
mzu2006
- doctor
- Сообщения: 2456
- Зарегистрирован: 16 авг 2008, 02:12
- Награды: 3
- Версия LabVIEW: 7.1 10 11 12
- Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
- Контактная информация:
Re: Event structure with unit change problems
You can do it like that:
You will have the index of the first element that has only a unit value changed.Правила форума (Forum rules in Russian)
rm -rf /mnt/windows
rm -rf /mnt/windows
-
- beginner
- Сообщения: 27
- Зарегистрирован: 19 мар 2012, 16:03
- Версия LabVIEW: 2010
- Контактная информация:
Re: Event structure with unit change problems
There are 4 different units in the data mainstream. How can you program the specific units for each value? for example; volume- l/hr or l/min
and pressure - bar or pascal.
and pressure - bar or pascal.
-
mzu2006
- doctor
- Сообщения: 2456
- Зарегистрирован: 16 авг 2008, 02:12
- Награды: 3
- Версия LabVIEW: 7.1 10 11 12
- Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
- Контактная информация:
Re: Event structure with unit change problems
This construct will give you the old and new changed values:
What do you mean by
Try to articulate it differently, please.Bombbooo писал(а):How can you program the specific units for each value?
Правила форума (Forum rules in Russian)
rm -rf /mnt/windows
rm -rf /mnt/windows
-
- beginner
- Сообщения: 27
- Зарегистрирован: 19 мар 2012, 16:03
- Версия LabVIEW: 2010
- Контактная информация:
Re: Event structure with unit change problems
There are 4 different units for flow and pressure, as you can see in my attached vi. However I put every unit in the same array which I think it isn't a good idea, but I already did it . Anyway how can you limit the user to be able to adjust the right unit for each value? For example, limit the user to have only L/min and L/hr for Flow, bar and pascal for Pressure. I know it sounds complicated but I need to work around this seriously. I got headache now Could you please help me??? plz Thanks
-
- beginner
- Сообщения: 27
- Зарегистрирован: 19 мар 2012, 16:03
- Версия LabVIEW: 2010
- Контактная информация:
Re: Event structure with unit change problems
This is what I have got. It's partly working but it doesn't give me the corrects values if I try to adjust the units more.
- Вложения
-
- unit change.vi
- (15.37 КБ) 288 скачиваний
-
mzu2006
- doctor
- Сообщения: 2456
- Зарегистрирован: 16 авг 2008, 02:12
- Награды: 3
- Версия LabVIEW: 7.1 10 11 12
- Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
- Контактная информация:
Re: Event structure with unit change problems
You can use this as a template:
- Вложения
-
- unit change.vi
- (10.82 КБ) 310 скачиваний
Правила форума (Forum rules in Russian)
rm -rf /mnt/windows
rm -rf /mnt/windows
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение