Message Boards Message Boards

0
|
4998 Views
|
6 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Export gives a cryptic message after I execute it from a .wls

Posted 3 years ago

I have a .wls file and from it I want to export a VectorPlot3D. These are the relevant lines:

lvpiH=VectorPlot3D[Evaluate[mHi3ret[[1]] ],{x,xmin,xmax},{y,ymin,ymax},{z,zmin,zmax},VectorPoints->{10,5,10},AspectRatio->Automatic,AxesLabel->{"x","y","z"},
VectorScale->Automatic,PlotRange->{{-R-a,R+a},{-2.1*b,2.1*b},{-R-c,R+c}} , Axes->True,AxesOrigin->{0,0,0},AxesStyle->{Red,Green,Blue}];//AbsoluteTiming//Print

(* Export out the created VectorPlot3D as a png image file *)
Export["MagneticField",lvpiH],"PNG"];

When I execute the .wls file I get these messages for the above lines:

{65.035015, Null}
janos@MacPro WEwls % 
LinkConnect::linkc: -- Message text not found -- (LinkObject[w2sqx_shm, 3, 1])

It is funny that it comes after the execution already done and I have to hit the <return> button to get back to the prompt. Any good explanation for it and how to avoid it other than Off[]?

Thanks ahead, János

POSTED BY: Janos Lobb
6 Replies
Posted 3 years ago

Hi Mike,

Yes, that was my mistake. Sorry for it. Thanks a lot, János

POSTED BY: Janos Lobb
Posted 3 years ago

János:

It looks like you have 2 "]" but only 1 "[" in your Export statement.

Export["MagneticField",lvpiH],"PNG"];
POSTED BY: Mike Besso
Posted 3 years ago

Hi Janos,

Not sure if this is related to the error message, but there is a syntax error here

Export["MagneticField", lvpiH], "PNG"]

Should be

Export["MagneticField.png", lvpiH]
POSTED BY: Rohit Namjoshi
Posted 3 years ago

Hi Rohit,

According to documentation my format is perfectly legitimate.

Export[dest,expr,"format"]
exports data in the specified format.

Of course yours are too. :-)

Best, János

POSTED BY: Janos Lobb
Posted 3 years ago

János:

I'm trying to reproduce your issue, but there seems to be some missing definitions:

  • mHi3ret
  • R
  • a
  • b
  • c

Please provide these definitions and I'll try again.

Have a great and safe New Years.

POSTED BY: Mike Besso
Posted 3 years ago

Mike,

In the meantime I managed to avoid that problem. My guess is it was a conflict between the Mathematica licence and the Wolfram Engine licence. Being careful about what wolframscript do I launch to execute the .wls file, I do not have that problem any more.

Thanks a lot for your attention, János

POSTED BY: Janos Lobb
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract