From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-01-2012 10:30 AM
I am trying to get an idea of how to plan out a program that I am trying to write. Attached is an example of the ASCII file that is saved from one of the channels on the oscilloscope for my instrument. In labview 7, I am looking to get this program to find the maximum value and the time that it occurs. I was leaning toward converting to a waveform and from there be able to get the said x and y values, but I am not sure if that is the best way or not. A couple pointers would be appreciated.
02-01-2012 11:14 AM
What are the columns in your text file? Have you written any code yet?
Making a lot of guesses here given the lack of detail, but I think I'd use "Read from Spreadsheet File" and "Array Max & Min."
02-01-2012 11:45 AM
This is photomultiplier tube response for a pulsed laser instrument. The x-axis is time scale and the y-axis is PMT response. I have not done any programming yet I wasn't really sure the best way to go about programming it so I was just looking for the best direction and go from there. I am still trying to learn the programming better and I don't really want someone to write code for me, just kind of guide me.
02-01-2012 11:59 AM
So it looks like the first column is microseconds before and after trigger and the second column is millivolts. It looks like a double exponential waveform. Spreadshhet File to Array should work if all you're looking for is max voltage and its time reference. You need to smooth this curve because there are a lot of the max value and I think if you just look for the first maximum and take the time of that occurance you'll be too soon. The 'scope doesn't have enough bandwidth and/or sampling rate to capture this fast of an event. You need a better 'scope.