07-23-2018 06:26 AM
Hi,
I know it can be done in Matlab but I would like to know if there is a way/block in Labview to type in a math function to generate a plot? (for example y = sin(x) for x=0 to 6)
Solved! Go to Solution.
07-23-2018 06:36 AM
07-23-2018 11:19 AM - edited 07-23-2018 11:22 AM
You could use a formula node. Use Ramp Pattern or incrementing inside a loop to generate the series of X values to feed into the formula node.
07-23-2018 01:56 PM
@sherzaad wrote:
Hi,
I know it can be done in Matlab but I would like to know if there is a way/block in Labview to type in a math function to generate a plot? (for example y = sin(x) for x=0 to 6)
LabVIEW is not a "visualization" Language (like, say, Matlab, or Mathematica), it is an "Engineering Workbench" (the "EW" of LabVIEW) meant to construct "Virtual Instruments" (more letters of LabVIEW). You certainly can write a VI that will make a particular plot, with particular parameters, but it isn't well suited (though I'm sure it could be done!) to write something that takes in a "typed-in" function and generates a plot.
Bob Schor