发表于:2001-08-30 09:45:00
1楼
Zhuo Yi,
I ve received your request for more information regarding the DataPoints
SetValue and Write methods.
In reading your response, I assume you are using VC++, as you wouldnt
otherwise be calling SetValue (in VB it would be just Value).
For some background information, the proper behavior of the DataPoint class
is that when the AutoWrite property is set to true, then calling SetValue
will send the value to the device as well. With it set to false, it doesnt
send the value to the device, but just holds it internally in LNS. When you
then call the Write() function, the current value held internally in LNS
will be sent to the device. If calling SetValue with AutoWrite set to true
always throws an exception, then the same should be thrown when you call
Write. However, depending on the exception being thrown, you may receive
the exception when you call SetValue, or you may
Can you give me the full description of the error that you get? It appears
that you may be receiving an exception value that is outside of the valid
range.
Thank you,
Aaron Wood
Applications Engineer
Product Support & Training
Echelon Corp.