Adept Scientific - English
The world's best software and hardware for research, science and engineering.
flag arrow
clearclear

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Facebook Adept Scientific on Twitter Adept Scientific on YouBube Adept Scientific on LinkedIn


The Next Steps

• Contact the DADiSP Team
• Buy DADiSP Now
• View DADiSP Pricing
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team

Learn More

DADiSP Home
DADiSP Application Builder
Top 10 Features
DADiSP Graph Gallery
DADiSP and ActiveX
DADiSP SPL vs MATLAB
Real World user stories
Online Tutorials
Rave Reviews
System Requirements

Latest Information

What's New in DADiSP
New Functions
Using DADiSP with Excel
Additional Software Modules

Service & Support

Patches & Downloads
DADiSP FAQ's
Search the Knowledge Base
Technical Support request

DADiSP

What's New in DADiSP

A free DADiSP 6.5 upgrade is available for all authorized DADiSP 6.0 B18 products under Gold support.

DADiSP 6.0 B18 products under Standard support are eligible to upgrade at a discounted fee.

If your current build of DADiSP 6.0 is less than B18 or if your major version number of DADiSP is less than 6.0 (prior to DADiSP/2002), please contact us about updating to DADiSP 6.5.

Changes, New Features and Functions

Below is a comprehensive list of significant changes to DADiSP 6.5. New builds are generally released every four to six months and each build typically entails new features and functions as well as bug fixes.

  1. Installation
  2. New Features
  3. New Functions
  4. MATLINK
  5. GUI Enhancements
  6. SPL Debugger
  7. SPL Enhancements
  8. Shapes and Text
  9. ActiveX Enhancements
  10. Configuration
  11. Command Line Arguments

ActiveX Enhancements
REGISTEREVENT Handles Incoming ActiveX Events
REGISTEREVENT assigns an SPL function to execute when an external AciveX event is fired.

Consider the following SPL event handler:



  /* simple event handler */
  MyEvent(argv)
  {
      local i, str = "";

      loop (i = 1..argc)
      {
          str += sprintf("arg%d: %s ", i,
                      caststring(getargv(i)));
      }
      message("MyEvent", str);
  }

The handler can be used to process events from Internet Explorer.


  /* connect to Internet Explorer */
  ie = createobject("internetexplorer.application");

  /* navigate to home page */
  ie.navigate("www.dadisp.com");

  /* show it */
  ie.visible = 1;

  /* establish event handler */
  registerevent(ie, "TitleChange", "MyEvent");

Each time the title displayed by Internet Explorer changes, MyEvent is called and a message box is displayed.

The event can also be specified by an integer event ID. For example:


  registerevent(ie, 0x71, "MyEvent");

UNREGISTEREVENT removes and SPL event handler.

FIREEVENT and RAISEEVENT Fire Outgoing ActiveX Events
FIREEVENT fires an ActiveX event with id numbers 1 through 8. Zero or more arguments can be passed to the event handler. The arguments are passed as a standard automation array of variants suitable for most automation or script languages.

The following is an example of an event handler in VBA.


  Public WithEvents DSP As DADiSPApp

  ''' initialize server
  Sub InitDSP()

      Set DSP = New DADiSPApp
      DSP.Visible = True

  End Sub

  ''' handler for event 3
  Sub DSP_Event03(ParamArray args() As Variant)
      Dim i As Integer
      Dim s As String

      s = ""
      For i = 0 To UBound(args)
          s = s + CStr(args(i))
      Next i

      MsgBox s, vbOKOnly, "Event 3 Fired"

  End Sub

To properly setup the event handler, add a Reference to the DADiSP Type Library.

In DADiSP, executing the statement:


  fireevent(3)

causes the DSP_Event03 VBA code to execute and display a message box.

The statement:


  fireevent(3, "test", 2.5)

causes the DSP_Event03 VBA code to execute and display the text:

test 2.5

RAISEEVENT uses id number 9 through 16 and provides the optional arguments as a SafeArray of variants suitable for .NET languages.

GETCONTROL Returns the Current ActiveX Object
An SPL event handler can retrieve the handle to the calling ActiveX control or server with GETCONTROL.

Consider the following SPL event handler:


  /* simple event handler */
  MyEvent(argv)
  {
      local i, str = "";

      loop (i = 1..argc)
      {
          str += sprintf("arg%d: %s ", i,
                      caststring(getargv(i)));
      }

      /* get calling ActiveX object */
      ctrl = getcontrol();

      /* display status text and title */
      message(ctrl.StatusText, str);
  }

The handler can be used to process events from Internet Explorer.


    /* connect to Internet Explorer */
    ie = createobject("internetexplorer.application");

    /* navigate to home page */
    ie.navigate("www.dadisp.com");

    /* show it */
    ie.visible = 1;

    /* establish event handler */
    registerevent(ie, "TitleChange", "MyEvent");

Each time the title displayed by Internet Explorer changes, MyEvent is called and a message box is displayed. The message box displays the status line text and the current title of the displayed web page.

Calculate Method
Calculate accepts a variable number of arguments from an ActiveX client.

Visual Basic Example:


  Dim DADiSP as Object
  Dim val as Variant

  ''' Connect to DADiSP
  Set DADiSP = CreateObject("dadisp.application")

  ''' Create a 2 Window Worksheet without prompting
  Call DADiSP.Execute("Newworksheet(2, 0)")

  ''' Generate 10x3 random array, return result as a variant
  val = DADiSP.Calculate("rand", 10, 3)

Starts DADiSP as an ActiveX Automation server, creates a 2 Window Worksheet, returns a 10x3 random array by processing the input arguments.

The placement of the arguments can be specified with the $ character.

Visual Basic Example:


  Dim DADiSP as Object

  ''' Connect to DADiSP
  Set DADiSP = CreateObject("dadisp.application")

  ''' Create a 2 Window Worksheet without prompting
  Call DADiSP.Execute("Newworksheet(2, 0)")

  ''' Generate a scaled 100 point random series with formula
  Call DADiSP.Calculate("W1 := gnorm($1, 1)*$2", 100, 10)

Starts DADiSP as an ActiveX Automation server, creates a 2 Window Worksheet and places a 100 point random series in W1 scaled by 10 with a formula. The positions of the input arguments are specified by the placeholder variables $1 and $2.



Ready to buy?

Upgrade to the latest version of DADiSP from v2002/v6
Add to shopping basket
£ 575.00
Upgrade to the latest version of DADiSP from v5
Add to shopping basket
£ 750.00
Upgrade to the latest version of DADiSP from v4.1
Add to shopping basket
£ 895.00
DADiSP for Windows 7/9x/2000/NT/XP/Vista
Add to shopping basket
£ 1,640.00
Click here for more upgrade options.

Featured Downloads

DADiSP 6.5 - Browser & 15-Day Licence for MS Windows 9x 2000 NT XP Vista
DADiSP Industry Application Packs
DADiSP Brochure
DADiSP Getting Started Tutorial

Product Reviews

"DADiSP makes it possible for an engineer to hit the button to turn the program on at the end of the day, walk out of here, then come in the morning and find the work all done."
Rich Bond, Ford Heavy Truck

"DADiSP makes this kind of analysis very easy to do, so that I only have to worry about the science, not the programming."
Dr. Dan Davison, University of Houston

Latest News

Combined vector, FFT and matrix accelerator plug-in module delivers increased performance for data analysis applications
New vector maths acceleration module from DSP
New dialogue import module from DSP
DADiSP/WAV – Wav Audio module updated
DADiSP 6.5
adept

Top of the Page

Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2013, Adept Scientific Ltd.
Site designed and maintained by Lyndon Ash

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055