Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing Data to the CSV File?

Solved!
Go to solution

I have been trying, albeit unsuccessfully, to write data to the CSV file, with the file's Column headers labeled appropriately to each channel like we do in LabView (See attached CSV).  I know that developers have to be doing this same thing in .Net.  Can someone provide a snippet of code to get me started?  Also, maybe there is a completely different way of doing the same thing instead of directly writing to the CSV?  (Actually, I really need to fill an array with data and append that to the CSV every couple seconds).  I have the arrays already coded to each channel but I'm still stuck on how to get it to the CSV file.  I'm coding in VB.net using Visual Studio 2012, Measurement Studio 2013 Standard.  Any help would be greatly appreciated.  Thank you.

0 Kudos
Message 1 of 4
(5,181 Views)
Solution
Accepted by topic author busarider29

a csv file is nothing more than a text file

 

There are plenty of examples on how to write a text file using .NET

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

Thanks for the "help".  I'm an EE, not a .Net programmer. 

0 Kudos
Message 3 of 4
(5,160 Views)

@dm@Means wrote:

Thanks for the "help".  I'm an EE, not a .Net programmer. 


What does that have to do with anything? Many if not most of the people here are EEs.

0 Kudos
Message 4 of 4
(5,151 Views)