Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to Network Variable from VB.net

Hi (VB 2008, newest measurement studio, newest labVIEW)

 

I have written a basic VB program that can read network variables being changed by a small labVIEW program. For the read side of the VB program I have no problem. I first setup the NetworkVariableDataSource and add a binding as shown below

 

18845i7BF98BF39428D58B

 

I have then dropped a LED from the measurement studio toolbox and set the databinding as below

 

18849iECC7E60BB4EC72FC

 

When I click on the LabVIEW button which feeds directly in to the network variable I see the LED on the VB program switch on and off, result!!

 

What I want to do is now add a button on the VB program that when pressed changes the state of another network variable and then have a led on the LabVIEW program which shows that when i press the VB switch I toggle the LabVIEW LED. I have tried loads of different things and I am getting nowhere slowly. Can someone explain what I need to do in the NetworkVariableDataSource and what to do with the databindings on a switch property on VB. Do I need a on-click or does the netwrok variable just look at the switch state. Any information would be valuable 

0 Kudos
Message 1 of 1
(3,506 Views)