09-01-2011 11:40 PM
Hi. Please take a look at the VI that I attached below. What I am doing is to retrieve 2 colums of values from my text file and feed it into the polar plot so that it can construct an ellipse. The first problem I am having now is that nothing happens when I start running the VI even when I had specify the text file for it to read on the block diagram. The second problem is that the polar plot does not reflect the plot colour that I have chosen. For example, if I chose red for the plot colour, it still plots in black. Can anyone please tell me what is wrong with my VI?
Thanks.
09-02-2011 01:23 AM - edited 09-02-2011 01:25 AM
We can't run your VI without the text file you are reading.
Why are you doing everything in a loop, especially reading the text file over and over and over? And also doing it at the speed of light since you don't have any kind of wait function in the loop?
The picture in the polar plot shows a line in red as you have it saved.
You have an inner For loop that is only acting one time (N=1) on every iteration of the outer while loop. Once your iteration value i gets to be larger than your array, it is going to just be showing missing data, AKA nothing.
09-02-2011 01:34 AM
Okay so the only problem I have now is to plot an ellipse using the values I retrieve from the Spreadsheet. So what must I do so that whenever the values are retrieve from the spreadsheet, it will be passed from the 2 arrays to the polar plot vi and it will plot the ellipse?
09-02-2011 02:21 AM - edited 09-02-2011 02:29 AM
09-02-2011 03:58 AM
Hey, I am really sorry! I would try not to duplicate threads in future and also specify what I want from the begining. 🙂
09-02-2011 05:00 AM
The test.vi that you provided work wonders! But that is only for 1 graylevel so what if I have 255 graylevels and there are 255 text files to be read? How do I create a loop so that the computer would keep reading the 255 text files and display 255 different ellipses on the polar plot one after another? Would it be possible for the computer to auto select the 255 text files? Or do I have to always specify where are the 255 text files?
09-02-2011 05:43 AM
09-02-2011 06:00 AM
I tried using the List Folder function to read the 2 text files that I currently have but when I run my VI, the List Folder does read the 2 text files in the folder that it is saved in and pass it to an array but the VI only reads the first text file and not the second text file.
09-02-2011 06:03 AM
09-02-2011 06:09 AM
Haha, it represent me! Because I am always not alert enough! Great to have people like you always helping out people like me! Thanks!