cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Multiple outputs from program

kriley
1-Visitor

Multiple outputs from program

Hello,

I have a question about how I can get multiple out puts from a single program made up of nested loops.

Can I only return a single variable from a program or am I looking at this all wrong. I've attached a sample worksheet in Prime 3.1.

I'm trying to understand how to get dout, rout, eout as well as a1 out of the program.

Thanks,

Ken

ACCEPTED SOLUTION

Accepted Solutions
MJG
18-Opal
18-Opal
(To:kriley)

You can make the program output a matrix with all the variables you desire.  Just make the last line of your program "stack(dout, rout, eout, a1)"

If you want each value as an individual variable, you can also use a matrix of variables to define the program.  Example:

View solution in original post

4 REPLIES 4
MJG
18-Opal
18-Opal
(To:kriley)

You can make the program output a matrix with all the variables you desire.  Just make the last line of your program "stack(dout, rout, eout, a1)"

If you want each value as an individual variable, you can also use a matrix of variables to define the program.  Example:

kriley
1-Visitor
(To:MJG)

Thank you Mark and Richard. This is exactly what I was needing.

RichardJ
19-Tanzanite
(To:kriley)

Since it's Prime 3.1 I can't read your file, but something like this:

kriley
1-Visitor
(To:RichardJ)

Thank you Mark and Richard. This is exactly what I was needing.

Announcements

Top Tags