suhai Posted May 13, 2015 Report Share Posted May 13, 2015 I have 2 column data represent amplitude and time. My ideas is to read the data from text file and plot it to waveform graph. I have a problem where i cannot plot the whole data to the graph. Can someone check my code. Thank you in advance. ReadFromSpreadsheet1.vi test.txt Quote Link to comment
hooovahh Posted May 13, 2015 Report Share Posted May 13, 2015 You have a couple issues. First when you read the data, all you take is the first column which is time but no amplitude. Then you use a for loop that is doing nothing to your time data, then you graph that time data on a Y axis using a Waveform Graph. To fix this take the X and Y data both as 1D arrays, then bundle them and put it on an XY graph not a Waveform Graph. Open the context help (CTRL+H) and mouse over the controls to see how to use each. Attached is an update that loads the data properly into an XY graph. ReadFromSpreadsheet1 Hooovahh Edit.vi Quote Link to comment
suhai Posted May 14, 2015 Author Report Share Posted May 14, 2015 Thank you... is it possible to filter the signal directly from the output cluster ? or do i have to change the format of data type first..? I am new to Labview and still not quite understand about the data type representation. Thank you. Quote Link to comment
ThomasGutzler Posted May 14, 2015 Report Share Posted May 14, 2015 Explain what you mean by "filter the signal" and which output cluster are you referring to? There is only one cluster on hooovahh's diagram 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.