There's a couple of shipping examples on serial communication. Just use the Example finder to look at them. You can also use the Instrument I/O Assistant to get started. Numerous examples on serial comm have also been posted to this forum. Do a search with "serial" as the search parameter and you'll find thousands of posts. There's also a lot of shipping examples on File I/O. There's an Express VI called Write LabVIEW Measurements File and functions like Write to Spreadsheet File and Write Characters to File. Look at these and decide how you want your data to appear. After you've looked at all of the examples, try writing a little code and see what happens. If and when you you run into any problems, please post back with specifics. For example, if you're using a specific instrument, mention it because there may be someone with experience with that model. The same is true with file i/o. Details on what format you want to write would be nice. Text or binary format. Comma or tab separated fields. Numeric data only or a mix of strings and numbers.