LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

linspace in labview

Solved!
Go to solution

how to create linspace in labview?

0 Kudos
Message 1 of 8
(3,108 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,105 Views)

yes, if we want to implement linspace function of matlab in labview. 

For example

w=[0:1:100]

0 Kudos
Message 3 of 8
(3,085 Views)
Solution
Accepted by topic author amandeepkaur

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 8
(3,067 Views)

@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.

0 Kudos
Message 5 of 8
(3,043 Views)

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.

0 Kudos
Message 6 of 8
(3,021 Views)

@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?

0 Kudos
Message 7 of 8
(2,995 Views)

yes, it is solved. both the solutions were of great help. i have accepted one as the answer

0 Kudos
Message 8 of 8
(2,985 Views)