06-19-2015 12:59 PM
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
06-19-2015 01:44 PM
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.