LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read in a column of ASCII numbers and merge in a file with 0 to 360 degrees for a polar plot?

Solved!
Go to solution

I have a saved file with 8 columns of ASCII numbers.  I want to format it so that the polar plot input will accept it.  The polar plot expects a 1D array of magnitude AND phase.  Does that mean two numbers with a comma delimiter?  I can't make it work.

 

0 Kudos
Message 1 of 14
(3,885 Views)

Ronster,

 What do these 8 columns of numbers represent? In order to use the polar plot you would need the magnitude and phase (in degrees) for each point. The polar plot input calls for a  1D array of cluster of 2 elements. The first element is a double representing the magnitude and the second element is a double representing the phase.

 

Ctrl+H is your friend.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 2 of 14
(3,878 Views)

Gov,

Thanks for the response.  The saved file is 24 hours of temperature readings from my FieldPoint front end.  I want to plot the data so that my customers who are comforable with seeing the data plotted on circular oven charts are content.  So, I have 360 readings from 8 temperature sensors in eight columns.  I want to strip out one channel (one sensor) and then merge it with a file that contains 0 to 360 in 1 degree increments.

Ron

0 Kudos
Message 3 of 14
(3,871 Views)
Solution
Accepted by topic author Ronster

Ronster,

 There is a good example of using the polar plot. Open the example finder and search for polar. The name of the vi is Polar Plot Demo. You should be able to adapt that to fit your needs. What kind of file did you save these temperature readings in? Can you try to use the Read from spreadsheet file.vi? You would then need to get a seperate column (array) of doubles to feed into the Demo.vi. What version of LabVIEW are you using? Can you upload the file or is it too big? What did you use to write the file when you were recording the temps?

Now Using LabVIEW 2019SP1 and TestStand 2019
Message 4 of 14
(3,858 Views)

GovBob,

The 'read from spreadsheet' appears to work!  I still have to get my information lined up properly, but the input to the polar plot likes it!

Thanks

Ronster

0 Kudos
Message 5 of 14
(3,845 Views)
Then mark GovBob's message as the solution to your question rather than your own thank you message.  If you go to the Options menu to the upper right hand corner of your message first, you'll be able to unmark yours as the solution.
0 Kudos
Message 6 of 14
(3,841 Views)

Ravens Fan,

Sorry, but there is no option to undo my error.  I logged in, clicked on 'Options' and can't find a selection to undo what you speak of.  Can you assist?

 

0 Kudos
Message 7 of 14
(3,800 Views)

 

First, I want to appologize to GovBob.  He supplied the solution, not me.  I can't figure out how to change it, but maybe continuing the thread, I can change it.  GovBob, I have my graph on the polar grid, but for the life of me, I can't find where the vi adds the scale to the right side with the horizontal black lines.  I want to put the graph in small font right up the 90 degree line, since I want the outside edge of the graph free for a time stamp.  If you help me with this, hopefully I can then change the Solved stamp to your reply.

Ronster

0 Kudos
Message 8 of 14
(3,789 Views)

Ronster wrote:

Ravens Fan,

Sorry, but there is no option to undo my error.  I logged in, clicked on 'Options' and can't find a selection to undo what you speak of.  Can you assist?

 


Go to the Options menu of your message.  The one that is currently marked as the solution with the green bar.  There will be an option to Unmark the solution.

0 Kudos
Message 9 of 14
(3,780 Views)

Raven Fan,

You must be running in another world.  The option you speak of does not exist in the menu that comes up when I click on options (the one in green)

0 Kudos
Message 10 of 14
(3,771 Views)