LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the slope equation for two points on a line?

I am trying to apply the m=y2-y1/x2-x1 equation into a labview code but having a hard time choosing what m should chose as, labview doesnt eaxctly have algebric constants and i cannot equalize the equation to 0. Any idea's to what function/numeric pallete should m be?

Regards,

Jack

0 Kudos
Message 1 of 4
(3,432 Views)

It isn't clear what you are trying to do.

 

What do you have?

What are you looking for?

 

It seems like you are more concerned about trying to use an equation and looking for "m" on a palette, then explaing the problem you are trying to solve.

0 Kudos
Message 2 of 4
(3,412 Views)

Jack,

 

What information (data) do you have available to your program? What are you trying to find (the unknown)? Two points or slope and intercept? The equations are different for the two situations.

 

I have written programs using both methods.  Usually I do the algebra on paper and then implement the solution with primitves from the Numeric palette.

 

Lynn

0 Kudos
Message 3 of 4
(3,410 Views)

m would be an indicator, x1, y1, x2, y2 would be controls or results from some action done twice, the numeric palette has both divide and subtract functions.

 

However, your question sounds like you have a much more basic problem - you don't know how LabVIEW (notice the spelling, with capitalization) works. If you know how computer languages work, you've got half a leg up, start by working the free tutorials on the web (a couple are at the end of this post, many more can be found by Googling "LabVIEW tutorials). If you don't know how computer languages work, well, maybe the tutorials can do you some good anyway.

 

Good luck, just don't try to skip past the easy stuff, it'll come back to bite you,

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 4 of 4
(3,369 Views)