LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Import text tile

Solved!
Go to solution

Dear Sir,

 

Its not like that i am not trying anything here.  I am very new to LabView. I tried in most of the ways but I could not able to fix the problem.

Do I need to have two columns in the text file(i tried like that also).

But I could not able see the graph plotting in the front panel.

 

Attached is the data which i need to be converted into waveform graph.  Please help me out.

 

Thanks

kjd

0 Kudos
Message 11 of 16
(1,317 Views)
Just double click the Read From Spreadsheet File to open the front panel. Now you can run it directly and it will make the debug easier. Your mistake should obvious in a short while.
0 Kudos
Message 12 of 16
(1,277 Views)

Here is your basic program (why do you persist in attaching a picture, instead of attaching code as a VI, or inserting a Snippet, such as this, which is both a Picture and code?).

LabVIEW 2013 bug.png

  1. The Path points to the file you want to read, which consists of a list of (decimal) numbers, one per line.  Note that the first list that you posted used commas as the decimal indicator (which was the hint I was giving you) -- the second list uses a period.
  2. This is the Read from Spreadsheet function.  I suggested that you read the Help file carefully and thoroughly, where you would have discovered how to read numbers written with commas as the decimal delimiter.  But that's not the only (or even more important) problem.  Look very closely at the inputs and outputs of this function!
  3. You use the Delete from Array function here -- why?
  4. You convert the array to Dynamic Data -- again, why?

As Dennis suggested, you should play around with the Read from Spreadsheet function.  Write yourself a little routine with just the Path and Read from Spreadsheet function (elements 1 and 2 from the Snippet), and look at all the outputs.  Do you know how to do that?  Simply wire an indicator to each output.  Do this little experiment, and you should be able to figure out why you really need to know what the LabVIEW functions actually do, and how to use them.

 

Bob Schor

Message 13 of 16
(1,272 Views)

Dear Sir,

 

Thanks for the detailed explanation.

I could able to verify the output as you suggested with the help of indicator.

But, I could not able to see the graph. Do I need to have two columns.

The data which i have are the frequenices from the machine.  Please advise me.

 

Thanks

KJD

 

Download All
0 Kudos
Message 14 of 16
(1,242 Views)
Solution
Accepted by kjd27
As you should be able to plainly see, if you use the first row, you only have one element. Use the all rows and index array to get column 0. Use the transpose button set to true and then the first row will return column 0. The whole idea of running the function itself was for you to look at the data returned and experiment. It doesn't seem like you did either.
0 Kudos
Message 15 of 16
(1,233 Views)

Thanks a lot to both of you. The way you and bob explained me helped me a lot. I could able to get the graph..

 

Thanks for your patience

KJD

0 Kudos
Message 16 of 16
(1,227 Views)