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 > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 08-19-2011
Frans Zeng Frans Zeng is offline
Flexsim User
 
Join Date: Apr 2010
Location: Wuhan, China
Posts: 28
Downloads: 16
Uploads: 0
Thanks: 17
Thanked 1 Time in 1 Post
Rep Power: 123
Frans Zeng is on a distinguished road
Default how to get multi-return values of UserCommand?

Hi,all
In my projects, I want that the usercommand have several return values (in other words, the number of output parameters is more than one), but I don't know how to do this?
Do you know? Thanks!
  #2  
Old 08-19-2011
Carsten Seehafer's Avatar
Carsten Seehafer Carsten Seehafer is offline
FlexSim Geek
 
Join Date: Oct 2008
Location: Ritterhude, Deutschland
Posts: 230
Downloads: 45
Uploads: 1
Thanks: 474
Thanked 320 Times in 143 Posts
Rep Power: 379
Carsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud of
Default

Hi Frans,

you can save your return values in a structure (for example global arrays or a self-made node structure) and return only the pointer to this structure.

greetings

Carsten
The Following 5 Users Say Thank You to Carsten Seehafer For This Useful Post:
Sung Kim (08-25-2011)
  #3  
Old 08-19-2011
Frans Zeng Frans Zeng is offline
Flexsim User
 
Join Date: Apr 2010
Location: Wuhan, China
Posts: 28
Downloads: 16
Uploads: 0
Thanks: 17
Thanked 1 Time in 1 Post
Rep Power: 123
Frans Zeng is on a distinguished road
Default thanks

Hi, Carsten, thanks for your answer.


Thread Thread Starter Forum Replies Last Post
Return 0; shafizad Q&A 5 05-05-2011 09:32 AM
Random stream initial values Sucharith Vanguri Q&A 12 03-10-2011 11:52 AM
How to set table values by using GUI Congshi Wang Q&A 6 05-20-2010 12:52 AM
Passing strings into a usercommand Nico Zahn Q&A 6 01-13-2010 11:20 AM
Create a table with random values Michael Hartlieb Q&A 7 08-05-2009 08:09 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.