Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom RS232 protocol driver for Lookout

I'm new to the boards and somewhat new to Lookout, but have searched on the subject of creating a custom driver for Lookout.  I have an RS232 device that I want to communicate with but it uses a proprietary protocol which Lookout doesn't have a driver for.  I have the specification for the protocol but I'm not sure how to get my application to communicate with the device using their protocol.  Any help or direction or example on how to create a driver for Lookout would be great! 
0 Kudos
Message 1 of 12
(7,927 Views)

I don't think you can create a customed driver object by yourself.

There are two possible ways.
One is to use OPC Server. If you have a driver that acts as OPC Server, you can use Lookout to connect it.

Another way is to use Ascii object. See the following example. Use Ascii object to send/receive proper characters  through serial port.
http://zone.ni.com/devzone/cda/epd/p/id/3811

Ryan Shi
National Instruments
0 Kudos
Message 2 of 12
(7,889 Views)
Thanks for the response Ryan.  I'm surprised that you aren't able to make your own driver for Lookout.  
 
I'm not familiar with the OPC server.  How would I create an object that would be an OPC server?
 
Will the ASCII driver allow binary communication?  The protocol that I'm working with is not text based. 
 
Any other ideas or directions with Lookout or some other application/method to get me up and running quickly wold be appreciated also.  Thanks again!
0 Kudos
Message 3 of 12
(7,884 Views)

I looked more into the documentation on the ASCII object.  In the format markers help section it mentions a %b format for byte (binary) or %x for hexadecimal.  This seems like it might work for building a string in the proprietary protocol format, but I'm not sure how to enter the string.  Do I use a text box or a set of decimal values?  Anyone have an example using this?

Thanks!

Message Edited by goellnjh on 08-27-2007 11:36 AM

Message Edited by goellnjh on 08-27-2007 11:40 AM

0 Kudos
Message 4 of 12
(7,884 Views)
You can use Lookout Object Development Toolkit to develop your own lookout's object.
Ryan Shi
National Instruments
0 Kudos
Message 5 of 12
(7,818 Views)
Thanks for the information on that.  I might look into using that kit.  Do you have any examples of how to use the %x or %b when sending messages with the ASCII serial object?  Thanks again!
0 Kudos
Message 6 of 12
(7,807 Views)
Ryan:  With the unknown history of Lookout... might not be a great "value".

Look through the developer library, there is an ascii example.

Mike
Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512
0 Kudos
Message 7 of 12
(7,790 Views)
Thanks for the response Mike, but that's where I'm at.  I've checked out the ascii object in the library, but I didn't see an example of using the ascii oject to transmit or receive a binary message.  Please point me to that example if you saw one.  Thanks!
 
0 Kudos
Message 8 of 12
(7,787 Views)

Set the ResponseFormat and RequestFormat correctly?

BTW, I meant to say "future" not "history" of Lookout.

Mike

Message Edited by Mike@DTSI on 09-12-2007 05:00 PM

Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512
0 Kudos
Message 9 of 12
(7,781 Views)

 

Could you please tell me, how can I create an OPC lookout protocol drive for a emerson flow meter?

0 Kudos
Message 10 of 12
(3,578 Views)