frentzen Posted May 30, 2007 Report Share Posted May 30, 2007 Hi, this vi puts the data from an exel file to a table. how can i display the data in a graph? it would be great, if somebody can help. thanks for your support. Thomas Quote Link to comment
Karissap Posted May 31, 2007 Report Share Posted May 31, 2007 I'm not sure about the format of data in your table so can't give you an exact solution but basically you need to convert the table of strings to numbers using the sting/number convesion or scan from string. If the graph contains x axis data and y axis data you can use the xy graph indicator. This indicator can be used different ways but basically you need a cluster of arrays or arrays of clusters of xy data. For example if the first column was X data and the second column was y data the output of the block diagram could look like this: http://forums.lavag.org/index.php?act=attach&type=post&id=5958 If there were more datasets in the table you could use an array of clusters etc. If you're interested in making a graph in the excel file instead of the front panel you could use a macro (Check out the Excel Macro Example.vi in the NI Example Finder). Quote Link to comment
frentzen Posted May 31, 2007 Author Report Share Posted May 31, 2007 Hi, thanks a lot for your support. The file is a .csv format (is not possible to uppload). I really could not find the icon where you set the parameter 0 and 1. I looked through the menue and the help function. I also did not find an icon equal to that. Thanks again. Quote Link to comment
Ton Plomp Posted May 31, 2007 Report Share Posted May 31, 2007 QUOTE(frentzen @ May 30 2007, 02:13 PM) I really could not find the icon where you set the parameter 0 and 1. I looked through the menue and the help function. That is 'index array': That adapts to the number of dimensions. Ton 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.