Академический Документы
Профессиональный Документы
Культура Документы
home
articles
quick answers
discussions
Sign in
features
community
Article
Browse Code
Stats
Revisions (11)
Alternatives
Comments &
Discussions (68)
help
Next
About Article
3.33 (6 votes)
Type
18 Aug 2010
Views
This article is born out of several projects I have had extending Wonderware by calling VB.NET applications.
Wonderware is an HMI/SCADA front end made by Wonderware. Wonderware is fairly easy to use, although I am
not a huge fan of it, I don't have much against it either. It is just a common program in the SCADA industry. This will
show you how to write applications that communicate with Wonderware. I usually have to do this to extend the
functionality or to fill in the gaps between what Wonderware can do and what the customer requires.
GPL3
First Posted
Introduction
Article
Licence
46,360
Downloads
736
Bookmarked
17 times
VB .NET Dev
Intermediate VB.NET , +
Background
I write HMI/SCADA software mostly for the oil and gas industry. In this industry, many companies use a product called
Wonderware. I have also come across it in waste water plants as well as food processing plants (Cheese Cake to be
exact!!!). At most of these facilities, they need a function in the Wonderware application, but Wonderware can't do it.
This will give you another option. I have seen other options using DDE. However, DDE is no longer supported so we
will be using the Wonderware Toolkit. This code will contact the Wonderware running on the same computer.
Pbi CasFr1
ulc ls om
DmacdA Itgr
i ci s nee
DmhtA Itgr
i P s nee
DmS A Srn
i B s tig
DmItuholi A Ituh
i nocTokt s noc
'----------------------------------------------'om_od
Fr1La
'----------------------------------------------PiaeSbFr1La(ya sne A Sse.bet _
rvt u om_odBVl edr s ytmOjc,
www.codeproject.com/Articles/102533/Using-NET-with-Wonderware
1/4
5/30/13
Ituholi =NwItuh0 0
nocTokt
e noc(, )
S =Ituholi.edtig"Bfe" 12 'Bfe i teTg
B
nocToktRaSrn(Sufr, 3) Sufr s h a
' wn t ra i Wnewr
I at o ed n odrae
EdSb
n u
PiaeSbbnpnCikBVlsne A Sse.bet _
rvt u tOe_lc(ya edr s ytmOjc,
BVleA Sse.vnAg)HnlsbnpnCik
ya
s ytmEetrs ade tOe.lc
Ituholi =NwItuh0 0
nocTokt
e noc(, )
Ituholi.rtDsrt(SmTg,1
nocToktWieicee"oea" )
EdSb
n u
EdCas
n ls
Top News
Ituholi.rtSrn(SmTg,"oBr)
nocToktWietig"oea" Foa"
Related Videos
Ituholi.rtFot"oea" 311)
nocToktWiela(SmTg, .45
Ituholi.rtItgr"oea" 1)
nocToktWienee(SmTg, 0
The
Mobile Development
Landscape
Ituholi.rtDsrt(SmTg,1
nocToktWieicee"oea" )
Ituholi.edtig"oea"
nocToktRaSrn(SmTg)
Related Articles
Collapse | Copy Code
Ituholi.edla(SmTg)
nocToktRaFot"oea"
Ituholi.ednee(SmTg)
nocToktRaItgr"oea"
Ituholi.edicee"oea"
nocToktRaDsrt(SmTg)
Points of Interest
As you can see, this is pretty simple. I have used this code several times on Wonderware 7.1 to 10.0. I usually put in
some code that starts my application when an icon in Wonderware is clicked. This is the reason why I get the x and y
values from Wonderware. It took me about a week with Wonderware support to find this information, and they do
not support the Wonderware toolkit, but it has been reliable for me.
History
Well, this is the initial version.
License
www.codeproject.com/Articles/102533/Using-NET-with-Wonderware
2/4
5/30/13
License
This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)
Article Top
Like
Tw eet
Excellent
Vote
Noise Medium
Go
Per page 10
Update
need help
Member 9993496
do you know about .sdf files? sdf is a sql database for mobile devices (sql compact version)
i am going to make a sdf viewer but i dont know where to start.
can you help me?
i need to make a sdf viewer application using vb.net (window-based)
Sign In View Thread Permalink
Member 8637012
5.00/5 (1 vote)
Member 8637012
BTW when i try to reference this dll files, does it need to be located in my project bin folder or in programfile
folder? my windowviewer needs to be running while i try to add refrence?
www.codeproject.com/Articles/102533/Using-NET-with-Wonderware
3/4
5/30/13
2.00/5 (1 vote)
Member 8637012
Are you using this dll file in visual studio 08 or 10? i guess u might be using this in older vb version.
Sign In View Thread Permalink
I originally wrote this for VS.NET 08, you need to go to references and add the dlls you need.
Sign In View Thread Permalink
Member 8637012
error:Please make sure that the file is accessible, and that it is a valid assembly or COM component
i did put this files in my project folder.
do you remember what version of intouch you were using also what version of .net framework you
used.
Sign In View Thread Permalink
Member 8637012
i have both dll files in their location but i am not sure i have toolkit install or not. my question
would be do i need that toolkit in order to run the application.
please reply i want this to work.
Sign In View Thread Permalink
The toolkit is on a disc that comes with WW and Archestra. As long as you have WWHeap.dll
and PTACC.dll you are good. Have you referenceed the dlls in Visual studio?
Sign In View Thread Permalink
Member 8637012
As I said earlier when i try to reference there dll files it gives me error
error:Please make sure that the file is accessible, and that it is a valid assembly or COM
component
now i am guessing these files are not compatible with vs 10, do you know any other way i
can reference them into my application.
Sign In View Thread Permalink
News
Question
www.codeproject.com/Articles/102533/Using-NET-with-Wonderware
Refresh
Bug
Answer
Joke
1 2 3 4 5 6 7 Next
Rant
Admin
Article Copyright 2010 by earl the dead cat
Everything else Copyright CodeProject, 1999-2013
Terms of Use
4/4