LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formating Output w/ Concatenated string

Hello,

 

I have inherited some code at work which is functional, but rather cumbersome.

 

During a test operation, some 30  items are tested, with results stored in local variables.

When the testing is complete, a Vi captures all these variables and creates a concatenated string.

That string is sent to a .cvs file and processed in Excel, which is not the issue.

 

This is the issue.

If the product fails, a 'tag' is printed out ( literally a tag, a 2"x3" sticky backed label).

The current process is simply to take the concatenated string, send it to a comment field on the front panel, then do a print screen.

There are no headers, no indication of pass / fail per specific tests - simply a string containing values seperated by commas.

 

Of course I intend to restructure the process, but I have higher priorities over the next several months.

Can anyone suggest a 'down and dirty' method to a) attach headers to the data and b) affect the text based on pass/fail.

 

In other words - a string which now looks like this  "8.9.08,555,1.47,5.1"  

Would now look like - "Date: 8.9.08, PN: 555, TOF: 1.47, Voltage: 5.1"

with the bold text indicating the part failed the Voltage test.

 

I could simply insert headers into the current concatenated string, but the screen is already JAMMED full of

items. I'm hoping there is another option.

 

Thank you for any suggestions

Alan

0 Kudos
Message 1 of 2
(2,436 Views)

Hi Alan,

      It's certainly possible to set a sub-string to bold type.  Attached is an example of how to set font-properties of a sub-string within a string.

 

Cheers!  

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 2 of 2
(2,424 Views)