LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building a Binary Array, then send a text message based on Hi or Low.

Hello, I am trying to determine the most efficient way of reading a PLC Data Table and building an Array, then Attach a String array to the binary array (or clustering them), then display the string message for each binary that is Hi. If they go low, the message clears. Thanks....
0 Kudos
Message 1 of 3
(2,878 Views)
I am honored to be able to help a whole country with this answer 🙂

Attached to this message there is a VI I wrote to try to help you with this situation. When you run the VI, a 5-elements array is initialized. The elements of the array consist on a cluster with a boolean indicator and a string indicator.

In the front panel you will find a bool switch, a numeric control, a button to enter values, an array indicator and a STOP button. With the numeric control you can select which element in the array will be affected. Use the bool switch to change the status to true or false. Then, when you press the "Enter Value" button, the element in the array will be modified according to the bool state. If the switch is TRUE, the selected bool element in the array will turn o
n and the string indicator will say "This is HI". If FALSE, the bool indicator will turn off and the string indicators will be empty.

Note that the mechanical action of the "Enter Value" button is in "Switch When Pressed" mode. Play with the numeric indicator and the bool switch while the "Enter Value" button is pressed.

Modify the VI to better suit your needs. It was developed with LabVIEW 5.1

Good luck!
Enrique Vargas
www.vartortech.com
0 Kudos
Message 2 of 3
(2,878 Views)
Thank you very much Enrique... I will be at work Friday and will let you know how it went.... P.S. My country thanks you... 🙂
0 Kudos
Message 3 of 3
(2,878 Views)