Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How associate a boolean element wiht a text on an array

Hello!!!

Two weeks ago I tried to do an alarms sequencer and it is almost ready, but now I need to associate a boolean element with a text. The booleans are an array and each one must have a different text. Have anyone an example, how to do that?

Kind Regards,
LavUser

0 Kudos
Message 1 of 6
(3,822 Views)

Hi,

It's not clear to me what you are saying. Smiley Surprised  Can you tell a bit more about what you want.

0 Kudos
Message 2 of 6
(3,813 Views)
Hi,

I will try to explain you. I am working with modbus protocol and I have some booleans. Those booleans I must show on a display as alarms. And from modbus protocol I get the booleans as an array. From this array I can now see as well with boolean is activ as the index. So, now I need to put a label by index, because the index gib me the bit. Together with this email I send you my little programm, maybe you could see.

Note: I am using an array to simulate the original but it is the same thing.


In advance I thank you and I hope you could understand.

Kind Regards.
LavUser
0 Kudos
Message 3 of 6
(3,806 Views)

Hi,

Before i try to understand what you did in LV. I made a different VI from the description you gave.

Maybe this is what you want.

 

BTW: I am not helping out concurrent firm here  Smiley Sad  Smiley Wink am i ?  Modbus and alarms, is it for a safety system ?

Message Edited by K C on 06-14-2006 09:30 AM

0 Kudos
Message 4 of 6
(3,804 Views)

Hi,

do you mean something like this:

Because in an Array every control or indicator has the same name. You just can have one name. In an Cluster you´re free, There you can have independent names. And with Property Nodes you can set the Captions. Not the Lable!!!!!:

Hope this is what you´re looking for!

 

Alex Rudolph

NI Switzerland

 

Message 5 of 6
(3,796 Views)

Hi,

Thank you and almost what I need. I see that you can get the activ bit much better with your programm. But the thing must running so:

On modbus protocol I have 120 Boolean, those are alarms, it means, when they are equal to 1, it means that exist an alam. Where when come an alarm I will see - for instance -:

Bit 1 = 0 means "nothing - empty "

Bit 2 = 1 means "Daniel"

and so on. Mein programm can do that, but now I need to put "Daniel" when bit 2 is equal to 1. On the array is not possible, because the array accept only one text to all. And like a cluster, could be possible, but I do not know how!!! . Maybe will be easy but I do not have a lot experience.

And it is for an alarm system for a ship but only for a simulator. So don't worry!!! Smiley Very Happy


Kind Regards,
LavUser
0 Kudos
Message 6 of 6
(3,790 Views)