Hi Donald,
Thanks for that info. I'll try that. Maybe version 7 will have enhanced
DLL functionality (fingers crossed).
Cheers
Gunter
-----Original Message-----
From: jmp-l-owner@lists.biostat.wustl.edu
[mailto:jmp-l-owner@lists.biostat.wustl.edu] On Behalf Of chemical_engr
Sent: Friday, September 15, 2006 11:44 PM
To: jmp-l@wubios.wustl.edu
Subject: [jmp-l] DLL question followup - calling complex DLLs in JMP
G:
the 1 param limitation is a REAL limitation - and there is no 'dll'
workaournd, in otherwords - there is no way to construct a DLL
which can get two params with the DLL call from JMP, unless you pass
a string and the DLL decomposes ... but that is still 1 param.
This is a trick - that may work for you - if the DLL can read a text
file once called the params can be passed indirectly.
Further - you can execute a remote system executable using a
publically avail DLL called 'gz'. Check out this link, it is
a third party unsupported util for JMP.
http://www.aracnet.com/~cmorgan/gzdll_driver/help.html
The problem of one param requires either:
1) Wrapper Approach ...
Creating an executable shell or container for your DLL for which you
pass a single param pointer ...
which then passes the pointer to give the list of params for the DLL
execution implicitly in a file or
other data structure outside of JMP.
JMP -> Write complex instructions to text file or other data
structure in Filesystem, call it "a.txt"
JMP -> DLL call to wrapper with single param; a pointer to "a.txt" -
> DLL wrapper calls Exe or another DLL
giving it the param and works the instructions in "a.txt" -> results
can be passed back via a files system result
2) Embedded string approach
Pass single param as a instruction set which is a delimited string
I know this problem well - it is a serious limitation in JMP which
is not improved in the current version ... I dont know
if there are plans to imporve the problem.
Best regards,
Donald Palahnuk
ImClone System
Process Sciences
----- Original Message ----
From: "Gunter.Hartel@csl.com.au" <Gunter.Hartel@csl.com.au>
To: chemical_engr@yahoo.com
Sent: Thursday, September 14, 2006 11:45:49 PM
Subject: RE: [jmp-l] Calling DLLs from JMP
I have some data in NetCDF format that I want to bring into JMP.
There are some libraries available to handle netCDF files and I was
hoping to call them from within JMP to extract data. Right now I
have to use utilities to extract the data to ascii and then read in
the ascii files in JMP and merge them etc. I saw in the guide
though that JMP can only pass a single parameter to the DLL
function, which means most of the existing functions won't work for
me, unless I modify the C code and re-compile a new DLL. Even then
it seems like it could be hard to work around the 1 parameter
limitation. I've used DLL's from within S (predecessor of R) and
that worked great.
What has been you experience?
Thanks
Gunter
---------------------------------------------------------------------
-----------
From: chem engineer [mailto:chemical_engr@yahoo.com]
Sent: Friday, September 15, 2006 1:38 PM
To: Hartel, Gunter AU/PKV
Subject: Re: [jmp-l] Calling DLLs from JMP
i have experience with this ... what are you trying to accomplish ?
----- Original Message ----
From: Emil M Friedman <emilfriedman@optonline.net>
To: jmp-l@lists.biostat.wustl.edu
Sent: Thursday, September 14, 2006 10:02:02 PM
Subject: Re: [jmp-l] Calling DLLs from JMP
I've never done that, but one of the times that I opened JMP today
it proceeded to rapidly open JMP session after JMP session and sent
me a weird message mentioning DLL's. Around the time that I had 34
JMP sessions running simultaneously (no data tables in any of them)
I rebooted. (I'm not asking for an explanation. Everything was
fine after rebooting. I've never seen that behavior before and
hopefully won't see it again.)
--
Emil M Friedman, PhD
Bristol-Myers Squibb Company
Mail Stop 80-2-1A
PO Box 191
New Brunswick , NJ 08903-0191
emil.friedman@bms.com
emilfrie@alumni.princeton.edu
732-227-5608 (office)
216-287-0821 (cell)
http://www.statisticalconsulting.org/
----- Original Message -----
From: Gunter.Hartel@csl.com.au
To: jmp-l@lists.biostat.wustl.edu
Sent: Thursday, September 14, 2006 6:18 PM
Subject: [jmp-l] Calling DLLs from JMP
Dear JMP'ers
Have any of you written JSL that calls a DLL library? If so, could
you share your experience with me? Is there any additional
documentation beyond the scripting guide to help get this to work?
Thanks
Gunter
*********************************************************************
******************************************
This email and any attachments are confidential and may be subject
to legal or other professional privilege. Any confidentiality or
privilege is not waived or lost because this email has been sent to
you by mistake. You should not read, copy, adapt, use or disclose
them or their contents without authorisation. Any personal
information in this email must be handled in accordance with the
Privacy Act 1988 (Cth).
If you are not an intended recipient, please contact us at once by
return email and then delete both messages.
CSL Limited A.C.N. 051 588 348
45 Poplar Road Parkville Victoria 3052 Australia
Phone: +61 3 9389 1911 Fax: +61 3 9389 1434
*********************************************************************
******************************************
*********************************************************************
******************************************
This email and any attachments are confidential and may be subject
to legal or other professional privilege. Any confidentiality or
privilege is not waived or lost because this email has been sent to
you by mistake. You should not read, copy, adapt, use or disclose
them or their contents without authorisation. Any personal
information in this email must be handled in accordance with the
Privacy Act 1988 (Cth).
If you are not an intended recipient, please contact us at once by
return email and then delete both messages.
CSL Limited A.C.N. 051 588 348
45 Poplar Road Parkville Victoria 3052 Australia
Phone: +61 3 9389 1911 Fax: +61 3 9389 1434
*********************************************************************
******************************************
***************************************************************************************************************
This email and any attachments are confidential and may be subject to legal or
other professional privilege. Any confidentiality or privilege is not waived or
lost because this email has been sent to you by mistake. You should not read,
copy, adapt, use or disclose them or their contents without authorisation. Any
personal information in this email must be handled in accordance with the
Privacy Act 1988 (Cth).
If you are not an intended recipient, please contact us at once by return email
and then delete both messages.
CSL Limited A.C.N. 051 588 348
45 Poplar Road Parkville Victoria 3052 Australia
Phone: +61 3 9389 1911 Fax: +61 3 9389 1434
***************************************************************************************************************
|