![]() |
JRTalk extension for Serf Software and math library |
|||||||||||||
|
The Dynamic Link Library, JRTalk.dll, regulates the communication between Serf Sofware and a program that you may have created in Visual Basic, Media Cybernetics IP+ script or in C. It also gives access to a part of the Serf/XL-Plot math library. When calling one of its functions, the dll launches a Serf Suite program or XLPlot if (and only if) this is required and then executes the function, which may be the creation of columns of data in a spreadsheet or a graph on a drawing sheet.
With the extension, the Basic or C programmer can simulate the selection of menu items in Serf Software Suite programs or XLPlot, create new spreadsheets and drawing sheets and select ranges of spreadsheet cells to manipulate their contents. For example, he could prepare two arrays of floating point numbers in a Visual Basic program and then call the S_XYPlot() function to create a new plot: Declare Function S_XYPlot Lib "JRTalk" Alias "@S_XYPlot$qqspft1spct4" (x As Single, y As Single, ByVal ilen As Integer, ByVal xs As String, ByVal ys As String) As Long Dim x(100) As Single, y(100) As Single ilen = 100 For i = 0 To ilen - 1 x(i) = i y(i) = i * i Next i ret = S_XYPlot(x(0), y(0), ilen, "s", "nM") PostError (ret) Sub PostError(error As Long) If (error >= 0) Then Exit Sub ElseIf (error > -100) Then S_Error (error) Else: MsgBox "DDL error" End If End Sub The math library contains a number of statistical tables and functions, floating point routines such as matrix inversion, LU-decomposition, QR-decomposition, Eigen-decomposition,Fourier transformation, polynomial regression and many functions to manipulate arrays of integer or floating point numbers. |
|||||||||||||
|
||||||||||||||