### ParaMagic Stuck in 'Solution in Progress'

Posted:

**Thu Jul 21, 2016 7:18 am**Hi,

I redid the Orbital tutorial to use MATLAB instead of Mathematica to solve for c, the effective budgets, and the average windows (see the code below). The functions work, but ParaMagic will not write the values back to the SysML model, it just stays stuck in 'Solution in Progress'. Though the plotOrbital function is called successfully, as indicated by the creation of the plot image, the value of 'c' is not written back into the SysML model. Also, 'AverageOutput.txt' doesn't get created either. Can anyone help? Thanks.

---------------------

I redid the Orbital tutorial to use MATLAB instead of Mathematica to solve for c, the effective budgets, and the average windows (see the code below). The functions work, but ParaMagic will not write the values back to the SysML model, it just stays stuck in 'Solution in Progress'. Though the plotOrbital function is called successfully, as indicated by the creation of the plot image, the value of 'c' is not written back into the SysML model. Also, 'AverageOutput.txt' doesn't get created either. Can anyone help? Thanks.

- Code: Select all
`function c = plotOrbital(theta,powerUsage,xmitUsage)`

figure1 = figure; %Create new figure window

axes1 = axes('Parent',figure1); %Create the axes in the figure specified by parent

hold(axes1,'all'); %Retains plots in current axes so new plots don't delete existing plots

c = plot(theta,powerUsage,theta,xmitUsage);

title('Availability')

xlabel('Theta')

ylabel('Power')

saveas(figure1, 'OrbitalPlot.png');

exit

---------------------

- Code: Select all
`function m = Average(list)`

m = mean(list);

save('AverageOutput.txt','m','-ASCII')

exit