LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

About Reading data and save data

How I can read Signal data from One file and apply filter with each Imaging plot and finally save format into current file?

0 Kudos
Message 1 of 8
(2,713 Views)

Heeee... what?

Give more information on what you really want to do.

What file format are you talking about and what do you want to do with the graph data.

Benoit

0 Kudos
Message 2 of 8
(2,674 Views)

The attached file is the format of Data File. My work is (i) Read Signal data (in attach file where Y1.....Yn) from this format of file (attached file).

This Y1,Y2........ Yn are actually THz amplitude data which we can get from Optical to Electrical signal conversion through A/D converter and Lock -in-Amplifier...  I need to make array of this series of data.. X-axis and Y-axis actually indicate the positions of laser pointer in two-dimensional axes, with position changing the value changing (Indicate in the attach file like 0,1,2,3 for axis , value for Y-axis 0,0,0,0 respectively like this way) ..

 

to -initial time and dt- time Interval for each position changing (Attach file)...

 

 

My second work is (ii) After reading data of said format of file, apply Low-pass filter (Which I attached in the first question) with each Imaging Plot (with each position of laser pointer changing, each Imaging is established)..

 

And my final task is (iii) Save the said format of file into the current file..

 

 

How I can do this in LAbview.. Thank you for your so quick reply 

0 Kudos
Message 3 of 8
(2,670 Views)

I assume you already have some LabVIEW (note -- there is no such thing as LAbview) code, as you seem to be illustrating (with a picture of a hand-drawn data structure) something that looks like an array of LabVIEW Waveforms.

 

One thing that is very helpful to understand what you are trying to do is to post your LabVIEW code.  Once we see the code, you can explain things in terms of explaining the array of waveforms in terms of multiple runs, varying the position of a laser pointer in two dimensions (we should be able to see this in the code).

 

You mention an "Imaging Plot" -- what is this?  Is this a plot of one waveform as a function of time, or a 3-d plot of intensity (at some fixed time) as a function of X and Y?

 

You say you want to save the output "into the current file" -- do you want to add it to the end of the file, overwrite the file, write a second "Filtered" file?

 

Bob Schor

0 Kudos
Message 4 of 8
(2,658 Views)

Please check the Labview program where I am working on it according to above description. But I think my thinking is going 100% or according to my previous description. 

 

I am looking forward to hear from you, Bob and thank you for your so quick reply

0 Kudos
Message 5 of 8
(2,639 Views)

As i understand you never used LabVIEW.

I suggest you to start reading some beginner LabVIEW books and do some trial on smaller things.

What you are trying to do is very basic stuff. it looks like it's your school project.

Benoit

0 Kudos
Message 6 of 8
(2,634 Views)

Your code makes little sense, and certainly does not seem consistent with the confusing picture you posted.

 

Here is a suggestion:

  1. Write a program that (a) reads your data file, (b) displays it (all) in an Indicator so you can see it and verify that all the pieces you show in the picture are visible in the Indicator, (c) write it out to a second file, (d) read back that second file, and (e) verify that you get exactly the same data from both files.
  2. If the data in your files are, in fact, similar to the format suggested by your picture (namely a 1D array of Waveform data that are partially "flattened" from a 2D array of Waveforms), figure out how to read your data and structure it as what it appears (from your picture) to be -- a 2D Array of Waveform.
  3. If you need to come back to us with more questions, include a Data File so we can "see for ourselves" what you are trying to read/write.

Bob Schor

0 Kudos
Message 7 of 8
(2,604 Views)

Thank you Mr. Bob for your clear instruction with cool headed reply, not losing patience even though my condition looks very bad. I am going to improve my basic to do it. Whenever I shall finish it, I shall return back with my project file according to your instruction.  

0 Kudos
Message 8 of 8
(2,591 Views)