01-24-2008 01:32 PM
01-24-2008 04:46 PM
richjoh,
I setup a project in both LabVIEW 8.5 and LabVIEW 8.2, and both seemed to work properly with double binding to network published doubles. I've seen issues with shared variables in 8.5, where a read immediately following a write to the same variable (with error cluster connecting the two) produces the wrong value. A 35 ms wait seems mandatory (not sure how the SV engine is handling these seemingly synchronous operations).
Anyhow, you can take a look at the attached projects and see if they simulate your problem. Some example code would be helpful.
Take care.
-B
01-25-2008 08:49 AM
LabBean,
In my case I used a library using SV with an I/O server (modbus master) for a Watlow EZ Zone controller. So maybe this just applies to Modbus. I see your sample works just fine. Btw if you can connect some kind of hardware using SV you may find more delay is required between write and read (several seconds). NI is addressing this.
regards,
richjoh
01-27-2008 04:34 PM
12-16-2008 09:36 PM
richjoh,
Please see my last post here:
http://forums.ni.com/ni/board/message?board.id=170&message.id=356313&requireLogin=False
I've attached a project there which demonstrates operating characteristics of bound / unbound and buffered / unbuffered shared variables with respect to the new timeout terminal that is available with LabVIEW 8.6.
You mentioned "erroneous values". A 25 ms intial wait followed by reads with 50 ms timeouts should alleviate this problem. (A greater timeout may be necessary due to your hardware limitations.) Also note that the buffer for bound shared variables ignores repeat values (even for unbuffered shared variables).
-Jason