是德科技
直播中

李舒桀

7年用户 1323经验值
私信 关注
[问答]

vrf OBJECT PROPERTIES

Hello Hugo,如果协议有标头中的字节数(即数据包大小指示符),那么假设标题总是固定的字节数,那么首先要对标准数字进行二进制读取。
头文件的字节然后解析并计算要读取多少字节,然后对该字节数进行二进制读取和Voila'....我们有一个更复杂的协议来处理这里,DF1.Which没有数据包大小指示符
,数据包以转义序列开始,以转义序列结束,因此我们必须一次读取一个字节,并且必须分析每个字节(真正的皇室痛苦 - 但PC今天非常快,所以它
不是很明显).Regards .... Rob“Hugo Renkema”于06/05/2003 06:33:38 AMPlease回应“Hugo Renkema”To:“VEE vrf”cc:Subject:[vrf] No read terminator
符号RS232 communicationHello everyone,这是我在vrf邮件列表中的第一篇文章。
如果没有,我希望我的问题得到很好解释;
随时可以询问更多信息。我正在使用HP-VEE 6.01通过RS232与设备通信
通信发生的协议没有EOL符号。
message-bodydoes包含NoB(字节数),表示themessage的长度。当从PC向此设备发送命令时,这在HP-VEE中不是问题。
设备发回响应时会发生此问题。
此响应也没有EOL符号。
因此,HP-VEE不知道何时收到总消息。这导致响应显示在BUS I / O MONITOR中,但在DIRECT IO组件中没有读命令。这是由于
事实上,必须填写的读取终止符对于每个单独的响应是不同的。问题很简单(并且希望答案也是如此)。
如何读取从COM端口获取的astring,当主题的最后一个字节未知时使用HP-VEE。事先谢谢,Hugo RenkemaEmail:tkip@gastec.nl---您目前订阅的是vrf:ramarquardt @
ra.rockwell.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。
要将邮件发送到此邮件列表,请发送电子邮件至“vrf@it.lists.it.agilent.com”。如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com
.---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送空白电子邮件至“离开”
-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件至”vrf@it.lists.it.agilent.com“。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  
Hello Hugo,
If the protocol has, as you say, the number of bytes in the header
(viz A packet size indicator),
then assuming the header is always a fixed number of bytes,
you first do a binary read of the standard number of bytes
for the header then parse that and compute how many more
bytes to read, then do a binary read for that number of bytes
and Voila'....

We have a bit more complex protocol to deal with here, DF1.
Which has no packet size indicator, the packet starts with
an escape sequence and ends with an escape sequence,
so we have to read it one byte at a time and have to analyze
each byte as it comes in (a real royal pain - but the PC's
are pretty fast today so it is not very noticeable).

Regards
....Rob





"Hugo Renkema" on 06/05/2003 06:33:38 AM

Please respond to "Hugo Renkema"

To:    "VEE vrf"
cc:

Subject:    [vrf] No read terminator symbol RS232 communication




Hello everyone,



This is my first post in the vrf Mailing List. I hope my problem is
explained well, if not; feel free to ask for more information.



I am using HP-VEE 6.01 to communicate with a device via RS232. The protocol
by which the communication takes place has no EOL-symbol. The message-body
does contain a NoB (Number of Bytes) which indicates the length of the
message.



When sending commands from PC to this device, this is not a problem in
HP-VEE. The problem occurs when the device sends back a response. This
response also has no EOL-symbol. Therefore HP-VEE doesn't know when the
total message is received.



This results in the fact that the response is shown in the BUS I/O MONITOR,
but not available with a read-command in a DIRECT IO component.



This is due to the fact that the read terminator, which must be filled in,
is different for every single response.



The question is simple (and hopefully the answer too). How to read a
string, obtained from a COM-port, using HP-VEE when the last byte of the
message is unknown.



Thanks in advance,





Hugo Renkema

Email: tkip@gastec.nl


---
You are currently subscribed to vrf as: ramarquardt@ra.rockwell.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email
"vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".








---
You are currently subscribed to vrf as: r***@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com".  
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

回帖(8)

洪茗苞

2018-9-5 10:02:49
大家好...有人知道是否可以以编程方式传递VEE对象属性(例如背景颜色?)....我的程序要求对象的颜色根据文本输入(例如“red”,“red”)而变化
绿色“等ora价值1,2,3等.... sugestions非常感谢.RgdsGonzalo ---您目前订阅vrf为:r***@soco.agilent.com要订阅发送空白电子邮件到”join-vrf @
it.lists.it.agilent.com“。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要向此邮件列表发送邮件,请发送电子邮件至”vrf@it.lists。
it.agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  Hello all...

Does anybody know if it is possible to programatically pass a VEE object
property (such as background color?)....my program requires that the color
of an object change based on either text input such as "red", "green" etc or
a value 1,2,3 etc....sugestions are greatly appreciated.

Rgds

Gonzalo


---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

陈英

2018-9-5 10:14:53
正如沃伦所说,你不能在运行时改变颜色。
除颜色外,您可以调用相同的不同UserFunction。
但是,我会质疑软件维护难以保持不同版本的同步,以便改变颜色的便利性。注意, - Bill OssmannPhilips Ultrasounde-mail:bill.ossmann@philips.com To:“VEE vrf”cc :(
bcc:Bill Ossmann / ANR / MS / PHILIPS)主题:[vrf] RE:对象属性“Pickles,Warren”分类:06/03/2003 03:27请回复“Pickles,Warren”Gonzalo,你无法改变
VEE对象在运行时的背景颜色。您可以做的最好的事情是使用颜色警报;
这让你有三种不同的颜色(高颜色,中间颜色,低颜色) - 然后你有一个文本显示,你可以在运行时从三种颜色中选择一种颜色。希望有所帮助.Warren -----原创
消息-----来自:Gonzalo Urday [mailto:gurday@negenex.com]发送时间:2003年6月3日02:25To:VEE vrfSubject:[vrf] OBJECT PROPERTIESHello all ...有没有人知道是否有可能以编程方式通过
一个VEE对象属性(如背景颜色?)....我的程序要求对象的颜色根据文本输入改变,如“红色”,“绿色”等ora值1,2,3等....
非常感谢sugstions.RgdsGonzalo ---您目前订阅了vrf:Warren.Pickles@tycoelectronics.com订阅时发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅发送一个
空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要发送邮件到此邮件列表,请发送电子邮件至“vrf@it.lists.it.agilent.com”。如果您需要有关邮件列表的帮助
发送邮件给“owner-vrf @
it.lists.it.agilent.com“.---您目前订阅了vrf:bill.ossmann@philips.com订阅时发送空白电子邮件至”join-vrf@it.lists.it.agilent.com“
。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要发送邮件到此邮件列表,请发送电子邮件至“vrf@it.lists.it.agilent.com”。如果您需要
帮助邮件列表发送邮件给“owner-vrf@it.lists.it.agilent.com”.---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送空白电子邮件至“
join-vrf@it.lists.it.agilent.com“。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件至”vrf @“
it.lists.it.agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  As Warren says, you can't change the color at run-time. You can call different UserFunctions that are identical except for the colors. However, I would question whether the software maintenance headaches to keep the different versions synchronized are
worth the convenience of the changing colors.

Regards,
--
Bill Ossmann
Philips Ultrasound
e-mail:  bill.ossmann@philips.com




                                                           To:   "VEE vrf"
                                                           cc:   (bcc: Bill Ossmann/ANR/MS/PHILIPS)
                                                           Subject:    [vrf] RE: OBJECT PROPERTIES

               "Pickles, Warren"                           Classification:
              

               06/03/2003 03:27
               Please respond to "Pickles,
               Warren"






Gonzalo,
You can't change a VEE object's background colour at run-time.
The best you can do is use a color alarm; that lets you have three different
colours (high color, mid color, low color) - then what you have is a text
display where you can choose from one of three colours, at run-time.
Hope that helps.
Warren



-----Original Message-----
From: Gonzalo Urday [mailto:gurday@negenex.com]
Sent: 03 June 2003 02:25
To: VEE vrf
Subject: [vrf] OBJECT PROPERTIES


Hello all...

Does anybody know if it is possible to programatically pass a VEE object
property (such as background color?)....my program requires that the color
of an object change based on either text input such as "red", "green" etc or
a value 1,2,3 etc....sugestions are greatly appreciated.

Rgds

Gonzalo


---
You are currently subscribed to vrf as: Warren.Pickles@tycoelectronics.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com".

If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".

---
You are currently subscribed to vrf as: bill.ossmann@philips.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".





---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

李秀云

2018-9-5 10:20:46
Gonzalo - >我的程序要求对象的颜色>基于>文本输入(如“red”,“green”>等)或值1,2,3等更改等等。可能最简单的方法是转储
VEE对象并使用anActiveX控件代替。
他们中的大多数都有一个“背景”属性,用于设置背景的颜色。
不幸的是,窗口背景和textbackground是两个不同的东西,如果你没有访问TextBackground或DrawingMode属性,你有时可以使用不同的背景和文本背景颜色。你可以使用标准的Windows GDI调用做任何你想做的事情,但是
结果是高度(VEE)依赖,有时(取决于你使用的是什么电话)9x / NT依赖。我有一个VEE 5确认按钮的解决方案,设置:1)按钮字体。
2)按钮文字。
3)按钮文字颜色。
4)按钮背景颜色。不幸的是它不能传输到其他VEE对象。
如果这有助于我将其发送给您。-SHAWN ----您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送空白电子邮件至“join-vrf@it.lists.it.agilent.com
“。要取消订阅,请发送空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要向此邮件列表发送邮件,请发送电子邮件至”vrf@it.lists.it.agilent.com“。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  Gonzalo -

> my program requires that the color
> of an object change based on either
> text input such as "red", "green"
> etc or a value 1,2,3 etc

Probably the easiest way to do this is to dump the VEE object and use an
ActiveX control instead. Most of them have a "Background" property that sets
the color of the background. Unfortunately window background and text
background are two different things, and sometimes you can wind up with
different background and text background colors if you don't have access to
a TextBackground or DrawingMode property.

You can of course do anything you want using standard Windows GDI calls, but
the results are highly (VEE) versional dependent and sometimes (depending on
what calls you use) 9x/NT dependent.

I have a solution for confirmation buttons on VEE 5 that sets:

  1) Button font.
  2) Button text.
  3) Button text color.
  4) Button background color.

Unfortunately it's not transportable to other VEE objects. If this helps I
can send it to you.
-SHAWN-


---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

李贤杰

2018-9-5 10:34:19
Gonzalo,您无法在运行时更改VEE对象的背景颜色。您可以做的最好是使用颜色警报;
这让你有三种不同的颜色(高颜色,中间颜色,低颜色) - 然后你有一个文本显示,你可以在运行时从三种颜色中选择一种颜色。希望有所帮助.Warren -----原创
消息-----来自:Gonzalo Urday [mailto:gurday@negenex.com]发送时间:2003年6月3日02:25To:VEE vrfSubject:[vrf] OBJECT PROPERTIESHello all ...有没有人知道是否有可能以编程方式通过
一个VEE对象属性(如背景颜色?)....我的程序要求对象的颜色根据文本输入改变,如“红色”,“绿色”等ora值1,2,3等....
非常感谢sugstions.RgdsGonzalo ---您目前订阅了vrf:Warren.Pickles@tycoelectronics.com订阅时发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅发送一个
空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要发送邮件到此邮件列表,请发送电子邮件至“vrf@it.lists.it.agilent.com”。如果您需要有关邮件列表的帮助
发送邮件给“owner-vrf @
it.lists.it.agilent.com“.---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送空白电子邮件至”join-vrf@it.lists.it.agilent.com“
。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“vrf@it.lists.it.agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  Gonzalo,
You can't change a VEE object's background colour at run-time.
The best you can do is use a color alarm; that lets you have three different
colours (high color, mid color, low color) - then what you have is a text
display where you can choose from one of three colours, at run-time.
Hope that helps.
Warren



-----Original Message-----
From: Gonzalo Urday [mailto:gurday@negenex.com]
Sent: 03 June 2003 02:25
To: VEE vrf
Subject: [vrf] OBJECT PROPERTIES


Hello all...

Does anybody know if it is possible to programatically pass a VEE object
property (such as background color?)....my program requires that the color
of an object change based on either text input such as "red", "green" etc or
a value 1,2,3 etc....sugestions are greatly appreciated.

Rgds

Gonzalo


---
You are currently subscribed to vrf as: Warren.Pickles@tycoelectronics.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com".

If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".

---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

更多回帖

发帖
×
20
完善资料,
赚取积分