10-31-2006 02:36 PM
11-01-2006 09:58 AM
12-11-2012 08:16 PM
How to save it ?There is no examples!!
12-12-2012 09:49 AM
VisualBasic,
In the current version of Measurement Studio, the example is located at: C:\Users\Public\Documents\National Instruments\MStudioVS2010\DotNET\Examples\UI\WindowsForms\Graph\Printing\vb.
You could also use the ToFile() method of the waveform graph, as mentioned in this other forum thread: http://forums.ni.com/t5/Measurement-Studio-for-NET/saving-graph-as-image/td-p/1115427
Hopefully the example or that ToFile() method will work for you--let us know if you need any more assistance!
12-14-2012 07:25 AM
Thanks!It is great.But how can I save my data as .txt?
12-17-2012 10:46 AM
VisualBasic,
You'll need to format the data and save it as a .txt file. Here's a DeveloperZone article on building a Measurement Studio application that acquires data and logs it to a file--specifically, you'll be interested in the section on Adding Logging Functionality: http://www.ni.com/white-paper/3633/en#toc7
I hope that helps, and let us know if you need any more assistance!
12-19-2012 06:58 AM
Can you show me this in visual Basic.NET ?For example VB2010
I get this error
12-20-2012 03:44 PM
Hey VisualBasic,
Check out the Measurement Studio example found at Examples > DAQmxWithUI > AnalogDataFileProcessor. That code is an example of how to write DAQmx data to a file and also how to read it back and display it.
As for your exception, it sounds like at this point in your code, savedData has not been declared or assigned. Are you sure that you put something in savedData before calling that function?
12-24-2012 03:01 AM
In this example,the data is saved as .adf.How can I save it as .txt?Please help me!!
12-26-2012 04:02 PM
Hi Visual Basic,
Have you looked at the link that Daniel posted above? It specifically describes logging data to a .txt file in Visual Basic.
Writing text files is not unique to Measurement Studio; you can find help on writing text files in Visual Basic on the MSDN website here: http://msdn.microsoft.com/en-us/library/1t4kyezf(v=vs.80).aspx.
As Daniel said, you have to format your data into text that can be written to a text file.
Regards,
Alexandra