Fritz_85 Posted September 7, 2010 Report Share Posted September 7, 2010 Hi everybody, Does anybody know how I can read the X Values from a chart, so I can write the X and Y Values next to each other in a text file ? I would appreciate if somebody could give an advice or an example how to get the X-Values. Thank you in advance! Quote Link to comment
Cat Posted September 8, 2010 Report Share Posted September 8, 2010 Does anybody know how I can read the X Values from a chart, so I can write the X and Y Values next to each other in a text file ? Using the XScale.Range property of the chart will give you the currently displayed range/start val/ etc, you should know your X scale increment value (resolution). If this isn't what you're looking for, why don't you post whatever code you've written already and maybe we can help you more. Quote Link to comment
Tim_S Posted September 8, 2010 Report Share Posted September 8, 2010 Does anybody know how I can read the X Values from a chart, so I can write the X and Y Values next to each other in a text file ? Code always helps when trying to answer questions. Your question can be interpreted different ways. I assume you are trying to get data from a chart control. There isn't a way to get X data from a chart control. Graph controls, yes, but not chart controls. Tim Quote Link to comment
Fritz_85 Posted September 8, 2010 Author Report Share Posted September 8, 2010 Hi guys! Thank you for your reply!!! Yeah you are right. I should have attached a vi. However I didnt have any idea how to realize it at this moment. But later I found a VI that helped me out. I attached it here, in case somebody has the same problem. It doesnt get the X Values from the chart, but it creates a string table with the time values (X-Values) according to each Measurement Value (Y-Value). Maybe you guys can help me with another problem I have. Im gonna post it in the "Labview General" Forum again. Fritz_85 Here is the link to my new post. Its about a problem I have with programming a state machine. http://lavag.org/topic/13051-switch-states-in-a-state-machine-with-buttons/ Thanks in advance! tabelle1.vi 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.