LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to read in an ascii file and output it onto a waveform graph...

Can you also briefly explain why is there an extra 0, 0? Is because you have to format the numbers in a way that there is no zero in the array. Thanks again.
0 Kudos
Message 21 of 31
(1,251 Views)
As I said, it's coming from the tab you have on each line after the last data point. The VI will automatically create an entry in the array for each tab whether these is any data there or not. There isn't any data of 0,0 but because of the way arrays work, you have to have something. When it creates an entry for the extra tabs, the array element defaults to 0. And as I said, you will see it in the Read From Spreadsheet, not your data file. What you can see in the data file is the tab after the last number in the row and before the end of line.
0 Kudos
Message 22 of 31
(1,250 Views)
You said that there is an extra xy par of data right. Do you know how they are plotting both of them at the same time?
0 Kudos
Message 23 of 31
(1,248 Views)
That's the way an XY graph works. Look at the array that is created. The last column with real data is 5 and 125. The next column is 0 and 0. You have interpolation turned on for the XY graph so it will draw a line from 5,125 to 0,0.
0 Kudos
Message 24 of 31
(1,244 Views)
Do you know where the extra linear plot is coming from.
0 Kudos
Message 25 of 31
(1,240 Views)
Do you know how I would plot the data without showing up the 0,0 data point?
0 Kudos
Message 26 of 31
(1,239 Views)
Yes, and I told you and showed you how already. Message 17 and the function you need is Delete From Array.
0 Kudos
Message 27 of 31
(1,236 Views)
Sorry to ask you all these questions. I'm working at the research center and my professor is killing me with all these questions and he doesn't believe me that this is true. So, he said thet I'm making this up and tells me that this is all bullshit. That is why I'm trying to prove him wrong and tell him that this is right. He wanted to know how come there was two plots and that where the zero came from and I told him exactly what you tole me and he doesn't believe me. Do you know what should I tell him because it seems to me that this professor is a post doctorate professor and he thinks that I still need to learn this stuff. Het thinks that I don't know how to read a file and plot the data on labview.
0 Kudos
Message 28 of 31
(1,218 Views)

I don't know why you keep asking the same thing over and over. Your professor obviously doesn't understand LabVIEW basics either. The expression the blind leading the blind comes to mind. Have you actually tried putting in the Delete From Array function? There simply aren't two different plots. If you were to simply run the modified example from my earlier response, you would get the waveform shown below. I'm reattaching the modified VI since you don't seem able to go back and download it.



Message Edited by Dennis Knutson on 06-09-2008 08:51 PM
Download All
0 Kudos
Message 29 of 31
(1,210 Views)
I put the delete from array function inside the block diagram and now that I see that there is only one plot. The point after 5,125 draws a line from 5,125 to 0,0. Do you know what does interpolation means? 
0 Kudos
Message 30 of 31
(1,180 Views)