LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared Variables - Communicating Between LabWindows and LabView

Hi,

 

I am attempting to use shared variables to write data to a boolean variable between LV and CVI. The two separate devices are on a shared network. I am capable of connecting to the shared variable using the DSM in CVI, and I am also capable of writing to the variable from LV and receiving the data change in CVI, however I cannot do the opposite: write data from CVI to change the boolean variable in LV.

 

In my LV program, I have a "read" variant of the shared variable, along with the "control" button of the variable wired into an "OR" statement, with an indicator on the other end of it to turn on when either one goes high. 

 

In LabWindows, within a CNVDataCallback, I have tried the following functions to no avail:

-CNVWrite

-CNVBuffer

-CNVSetScalarData

 

I get the feeling the issue is on the LabWindows side and it isn't writing to the network variable correctly, considering the device with CVI can read the variable changes but not write. 

 

I hope someone can give a hand with this. Thank you.

0 Kudos
Message 1 of 1
(344 Views)