02-19-2007 10:08 AM
02-19-2007 10:36 AM - edited 02-19-2007 10:36 AM
You would need two separate Read From Spreadsheet functions but if you are using the Curve Fitting Express VI, then you need to convert the x and y data to a dynamic data type. You do this and wire to the Signals and Locations inputs. Instead, you can use the lower level curve fittings functions (i.e. Linear Fit) which accept separate x and y arrays as inputs.
Message Edited by Dennis Knutson on 02-19-2007 09:37 AM
02-20-2007 03:37 AM
02-20-2007 04:12 AM
02-20-2007 08:53 AM
The 'time' and 'Amplitude' on a graph are just labels. Double click on the text to change it. You can also go to the graph's properties and the Scales tab to change the Name.
I apologize - I only showed part of the process. If you use the low level functions (top part in my example) this only returns an x array. To plot the new curve with the original x, just bundle them together and wire to an XY graph. You can also overlay the original XY plot. I haven't used the express function but you can take the output of the express curve fitting and wire that to the Y input of the express XY graph and the x input would be the same that you wired to the locations input.
If you don't want to keep being prompted for file names, just create a constant. On the diagram and on the path input, right click and select 'Create>Constant'. You could also have a front panel control with the paths defined. Right click on a control and select Data Operations>Make Current Value Default. After you do this, you have to save the VI.