LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling permissions of network Cdaq with network published shared variables

Hi all,

 

Im currently trying to set access permissions of a network cdaw using network published shared variables.  Problem im running in to is when i change the variable i dont see it update. I am just using a simple write and read the variable to test it out.  Now sometimes the first time i change the variable it updates, but then i cant seem to get it to update again.  Do i need Real time module to do this?

 

Thank you



-Matt
0 Kudos
Message 1 of 2
(2,749 Views)

Network Published Shared Variables do not get actually updated until they are sent to the shared variable server.  The update is sent to the server once a buffer is filled or a timeout happens.  So the quick answer is that NPSVs are SLOW.  Yes, writing and then immediately reading will likely give you different values, even with nobody else accessing that variable.

 

Personally, I would have a single computer that maintains who has access to the cDAQ.  You connect to that PC using TCP/IP.  If you get the connection, you can connect to the cDAQ.  I would go a step further and get a USB cDAQ chassis and make this central computer the one connected to it.  Then you make a program that can do whatever you need and recieve commands from whoever is connected via TCP/IP.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,735 Views)