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?
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.
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?
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?
I think we already discussed how to list files in a folder and read all of them one after the other...
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.
your FOR loop runs only once - guess why!
As it only runs once it will only process the first file in the filename array...