LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding comments to MS Report VI

I am using the MS Office Report vi to save my data.( see attached for screen shot)  I am able to write the numeric values to the Excel worksheet.  Then I thought I would get fancy and allow the operator to add comments, operator name,....
 
I wired a control to the "Comments" input. When I went to the front panel I entered some text.  When I clicked the "Enter text" check mark (next to the "Run" button), the test disappeared.  When I right clicked the control and selected Properties > Show Type, the text within the conrol showed the word "void"..
What am I doing wrong?
 
Thanks,
 
Bill
0 Kudos
Message 1 of 3
(2,839 Views)
'comment' input to the express vi is a 'variant' datatype.  You need to put a string control on your front panel and use the 'to variant' to convert it before connecting to express vi.
0 Kudos
Message 2 of 3
(2,833 Views)
Thank you.
0 Kudos
Message 3 of 3
(2,823 Views)