LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

enable shared variable buffer

Dear all,
 
I'm writing on a program to create shared variables programmatically. I use the examples available in labview and DSC 8.0 as reference. I'm able to create and set the different properties such as scaling, alarms, inital value etc for the shared variable(s). However, when i wire a boolean "true" to " enable buffering", it doesnt seems to work. I checked the shared variable created in the shared variable engine, the variable is created but the buffering cant be enabled programmatically. Can anyone guide me what's the fault? thanks.
0 Kudos
Message 1 of 4
(3,506 Views)

Hi,

Can you post the modified version of the example?

Tunde

0 Kudos
Message 2 of 4
(3,488 Views)
hi I have attached a simple vi I tried but cannot work. Can anyone guide me? Thanks.
 
 
Download All
0 Kudos
Message 3 of 4
(3,467 Views)

Hi,

The VI worked without any problem though I had to change the shared variable name. One thing to note about changing the properties of shared variables programmatically using the shared variable I/O is that it only affects the deployed shared variables and not the actual library file. In essence, these changes are not saved in the library. So the shared variable properties window will not reflect the current status of the "Network.UseBuffering" option. To verify that the "use buffering" is enabled, place another "Network.UseBuffering" property node on the block diagram and read the current state from it.

Attached is a modified version of the VI with the current status of the "Network.UseBuffering" property for the deployed shared variable.

Tunde

Message Edited by Tunde A on 03-05-2007 12:34 PM

Message 4 of 4
(3,449 Views)