Autor Beitrag
Platon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42

WinXP, Windows 7
Delphi 5 Enterprise, Delphi 2005 Architect, Delphi 2007 Prof., Delphi 2010 Prof., Delphi XE2 Prof., Visual C++ 6.0, LabView 7.1, SPS
BeitragVerfasst: Di 29.08.06 08:22 
Hallo,

hab zur Zeit folgendes Problem :
Ich muss 2 oder mehrere Werte miteinander verrechenen.
Der Anwender parametriert mir folgendes :

Formel (string) : a+b+c
Variablen : a -> Kanal 5, b -> Kanal 8, c -> Kanal 2

an den Kanälen kommen kontinuierlich Werte an, welche ich dann auch kontinuierlich verrechnen muss.
Ich suche jetzt vorallem ein Tool, wo ich die Formel als String und die Variablen als Wert (z.B. extended) übergeben kann...und am ende das gewünschte ergebniss rauskommt !?

Ich kann das sicher auch selber programmieren...aber das macht ja arbeit...da die Formel ja nicht nur '+' können muss, sondern auch '*' '/' '-' oder auch '(' ')'

Hat jemand sich damit schonmal beschäftigt ?
freedy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 403
Erhaltene Danke: 1

Winows 7
Delphi XE
BeitragVerfasst: Di 29.08.06 08:29 
Da gibt es doch viele Beispiele zu. Im Prinzip hast du doch einfach nur einen Taschenrechner. Einfach mal googlen ;-)
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 29.08.06 09:00 
Meinst due einen Mathe-Parser?

_________________
Markus Kinzler.
Platon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42

WinXP, Windows 7
Delphi 5 Enterprise, Delphi 2005 Architect, Delphi 2007 Prof., Delphi 2010 Prof., Delphi XE2 Prof., Visual C++ 6.0, LabView 7.1, SPS
BeitragVerfasst: Di 29.08.06 09:50 
So nen Mathe-Parser wäre schön das Richtige !
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 29.08.06 09:53 

_________________
Markus Kinzler.
Platon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42

WinXP, Windows 7
Delphi 5 Enterprise, Delphi 2005 Architect, Delphi 2007 Prof., Delphi 2010 Prof., Delphi XE2 Prof., Visual C++ 6.0, LabView 7.1, SPS
BeitragVerfasst: Di 29.08.06 10:00 
Danke...ich werd es mir angucken... :)

read you