Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I interface Lookout with Visual Basic?

I've been doing some research and I think the best way to do it would be to utilize the OPC server.  However, I really don't have a good idea of how to do that.  Is there a dll that I need to call and set up to interface with it?  Do I need to set up an OPC server from the VB side?  Any direction would be nice.  Thanks!
0 Kudos
Message 1 of 11
(7,919 Views)
So, in VB, use datasocket to connect the Lookout OPC Server to read/write tags in Lookout.
 
Or, you can directly use datasocket to do communicate between Lookout and VB. Lookout does support datasocket.
 
Maybe DDE is another option. not sure.
Ryan Shi
National Instruments
0 Kudos
Message 2 of 11
(7,906 Views)
I think a light just went on in my head...  Smiley Happy
0 Kudos
Message 3 of 11
(7,898 Views)
Okay, I can't figure out how to create a datasocket in Visual Basic .Net 2008.  I can't figure out how to grab info from the Lookout OPC server.  I'm a little worried I may not figure this one out.
0 Kudos
Message 4 of 11
(7,895 Views)
OPC .Net source code:

http://www.opcfoundation.org/DownloadFile.aspx/NET%20API/OPC%20.NET%20API%201.30%20Readme%203.00.htm?RI=315
Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512
0 Kudos
Message 5 of 11
(7,890 Views)
Unfortunately, I'm not an OPC member.  I was trying to do this at low cost.  I keep running into the wall of the foundation.  Isn't there another way?
0 Kudos
Message 6 of 11
(7,882 Views)
Another:  http://www.kepware.com/Products/KEPServerEX_VB_Install.asp
Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512
0 Kudos
Message 7 of 11
(7,878 Views)
I'm checking that one out right now.  I'll let you know how it goes.  Thank you so much for taking your time to help me.
0 Kudos
Message 8 of 11
(7,875 Views)
Ok, I have to admit, I don't know what to do with this.  I found this on my own yesterday.  It runs an OPC simulator and provides me with some old VB6 code that I can't get to work for me.  Really, I just need to get the code that connects to the National Instruments.LookoutOPCServer and then grabs the value of a single expression.  I've searched high and low and haven't found it.  I'm running out of time to get this project done and I'm thinking I may have to do something along the lines of writing to a csv file and reading in vb from that.  This is a let down because I was sure the Lookout OPC thing was a good tool.  Apparently it's a tool that takes too much effort to utilize.
0 Kudos
Message 9 of 11
(7,870 Views)
I have had no real issues with the Lookout OPC.  You could also try the DDE method
Service: Lookout
Object: Process\Folder\Item

VB6 and VB.Net are slightly different, but is doable.
Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512
0 Kudos
Message 10 of 11
(7,861 Views)