ATTENTIONThis 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 |
|
Downloads |
Tips and Tricks Share helpful modeling ideas |
#1
|
||||
|
||||
Convert process "ticks" to a dollar value and display
Hello,
It's been quite some time from my last post. But I was wondering if someone might have a pointer for me on how I might convert a process time interval (tick) into a dollar value and display it in the recorder or visual display. This is a snipit of code I was thinking of using --snip-- Dim decCost As Decimal Dim i as Integer decCost = 8.76 While (i<500) { Response.Write(decCost.ToString("c")); i++; } --snip-- I *think* this might work but can't for the life of me figure out how to hook it to a visual display. Any thought or suggestions would be very much appreciated. Also we've got Flexsim Ver 4.0 at work But I've been playing with Ver 5.0 at home. Is there any way you folks might be able to upgrade us at work to the new version would be awesome. I'm in love with the new features in Ver 5.0 |
#2
|
|||
|
|||
Just use the time() function in visual tool that is set to display text.
If you want to show the cost/value as a function of an object's time in a state I've attached a model - it uses a simple user command gettimeinstate() and a custom text pickitem on the visual tool. Last edited by Jason Lightfoot; 11-11-2010 at 07:35 AM. |
The Following 2 Users Say Thank You to Jason Lightfoot For This Useful Post: | ||
William Clausen (11-11-2010) |
#3
|
||||
|
||||
Quote:
Last edited by William Clausen; 11-11-2010 at 11:04 AM. |
#4
|
||||
|
||||
To upgrade to version 5, you need to log into the website in the Account section. On the "my licenses" page, there is an Add HASP Licenses button at the top. If you press that button, you can input the User Name and User Code from your version 4 hardware dongle in order to upgrade your license to version 5.
|
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible one object comprised of the function of "combiner" and "separetor"? | Vic Li | Q&A | 1 | 08-19-2008 04:41 AM |
about "no select" and "show parameter window from side bar" | qin tian | Gripes and Goodies | 3 | 03-21-2008 08:10 AM |
Which variable stores "Properties -> General ->Flags -> Protected" information? | KelvinHo | Q&A | 1 | 03-06-2008 06:18 AM |
"Getting Started" and "Tutorial" models for v4.01 | Cliff King | Product Announcements | 0 | 12-10-2007 07:34 PM |