LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case strucutre and strings

Hi, this might be a silly question from a result of my lack of labview experience but It's been bugging me for a while. Im Writing an application that reads results from a table and writes them to a concatinated string. My problem is that if the cell is empty I want it to break out of the loop and stop reading the table.

 

What happens is that when it finds an empty cell it overwrites the previous entry of the concatinated string. This means that my resultant string prints one side of the concatination and a blank string on the other. If I try to leave the case structure blank on the case where a cell is empty then I get a tunnel error. I

 

In cell 0,0 I would usually write n0. If any one can point out what I could do to stop this from happening then it would be a great help. Ive attached my code as well as a picture of the type of data It would enter. im interested in the cell that says n0 for now.

 

Cheers.

0 Kudos
Message 1 of 5
(2,812 Views)
 
0 Kudos
Message 2 of 5
(2,808 Views)
For some reason i cant seem to attach my code at the mo, but when i can ill put it on. Any suggestions will still be appreciated.
0 Kudos
Message 3 of 5
(2,804 Views)

Without seeing your code it is difficult to tell what is happening, but I will make a guess:

 

Is your concatenated string in a shift register (or feedback node)? If it is, and I think it should be from your description, your should be able to wire straight through the empty cell case.

 

Lynn 

0 Kudos
Message 4 of 5
(2,776 Views)

0208 wrote:
For some reason i cant seem to attach my code at the mo, but when i can ill put it on. Any suggestions will still be appreciated.

Some borwser (google chrome, safari) don't allow the attachment of "*.vi" files. Either place them in a zip file first or use a different borwser.

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