math in Labview

Post beginners questions here. Don't be ashamed starting stupid topics.
Ответить
kozhedub
interested
interested
Сообщения: 4
Зарегистрирован: 01 ноя 2010, 14:28
Версия LabVIEW: 2010
Контактная информация:

math in Labview

Сообщение kozhedub »

Hello

i'm new to Labview and have to solve a math problem

4^x+7*x^3=200

200 is a input number and x is the unknow

is there someone that can give me a good clue
Аватара пользователя
mzu2006

Professionalism Tutorials Black
doctor
doctor
Сообщения: 2456
Зарегистрирован: 16 авг 2008, 02:12
Награды: 3
Версия LabVIEW: 7.1 10 11 12
Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
Контактная информация:

Re: math in Labview

Сообщение mzu2006 »

Generally speaking, :labview: is not the best environment for such calculations. I would use Maple or Matlab. Maple (fsolve) gives 2.790614987 as a solution.
However, it is possible. Use find all zeroes of f(x) :vi: from formula palette with the same result:
FindAllZeroes.png
FindAllZeroes.png (2.04 КБ) 7853 просмотра
kozhedub
interested
interested
Сообщения: 4
Зарегистрирован: 01 ноя 2010, 14:28
Версия LabVIEW: 2010
Контактная информация:

Re: math in Labview

Сообщение kozhedub »

Thanx for the fast reply..

I still have a problem with the last line that connect the zero labview shows this error

The type of the source is 1-D array of
double [64-bit real (~15 digit precision)].
The type of the sink is double [64-bit real (~15 digit precision


do you know how to solve this?
Вложения
jammer.png
Аватара пользователя
mzu2006

Professionalism Tutorials Black
doctor
doctor
Сообщения: 2456
Зарегистрирован: 16 авг 2008, 02:12
Награды: 3
Версия LabVIEW: 7.1 10 11 12
Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
Контактная информация:

Re: math in Labview

Сообщение mzu2006 »

make your numeric an array. Or just right click on "Zeroes" terminal and select "create->indicator"
kozhedub
interested
interested
Сообщения: 4
Зарегистрирован: 01 ноя 2010, 14:28
Версия LabVIEW: 2010
Контактная информация:

Re: math in Labview

Сообщение kozhedub »

oh wow it works! thank you
:thank:
kozhedub
interested
interested
Сообщения: 4
Зарегистрирован: 01 ноя 2010, 14:28
Версия LabVIEW: 2010
Контактная информация:

Re: math in Labview

Сообщение kozhedub »

Hello again

is it possible to make the 500 ( see picture) a input?
Вложения
input x.jpg
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: math in Labview

Сообщение Eugen Graf »

Yes, it's possible. Use Format Into String :vi: to build your formula dynamically.
Ответить
  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «For beginners»