[Scilab-Dev] Scilab matrix of string in shared lib.

Jonathan Blanchard BlanchardJ at ieee.org
Mon May 26 15:07:29 CEST 2008


Thank you.

On Mon, May 26, 2008 at 7:02 AM, Sylvestre Ledru
<sylvestre.ledru at inria.fr> wrote:
> With "char **Output_Matrix"
>
> CreateVarFromPtr( Rhs+1, MATRIX_OF_STRING_DATATYPE, &m1, &n1,
> Output_Matrix );
>
> Example:
> http://viewvc.scilab.org/bin/cgi/viewvc.cgi/trunk/scilab/modules/core/sci_gateway/c/sci_getmd5.c?revision=24032&view=markup
>
> Starts from:
> Output_Matrix = (char**)MALLOC(sizeof(char*)*(mn));
>
> Hope this helps.
>
> S
>
>
> Le mardi 20 mai 2008 à 20:11 -0300, Jonathan Blanchard a écrit :
>> I want to return a list of RFID tag read from a reader. Currently each
>> tag is returned in text form separated by newline characters and then
>> post processed in scilab to separate the string. After this processing
>> each row of a string matrix is a tag. What I would like to do is pass
>> a matrix of string directly.
>>
>> On Tue, May 20, 2008 at 7:30 PM, Sylvestre Ledru
>> <sylvestre.ledru at inria.fr> wrote:
>> >
>> > Le mardi 20 mai 2008 à 09:51 -0300, Jonathan Blanchard a écrit :
>> >> Hum yeas and no. I mean from an external DLL. The function will be
>> >> linked at runtime using Link() and will be called using the long call
>> >> function. BTW I'm currently using Scilab 5 Beta 1.
>> > OK, I understand better now.
>> >
>> >> So I need to return a list of information from the external dll in
>> >> text format. I would like to return a matrix of string with each row
>> >> being one entry. In fact I do not know which function to use. From
>> >> what I've seen using the long call I cannot pass a matrix of string
>> >> directly so I tried just passing its name and then used ReadString or
>> >> GetMatrixptr with no success.
>> > Could you provide a sample of what you are trying to do ?
>> >
>> > Sylvestre
>> >
>> >
>>
>>
>>
>
>



-- 
Jonathan Blanchard
BlanchardJ at ieee.org



More information about the dev mailing list