Objectmix
Tags Register Mark Forums Read

labview equation box quadratic equation : labview

This is a discussion on labview equation box quadratic equation within the labview forums in Programming Languages category; Hello to all tge members,   Currently, i'm on my intership and my intern includes programming using LabView 7.1. So, i just got to know this sofware last week. In order to programme, i need to get used to this software and of course, create some programs. I've done an exemple/exercice and i'm having a single error which bugs me so bad! Well, it goes something like this:   I wanted to visualise a graph of an quadratic equation : y=ax˛+bx+c the a,b,c,and x are all variable. when i used the equation box, i entered this equation (y=a*x^2+b*x+c) with 4 inputs(a,b,c,x) and an output(y). ...


Object Mix > Programming Languages > labview > labview equation box quadratic equation

Reply

 

LinkBack Thread Tools
  #1  
Old 04-01-2008, 04:10 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default labview equation box quadratic equation

Hello to all tge members,
 
Currently, i'm on my intership and my intern includes programming using LabView 7.1. So, i just got to know this sofware last week. In order to programme, i need to get used to this software and of course, create some programs. I've done an exemple/exercice and i'm having a single error which bugs me so bad!
Well, it goes something like this:
 
I wanted to visualise a graph of an quadratic equation : y=ax˛+bx+c
the a,b,c,and x are all variable. when i used the equation box, i entered this equation (y=a*x^2+b*x+c) with 4 inputs(a,b,c,x) and an output(y). I linked this box to the icon graph and lastly, i tried to execute it. Unfortunely, it appeared this error " y=a*x^2+b*x+c;#"  and it said, whole type necessary(it's a direct translation from french) something like that.
 
So please do help me please. Thank you in advanced!
 
Dhirah
  #2  
Old 04-01-2008, 04:10 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: labview equation box quadratic equation

Hi Dhirah,you should try "x**2" (standard C syntax!) instead of "x^2":smileywink: You can also transform your formula into y=((a*x)+b)*x+c avoiding power functions.And maybe try to use basic LabView functions instead of formula node right from the beginning, may make things easier later on...Message Edited by GerdW on 04-01-2008 11:01 AM
  #3  
Old 04-01-2008, 04:10 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: labview equation box quadratic equation

Hi Dhirah,
do you use the formula node? If yes x^2 is not possible, use pow(x, 2) instead of it.
Mike
  #4  
Old 04-01-2008, 04:40 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: labview equation box quadratic equation

Hye MikeS81 and GerW,
 
Thank you so much for the help! I'm glad that you guys helped me out! It did work! So, look out for me in the near future, wil be asking lots of questions soon!
 
Dhirah
Reply

Thread Tools



All times are GMT -5. The time now is 08:57 AM.

Managed by Infnx Pvt Ltd.