09-10-2020 04:22 AM
how to create linspace in labview?
Solved! Go to Solution.
09-10-2020 04:28 AM
Hi amandeepkaur,
@amandeepkaur wrote:
how to create linspace in labview?
Plain answer: type "linspace" into a text comment…
What exactly are you talking about? Are you talking about a MATLAB function of this name?
When you want something similar use the Ramp function in LabVIEW.
Or a FOR loop with some simple math to scale the loop iterator…
09-10-2020 05:10 AM
yes, if we want to implement linspace function of matlab in labview.
For example
w=[0:1:100]
09-10-2020 06:15 AM - edited 09-10-2020 06:25 AM
Hi amandeepkaur,
as I said before: use the Ramp function!
What have you tried so far and where did you fail?
What's your problem to read the help for the Ramp function?
09-10-2020 11:00 AM
@amandeepkaur wrote:
yes, if we want to implement linspace function of matlab in labview.
For example
w=[0:1:100]
As Gerd already said, Ramp pattern will do what you want. (It even has additional options)
Of course if you want to write your own (i.e. implement) the function as a learning experience, feel free to try! All you probably needs is a FOR loop and a few simple calculations. If you get stuck, come back an ask for help.
09-11-2020 12:26 AM
thank you so much!!
I think it would be of great help.
i havent used anything yet.
I didnt get the answer in the first time. With diagram, it is more clear.
A very thank you again. I think it will be of great help.
09-11-2020 11:45 AM
@amandeepkaur wrote:
thank you so much!!
I think it would be of great help.
i havent used anything yet.
I didnt get the answer in the first time. With diagram, it is more clear.
A very thank you again. I think it will be of great help.
It is not clear which post you are replying to. So is your problem solved or not?
09-12-2020 04:17 AM