Hi,
First of all, if you have to send ASCII characters to your Serial port from
BridgeVIEW, you don't need to use Lookout's ASCII Object. BridgeVIEW has
Serial VIs which can be used directly. And if you want to manage them as
Tags with the rest of your system, you can use Memory Tags. These VIs can
be found in the Functions Pallette >> Instrument I/O >> Serial.
If you still want to use Lookout's ASCII Object as an OPC driver, you're
doing everything correct except the step 15. Here, you need RQV2.txt and
not RQV1.txt. This is has been clearly explained in the original KB article.
Please refer the KB article# 1R18NERM again. In the Request format, by
specifying %d%s, you're saying you'll be sending a number and a string.
But you do not connect anything to RQV2.txt and hence the "Not enough data
to send the command" alarm.
Hope this helps. Again, you may want to use Serial VIs directly within BridgeVIEW
for ASCII communication.
Regards,
Khalid
------------------------------------
"Chandana" wrote:
Use of BridgeView and the ASCII Objects in Lookout OPC Server to Send/Receive>Data
to the Serial Port
Product Used: BridgeView>(Version): 2.11 and
Product Used: Lookout Protocol Drivers OPC server
(Version): 4
Problem: As first part of our work, we need to use Lookout OPC server to
communicate with the serial port. We need to:
Write and read from a serial port using a BridgeView VI which connected to>Lookout
OPC ASCII object.
Testing procedure :
The steps followed in doing this are given below. The testing procedure>is
extracted form the NI technical support site. �Knoledgebase-1R18NERM �>How
can I Use ASCII Objects in Lookout to Send Data to the Serial Port �
1. Using Hyperterminal communicated is established using the port with a
remote PC (to test the COM1 port)
2. A serial cable was connected to the COM1. 3. In the other end of the cable
pins 2 and 3 were jumped.
4. Open Lookout protocol drivers version 4 Object ->Create-> ASCII.
5. The default settings are used
6. Placed a check in the "Monitor Serial Port" box.
7. Save the object *.lpd file
8. Opened Bridgeview
9. Created New VI and attached it to ascii object we created using HMI-G-Wizard
10. The VI file sample.VI is attached herewith.
11. The following settings were used
12. ResponseFormat = "%d%s"
13. RequestFormat = �%d%s�
14. Run VI
15. Type suitable values for RQV1= and RQV1.txt =
16. Enable �send� pushbutton
I AM GETTING AN ERROR STATING NOT ENOUGH DATA TO SEND A VALID FRAME CAN YOU
EXPLAIN WHAT DOES THIS MEANS.
Please specify the method adapted to test the ascii object is ok. If not
specify a testing criteria I need to adapt.