Using functions in a Custom DLL in RSView

ettikudiappan

Member
Join Date
Apr 2002
Location
Singapore
Posts
131
Hi
I am trying to use a custom built dll in RsView, by using the functions in the dll as if they were functions in RsView itself.

I have used this successfully in Wonderware by converting the dll into a wdf file using the crypt utility. Once the dll and wdf files is copied to the InTouch directory, I can use the functions in dll as if they are functions in Wonderware itself.

Is there any way I can do the same in RsView? The DLL is not an activex control that I can embed in the RsView.
 
I haven't tried it, but VBA does support calls to DLL's. Look up the 'Declare' keyword in VBA Help.

Basically, you declare a function or sub, and the library it is in, at the top of a module, then you can use it.

Public Declare Function "DLL_Scale_Value" Lib "MyTestDLL" as Integer

..
..

Function MySubSomething
Dim High as Integer
Dim Low as Integer
Dim Raw as Integer
Dim Test as Integer

High = 5000
Low = 2000
Raw = 1800

Test = DLL_Scale_Value(High, Low, Raw)


 

Similar Topics

I am working on a project on an s7-1200 with an hmi, but I am looking to remove the HMI and substitute its functionality using the User-Defined...
Replies
2
Views
1,885
Hi, I'm getting a bunch of these warnings when I build the program in Connected Components Workbench. The program is legacy code. The program...
Replies
5
Views
2,291
Hello, I am an apprentice and ee student and I have been trying get a slc 5/03 to report temperature data and system status history at a fixed...
Replies
6
Views
3,454
Hello i have created a function in PLC control in the twincat system. the function has been created using ST while the main program is written in...
Replies
2
Views
2,634
The other day I replied to a thread about calling blocks of code conditionally. Attached is a sample of creating a function block in an FX2N. The...
Replies
0
Views
1,434
Back
Top Bottom