LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sync=true datasockets open

Solved!
Go to solution

   I'm using datasockets to read and write to shared variables hosted on a second PC.  In one of the examples that I found, the URL has "?sync=true" at the end of it.  I cannot find this documented anywhere.  Does anyone know what this does to the connection or when it should be used?

TIA,

   DaveT

-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.
0 Kudos
Message 1 of 3
(2,831 Views)
Solution
Accepted by topic author Dave_Thomson

A cut-n-paste from here says...

 


 ms timeout specifies the number of milliseconds the function waits for the pending operation to complete. The default is 0, which means the function does not wait for the operation to complete. Use a timeout value of –1 to make the function wait until the operation completes. Currently, only the dstp, opc, and file protocols support nonzero timeout values for this function. You must enable synchronous notifications to use a nonzero timeout value with the psp protocol. When you enable synchronous notifications, the function waits until the operation completes or the timeout expires. You must append ?sync=”true” to the end of the psp URL to enable synchronous notifications and allow nonzero timeout values for write operations. Enabling synchronous notifications can cause slower performance, particularly on RT targets.

 


 Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 3
(2,820 Views)

Thanks, Ben.  Not sure how I missed it...


DaveT

-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.
0 Kudos
Message 3 of 3
(2,817 Views)