LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Read Boolean text of the Boolean Check????

Solved!
Go to solution

Hello All,

 I got help from the forum to read Boolean label or caption of given boolean check or tick. But in my project i have to read boolean text only. There are around 40 option and which ever i will select, its boolean text should be read. 

 

My project is about that i should read from excel file all the names and those names should be given to boolean text and which ever is selected among the list with that name only the file should be saved. So for this purpose i need to read boolean text only. As at run time i cant change the boolean label or caption so when reading from excel i can change boolean text and need to read it.

 

I am attaching the my code to read from excel and give those names to boolean check. Further i need to save the file with that name only.

 

Thanks in advance

pals

 

0 Kudos
Message 1 of 5
(2,967 Views)
Solution
Accepted by topic author Sim5

Does this help?  I'm not sure that I understand your question.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 5
(2,940 Views)

Hi, 

Thanks a lot... I also tried same and got the result... Only problem that i have to put all boolean tick first in cluster and then do for each. But in future incase no increased then this program will fail. 

This is the solution which i wanted... But incase if you have an idea that automatically it should generate the boolean tick and which ever is ticked it should read the boolean text... 

Thanks so much...

pals

0 Kudos
Message 3 of 5
(2,929 Views)

But in future incase no increased then this program will fail.  


Instead of a Cluster of Boolean, you could use an array of clusters that contain a Boolean and String.

The size of the array could then be based on the number of strings from the Excel file. 

 


But incase if you have an idea that automatically it should generate the boolean tick and which ever is ticked it should read the boolean text... 


 

An event structure could be put in a while loop and an event created for if the array changes value and return the item that was changed in the array.

Omar

Omar
Message 4 of 5
(2,914 Views)

Thanks so much Omar.... I wanted something like this only i tried so somewhere i was failing thanks so much so much....

pals

0 Kudos
Message 5 of 5
(2,894 Views)