Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

customizing an output file

Hi all
I am writing the peak values of my readings from a SA to a file in Labview , the file format is in (.LV) , I want to customize the file output in a way such that only the peak values of my measurments appears , how can i do that , I am so confused thanks for your help
0 Kudos
Message 1 of 4
(3,310 Views)
maple72,

How are you writing the information to file?  Should that extension be a LVM?  It doesn't sound like you are having problems reading your data or writing it to file, but finding the peak values.  Is this correct?  Regardless of how the data is coming in (string versus numeric) you will be able to find peak values using a Analysis function (if you are using anything other than the Base package of LabVIEW).  One that looks particularly promising is called Waveform Peak Detection.vi.  If you do have the base package, you will have to search the data programmitically for data that falls into a certain range which could represent a peak.  Please repost with more info if this does not help. 

Thanks!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 2 of 4
(3,293 Views)
Hi andy,,
well , may be I was not clear when I was asking my question , I have captured the graph of the SA and  using the option peak I can record the peak value of the signal , I need to do multiple readings so I neeed to write the peak values to a file , which is easy , I need to postprocess these data , when I open this file I see it gives me lots of information else than the peak values , how can make my file show me only the peak values I have  wrote thnaks alot
 
0 Kudos
Message 3 of 4
(3,293 Views)
Ah I think I know what you mean now.  This could pretty easily be taken care by using a different file writing technique.  If you use the Write to LabVIEW Measurement File VI you will get a lot of extra data.  However, if you use something like the Write Characters to File VI you can write only what you would like.  I would recommend taking a look at some example programs which will give you a good idea of how to incorporate file I/O into your program.  If you open the Example Finder (Help >> Find Examples) and then browse for Fundamentals and File Input and Output, you will see many examples.  One that would be useful to you would be Write to Text File.vi. 

Hope this helps!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 4 of 4
(3,280 Views)