×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Adams ERROR: A syntax error is in this function expression.

Adams ERROR: A syntax error is in this function expression.

Adams ERROR: A syntax error is in this function expression.

(OP)
hi

i'm defining a state variable in adams/car when I run the Full car test after defining the state variables , 4 of those variables have this error :

OS-environment variable
ADAMS_CONTROLS_WTIME=20
Adams Controls. Sets the total wait time (i.e., until time-out) in start-up to create a pipe for a pipes-based co-simulation or function evaluation when using Adams Controls on Windows.
Controls will test for the pipe every half second and may finish before the end time. Options are integers. Default = 60 (seconds).

OS-environment variable
MSC_USE_FORTRAN_STYLE_RELOAD_MESSAGE_FILE=1
Asol SDK. Enforces Adams Solver (C++) to use the Adams Solver (FORTRAN) message file style when reloading.


command: FILE/COMMAND=Speed_15mph.acf
command:
command: file/model=Speed_15mph

ERROR: A syntax error is in this function expression.
ERROR: Argument : FUNCTION
ERROR: Statement : VARIABLE/295
ERROR: Line number : 8891
ERROR: The function expression indicated contains at least one error.
ERROR: Description : The object referenced by id number does not exist.
ERROR:
ERROR: Function text : "VARVAL([[288]])"
ERROR: (The element at or immediately after the error is
ERROR: enclosed in double brackets '[[' and ']]'.)
ERROR:

ERROR: A syntax error is in this function expression.
ERROR: Argument : FUNCTION
ERROR: Statement : VARIABLE/296
ERROR: Line number : 8895
ERROR: The function expression indicated contains at least one error.
ERROR: Description : The object referenced by id number does not exist.
ERROR:
ERROR: Function text : "VARVAL([[287]])"
ERROR: (The element at or immediately after the error is
ERROR: enclosed in double brackets '[[' and ']]'.)
ERROR:

ERROR: A syntax error is in this function expression.
ERROR: Argument : FUNCTION
ERROR: Statement : VARIABLE/297
ERROR: Line number : 8899
ERROR: The function expression indicated contains at least one error.
ERROR: Description : The object referenced by id number does not exist.
ERROR:
ERROR: Function text : "VARVAL([[290]])"
ERROR: (The element at or immediately after the error is
ERROR: enclosed in double brackets '[[' and ']]'.)
ERROR:

ERROR: A syntax error is in this function expression.
ERROR: Argument : FUNCTION
ERROR: Statement : VARIABLE/298
ERROR: Line number : 8903
ERROR: The function expression indicated contains at least one error.
ERROR: Description : The object referenced by id number does not exist.
ERROR:
ERROR: Function text : "VARVAL([[289]])"
ERROR: (The element at or immediately after the error is
ERROR: enclosed in double brackets '[[' and ']]'.)
ERROR:
ERROR: Errors in the Adams dataset prevent it from being loaded into the database.


---- START: ERROR ----
Attempt to read in model into AMD was unsuccessful

---- END: ERROR ----
command: !
command: !INFO Adams Version: Adams 2016
command: !INFO Adams Build: 2016.0.0-CL426750
command: !INFO Assembly File: <acar_concept>/assemblies.tbl/baja_full_forHIS.asy
command: !INFO Solver Library: C:/MSC~1.SOF/Adams/2016/win64/acar_solver.dll
command: !
command: string/5, string=Speed_15mph.xml


---- START: ERROR ----
This command cannot be processed until a model has been defined.


---- END: ERROR ----
command: preferences/solver=CXX
command: preferences/list,status=on
PREFERENCES:
SIMFAIL = NOSTOPCF
Contact Geometry Library = (not loaded)
Thread Count = 1
Library Search Path = Not Set
Status Message = Off
Solverbias = CXX (C++ Solver)

command: control/routine=abgTire::con901,func=user(901,79,67,73,1,2)
command: control/routine=abgTire::con901,func=user(901,83,68,74,1,4)
command: control/routine=abgTire::con901,func=user(901,88,76,82,1,6)
command: control/routine=abgTire::con901,func=user(901,92,77,83,1,8)
command: output/nosep


---- START: ERROR ----
This command cannot be processed until a model has been defined.


---- END: ERROR ----
command: control/routine=abgVDM::EventInit, function=user(5,1,7,0,2,5,9,15)

Using SmartDriver Template file:
C:\MSC.Software\Adams\2016\win64/.smartdriver.xml

command: control/routine=abgVDM::EventRunAll, function=user(0)
command: !
command: stop


Finished -----
Elapsed time = 0.00s, CPU time = 0.00s, 0.00%
Simulation is complete.


and after this as you see the simulation doesn't even start .


would you please help ?? how can i fix this ??

mind you , these measures that i spoke of that have this error , are labeled "off" in the measure command navigator .... and they are point force ....

thanks

RE: Adams ERROR: A syntax error is in this function expression.

ERROR: Statement : VARIABLE/295
ERROR: Line number : 8891
ERROR: The function expression indicated contains at least one error.
ERROR: Description : The object referenced by id number does not exist.
ERROR:
ERROR: Function text : "VARVAL([[288]])"
ERROR: (The element at or immediately after the error is
ERROR: enclosed in double brackets '[[' and ']]'.)

etc, so what does line 8891 actually look like in your adm file?

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

RE: Adams ERROR: A syntax error is in this function expression.

(OP)
I don't know because I can't find it …. how can I fine that line ???

but this error appears exactly when I define the state variables for the measures I have defined …

this error doesn't even come up when I define measures only … but as soon as I define state variables for the measures I see this error and the simulation doesn't even start

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close