07-19-2007 12:28 PM
How are are you trying to add this information? Are you using the comment input of the Write to Measurement File? I believe comments are added to a column with the data. If you want the information in the header, I don't think you can use the Write to Measurement file as is. The properties page has a 'File Description' field. Unfortunately, this is not an input to the Express VI that you can wire a string to. The good news is tha it can be modified to do this. Right click on the Write to Measurement File and select Open Front Panel. this will convert the Express VI to a regular VI. Look on the block diagram for a string constant called 'description'. Right click on this and select Change to Control. Go to the front panel and connect this new control to somewhere on the connector pane. Save this VI. You know have a modified subVI that works exactly like the function you had before except you can no longer select properties to change something.
The alternative is to skip the Write to Measurement File altogether and use some of the low level File I/O functions.
07-19-2007 06:15 PM
07-19-2007 07:03 PM
07-20-2007 11:58 AM



hey i did the change to control to the string contant and then i copied and pasted the sub vi to my original vi. is that what i was supposed to do?07-20-2007 12:21 PM - edited 07-20-2007 12:21 PM
No, no, no, no! If you had done it correctly, you would have had a new input on the modified VI called 'description'. This is where you should wire the string control. One thing you have to realize is that each VI is a separate file. When you attach the top level VI, it does not include the subVIs you use. Attach the modified subVI so I can see what you did wrong.
And please, start to clean up your VI's wiring. Wiring should be done from left to right and should be done from right to left and then up and around again. That means that for proper 'style points', your Write Measurement File should be on the far right side of the diagram. This makes it clear that the file write is done after all of the other code on the diagram.
Message Edited by Dennis Knutson on 07-20-2007 11:24 AM
07-23-2007 11:54 AM
07-23-2007 12:00 PM
If you did it correctly, the 'description' input will be visible on the block diagram of the VI where you call it. If it's not there, then you either didn't change the constant to a control or if you did, you didn't wire the control to the connector pane.
07-23-2007 12:04 PM
07-23-2007 12:05 PM
07-23-2007 12:34 PM