-
FlexPro
- Auf einen Blick
- Features & Optionen
- Einsatzgebiete
- Alle Vorteile
- Neu in FlexPro 2021
- FlexPro gratis testen
- FlexPro View OEM Freeware
- Kaufberatung
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produkte
- News
- Support
- Unternehmen
- Jobs
- Kontakt
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Bug from function
- Dieses Thema hat 3 Antworten sowie 3 Teilnehmer und wurde zuletzt vor vor 5 Jahren, 7 Monaten von Jean-David ALLIER aktualisiert.
-
AutorBeiträge
-
April 30, 2019 um 11:07 am Uhr #21310Jean-David ALLIERTeilnehmer
Hi
I would like to use a function such as “Absolute()” or “Cos()” in FPScript. But when I run the script I get an error : “The specified function does not exist. Neither a built-in function nor a formula with the specified name could be found”.
Does anyone know how to solve this problem ?
Thanks
April 30, 2019 um 11:59 am Uhr #21311Andreas JerominTeilnehmerHi Jean-David,
I could not encounter any of the described issues with my installation of FlexPro (latest release 11.0.19). I created a sine signal and added a formula with
Absolute(data)
to it for output. It was working just fine.Did you try the auto-completion when typing in the first characters of
Absolute
into a formula and then hitCtrl+Space
for the list of known keywords? Is the desired function in the list?Did you have a look into the defined templates for your project data base? (
File->Organize
under “Tools”) Maybe some user defined template is overriding the definition for Absolute and Cosine function.Here is my example code I used:
Formula “MySignal”:
Dim n = 100 Dim dt = 0.1 Dim freq = 0.25 Dim y, t t = dt * (n, 0, 1) y = 1.0 * cos( 2 * PI * freq * t) Signal(y, t)
Formula “MyAbs”:
Dim _data = MySignal Absolute(_data)
Plotting MySignal and MyAbs as a 2D line plot gave the attached diagram.
Best regards,
Andreas
April 30, 2019 um 12:25 pm Uhr #21312Nicolas FrissungAdministratorHi Jean-David,
Although Andreas’ answer is correct and very useful, I would tend to say that the problem comes more from the FlexPro license used.
Acording to the Online Help, the Absolute function is available in FlexPro View, Standard, Professional, Developer Suite and the Cos function in FlexPro Standard, Professional, Developer Suite.If you use a free licence like FlexPro View OEM, then both of these functions are not available and you will get an error message.
Kind regards,
Nicolas
April 30, 2019 um 2:41 pm Uhr #21364Jean-David ALLIERTeilnehmerIt works and I would like to thank you a lot.
@Andreas : yes I used
Ctrl+Space
et my function was a known keyword. That’s why I didn’t understand the error wich appeared just after.@Nicolas : you were right : I went to control my license in “License Manager” and I found out that it was not well set. So I changed it and now I am able to use functions I have been using for some times.
Thanks a lot to both of you !
Best regards,
JeanDavid
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.