LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rt datasocket write of shared variables doesnt get through

hi
 
i've got an application running on labview rt (8.0.1) on a remote pc
i communicate with this using data socket read and write operations to manipulate shared variables from host VIs (run from teststand)
 
this works fine thou occasionally variables set by the host seem not to get through to the remote pc (the requested action doesnt occur and no indication is given that this hasnt happen)
i currently have timeout set to 0 for the read and write operations
 
i'm trying to avoid a complex handshake setup if possible, is there a better way to ensure values are actually changed?
 
thanks
andy
0 Kudos
Message 1 of 4
(3,511 Views)
You could try and write/read a number of times until the read shows what the write should have written with a timeout to prevent deadlock.

To keep this simple put it inot into a subVI and use the subVI where you currently use the datasocket write function. This keeps your code tidy and if the handshake needs some tweaking you only have to change code in the subVI.


Message Edited by andre.buurman@carya on 11-29-2007 08:36 PM

Message Edited by andre.buurman@carya on 11-29-2007 08:36 PM
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 4
(3,485 Views)

hi

i'm trying to avoid writing to the variable multiple times as this is slow and is a workaround solution (we've actually already instigated such a solution for a temporary fix)

we're looking to solve the root cause, where do the shared variable writes go? is it possible that the remote is writing to a variable (via datasocket) while the RT code is reading it?

regards
andy

0 Kudos
Message 3 of 4
(3,417 Views)

Andy,

It looks like this forum post has been somewhat 'lost in the system', or at least not been replied to for some time. Is this issue still ongoing, would you like further information?

Apologies that you have not had response for some time, please get in touch if I can be of further assistance.

Best wishes
Rob L

NI Applications Engineer

UK & Ireland


It only takes a click to rate this message 😉
0 Kudos
Message 4 of 4
(3,172 Views)