star Posted February 27, 2009 Report Share Posted February 27, 2009 Hi all, I was wondering how I could make a line graph in LabView. For example plotting numbers (83, 37,-27, 73,-21,-32.............). Quote Link to comment
star Posted February 28, 2009 Author Report Share Posted February 28, 2009 The reason why I want to make a graph is because I am reading some values for a text file and then place the values on the graph. The x-axis is the number of items in the file and y-axis are the values. I made a code that reads from a text file and I have attached it below. Quote Link to comment
TobyD Posted February 28, 2009 Report Share Posted February 28, 2009 QUOTE (star @ Feb 27 2009, 04:32 AM) The reason why I want to make a graph is because I am reading some values for a text file and then place the values on the graph. The x-axis is the number of items in the file and y-axis are the values. I made a code that reads from a text file and I have attached it below. We don't know what your output string looks like, but essentially you need to convert your data to an array of numbers and pass that into your graph. Because your x-axis is just a count of data points you'll be better off using a waveform graph instead of an XY Graph. Look at the help for graphs for more info. Quote Link to comment
star Posted February 28, 2009 Author Report Share Posted February 28, 2009 QUOTE (TobyD @ Feb 27 2009, 03:13 PM) We don't know what your output string looks like, but essentially you need to convert your data to an array of numbers and pass that into your graph. Because your x-axis is just a count of data points you'll be better off using a waveform graph instead of an XY Graph. Look at the help for graphs for more info. Now you can see what my output string looks like and i look at some waveform graph instead of an XY Graph and i still couldn't do it. Thanks for your reply Quote Link to comment
TobyD Posted February 28, 2009 Report Share Posted February 28, 2009 QUOTE (star @ Feb 27 2009, 09:25 AM) Now you can see what my output string looks like and i look at some waveform graph instead of an XY Graph and i still couldn't do it.Thanks for your reply Use Spreadsheet String to Array.vi and pass the output to your graph. If you need more help than that, http://www.urbandictionary.com/define.php?term=RTFM' rel='nofollow' target="_blank">RTFM. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.