Author |
Topic  |
|
AtiLaw
UK
Posts |
Posted - 11/03/2003 : 06:49:55 AM
|
Im trying to think of a way of getting data into Origin Pro 7.5 from another program called Image Pro Plus (Media Cybernetics).
I cant use Excel because more often than not I exceed their maximum object count and crash the thing!
At the moment I have a VB application I "knocked-up" and this can gather all data I need and holds it in arrays. Pushing it into Origin is whats giving me a headache! I know Origin uses a C++ scripting language, and I have looked through the example of ADO'ing access databases, but I really want to cut all MS-Office software out of the equation. Any ideas people?
Thanks, Laurence. |
|
easwar
USA
1965 Posts |
Posted - 11/03/2003 : 09:07:27 AM
|
Hi Laurence,
Origin 7.5, the latest version, has Automation Server support, where other applications such as VB, MS Office etc. can communicate with Origin, sending data back and forth, and sending commands to Origin etc.
More information on this feature can be found at: http://www.originlab.com/index.aspx?s=8&lm=+117&pid=547
You can try this feature by downloading our demo. Origin 7.5 will start shipping soon.
Easwar OriginLab.
|
 |
|
AtiLaw
UK
Posts |
Posted - 11/03/2003 : 10:11:03 AM
|
Thanks, I have already downloaded the demo, and will take a look into the Automated Server.
Thanks, Laurence |
 |
|
AtiLaw
UK
Posts |
Posted - 11/03/2003 : 10:20:00 AM
|
If I uninstall my demo would I be able to re-install it again? Sounds like a daft question but alot of companies make it impossible to re-install once uninstalled!
Im assuming I have to reinstall it to make it a server demo?
Thanks again, Laurence |
 |
|
cpyang
USA
1406 Posts |
Posted - 11/03/2003 : 10:29:50 AM
|
I think you can unstall and install a few times(3 or5) and then it will not allow you to install anymore.
CP
|
 |
|
AtiLaw
UK
Posts |
Posted - 11/03/2003 : 10:33:58 AM
|
Cool. Thanks... here goes! :) |
 |
|
AtiLaw
UK
Posts |
Posted - 11/03/2003 : 10:50:54 AM
|
Is the automation server an option on installation? Having problems finding the feature.
Also, is 7.5 being put up for download on release? Shipping was mentioned before and we currently have postal strikes here at the moment and I have a copy of 7.5 ordered.
Thanks, Laurence |
 |
|
cpyang
USA
1406 Posts |
Posted - 11/03/2003 : 12:55:24 PM
|
There is no special option for Automation Server. After you install the demo, you need to run it once.
You can find some simple examples in Samples\AutomationServer
CP
|
 |
|
hajo_old
Germany
141 Posts |
Posted - 11/03/2003 : 3:20:23 PM
|
hello, Laurence
The Automation server is a good thing you can use out of VB or all other MS programms easyly.
but you mentioned the C/C++ "scripting language" (it is a really compiled c/c++ environment based on classes and public functions you can use out of Origin) and I would suggest one of the following two ways (maybe they are harder than using the Automation Server but in my opinion they are much more stronger and flexible).
1) If you can export the files (maybe the arrays from your VB knocked up app) to ASCII and import them to Origin Worksheets using the newly introduced ImportWizzard (I use it that way also! - Creating an import filter definition for the special ASCII data type and import it with OriginC functionality with great success!)
2) If you know the file format it is possible to write an import filter for your user data and call the code from within OriginC (I also used that for some special ASCII imports, I didn't get done the way I need it using ImportWizzard. You may use it for binary data also!)
By one of that ways you get OriginC code, comiled within Origin you can coll from the Script window or by any user defined function.
So far Hajo
-- -- Dipl.-Ing. Hans-Joerg Koch Siemens VDO, Regensburg
SVDO_Origin1 |
 |
|
AtiLaw
UK
Posts |
Posted - 11/04/2003 : 04:37:38 AM
|
Thanks to both of you, will have a look at them today and Im sure I will be back with more questions!
Thanks again, Laurence |
 |
|
pjantzen
USA
Posts |
Posted - 01/02/2004 : 1:47:21 PM
|
**Commercial interest - I am an Applications Engineer for Media Cybernetics, the company which is responsible for Image Pro Plus** (Hope this isn't a forum no-no!)
Laurence -
You can get your data into Origin 7.5 using ActiveX controls in an Image Pro Plus script. IPP uses a stripped down version of VB as it's scripting language, and has fully implemented OLE interfacing with any compatible program. It appears that some of the basic VB controls are directly available through ActiveX, and that any OriginC code can be executed using _.Execute("function stuff"). If I'm off base here, I'd appreciate a correction. The learning curve is still vertical.
I've recently (yesterday) written a bit of code to dump optical density data to an Origin worksheet (v7.5) for one of our customers. Feel free (anyone) to contact me for the relevant code and some pointers on how to best implement the interface.
Paul Jantzen +1.301.495.3305
Edited by - pjantzen on 01/02/2004 1:49:01 PM |
 |
|
cpyang
USA
1406 Posts |
Posted - 01/03/2004 : 10:54:32 AM
|
Origin's Dialog Builder supports ActiveX vis Origin C's COM support, so the best might be to construct a dialog in Origin C and put Image Pro Plus's ActiveX on this dialog.
CP
|
 |
|
|
Topic  |
|