ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Flexsim Student Forum
Downloads

Flexsim Student Forum Forum for discussion for Flexsim Students using the Flexsim Textbook.

  #1  
Old 01-17-2013
Touhid Ahmed Touhid Ahmed is offline
Flexsim User
 
Join Date: Oct 2012
Posts: 1
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Touhid Ahmed is on a distinguished road
Default How to write a custom function/method

Hi. I was wondering how to write a custom user function eg. a binary to decimal converter. The function may look like this:

function binaryToDecimalConverter (String binary)
{
do some calculation;
return the decimal value;
}

Also, how to call such custom functions. A help on this topic would be much appreciated.

Anyone willing to help does not have to write the function for me, just the basic syntax is welcomed . Please let me know if any documentation is available on this topic.
  #2  
Old 01-18-2013
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

The manual documents User Commands and syntax, which are also good search terms for this forum.

Tags
custom function, custom method


Thread Thread Starter Forum Replies Last Post
How to write a User Command ? mearjun Flexsim Student Forum 7 12-08-2012 11:44 AM
How to write coding for that? stmyint Container Terminal (CT) Library 5 10-29-2012 08:03 PM
Is there any method to add section to conveyor using flexscript command? harry qin Q&A 6 06-19-2010 11:47 PM
Can I write to the system console? Steven Hamoen Q&A 2 11-26-2008 06:37 AM
improve Connections method qin tian Gripes and Goodies 7 03-26-2008 09:42 AM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.