Message Boards Message Boards

0
|
550 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

What should I do for the Wolfram Engine not to reply all Array data? (#LLU #WSTP)

Posted 6 months ago

I'm trying to create a program that sends an image to the Wolfram Engine. Let the Wolfram Engine do some image processing and return the result to the c++ programm. I'm using the following command to set the variable "test" with image data in an array:

*pStreamObject << LLU::WS::Function("EnterExpressionPacket", 1) << LLU::WS::Function("Short", 2) << LLU::WS::Function("Set", 2) << LLU::WS::Symbol("test") << arrayData << "10";

This is the reply from the Wolfram Engine:

12:09:29: ==== Stack nesting level ===== : 1 NrOfArguments 0
12:09:29: Function  Head : OutputNamePacket Nr. of arguments : 1
12:09:29: ==== Stack nesting level ===== : 2 NrOfArguments 1
12:09:29:  String : Out[1]//Short= 
12:09:29: ==== Stack nesting level ===== : 1
12:09:29: ==== Stack nesting level ===== : 0
12:09:29: ==== Stack nesting level ===== : 1 NrOfArguments 0
12:09:29: Function  Head : ReturnExpressionPacket Nr. of arguments : 1
12:09:29: ==== Stack nesting level ===== : 2 NrOfArguments 1
12:09:29: Function  Head : Short Nr. of arguments : 2
12:09:29: ==== Stack nesting level ===== : 3 NrOfArguments 2
12:09:29: Function  Head : Automatic Nr. of arguments : 3
12:09:29: ==== Stack nesting level ===== : 4 NrOfArguments 3
12:09:29: Function  Head : List Nr. of arguments : 3
12:09:29: ==== Stack nesting level ===== : 5 NrOfArguments 3
12:09:29:  Integer : 88
12:09:29:  Integer : 88
12:09:29:  Integer : 88
12:09:29: ==== Stack nesting level ===== : 4
12:09:29: Function  Head : List Nr. of arguments : 3
12:09:29: ==== Stack nesting level ===== : 5 NrOfArguments 3
12:09:29:  Integer : 89
12:09:29:  Integer : 87
12:09:29:  Integer : 86
12:09:29: ==== Stack nesting level ===== : 4
12:09:29: Function  Head : List Nr. of arguments : 3
12:09:29: ==== Stack nesting level ===== : 5 NrOfArguments 3
12:09:29:  Integer : 86
12:09:29:  Integer : 85
12:09:29:  Integer : 83
12:09:29: ==== Stack nesting level ===== : 4
12:09:29: ==== Stack nesting level ===== : 3
12:09:29:  String : 10
12:09:29: ==== Stack nesting level ===== : 2
12:09:29: ==== Stack nesting level ===== : 1
12:09:29: ==== Stack nesting level ===== : 0
12:09:29: ==== Stack nesting level ===== : 1 NrOfArguments 0
12:09:29: Function  Head : InputNamePacket Nr. of arguments : 1
12:09:29: Total was: 1
12:09:29: ==== Stack nesting level ===== : 2 NrOfArguments 1
12:09:29:  String : In[2]:= 
12:09:29: ==== Stack nesting level ===== : 1
12:09:29: ==== Stack nesting level ===== : 0
As you can see in the output all arraydata is returned despite the use of the short function.

What should I do for the Wolfram Engine NOT to reply all Array data ?

POSTED BY: Bart R.
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