09-26-2012 02:07 AM
In my application I am acquiring waveform data(amplitude and time) from my hardware for a certain duration and storing it in a binary file. At the end of it the user has to input length. Now I want to use this length as my x axis and plot the amplitude data I acquired earlier on y axis. For example, if the user enter length as 10, I want whatever amplitude data I acquired earlier to be plotted from length 0 to 10.
09-26-2012 03:52 AM
Hi
I have the following questions:
1. Is the 'length' information saved in the file, along with the waveform data?
2. Are you reading the from the file and then plotting on the graph or is the data plotted while being written into the file?
3. Is the length in units of time or samples? that is, if length is ten, does it mean 0 to 10 seconds of data or 0 to 10 samples of data?
4. what is the sampling rate for your data?
5. are you writing the waveform data type into the binary file or are you writing a 2D array of amplitude and time information?
6. Could you post your code so that we can understand the requirement better?
09-27-2012 06:09 AM
Hi,
I am attaching a vi with this post.
The flow will be:
1. Acquisition of data for which I already have the attached vi.I am writing the voltage data and time data to a file in my acquisition program.
2. After the acquisition, 'length' information will be entered by the user in meters.
3. then comes evaluation. In evaluation mode, the program is supposed to plot a graph of length against voltage. For example, if the user has entered 10m, and the data acquired is for 30 mins, I want all the amplitudes for that 30 mins on y axis(which are stored in the file) against 0 to 10m on x axis and then store it in to another file.
i am also attachin the supporting vi's
09-28-2012 04:34 AM
and my sampling frequency is 100k. can anyone help?
10-03-2012 04:39 AM
Where are the other two VIs and the Ctl? ie Acquire, Process and MainDataCtl
10-03-2012 05:04 AM - edited 10-03-2012 05:07 AM
Plot your data as a waveform that starts at 0 with an interval of length/(number points-1).
10-03-2012 11:59 AM
could you please send me a 2009 version compatible vi?
thanks
10-04-2012 07:35 AM
Here you are.
10-04-2012 08:24 AM
Thank you very much sir
10-06-2012 10:55 AM
I have this vi. I want to use x axis as my length.
I am attaching the vi as well as a sample file which I am reading in the vi.