09-13-2009 09:43 PM
Hi.
I am using shared variable to pass data between two computers (network published). I dont know why suddenly the shared variable outputs zero value. There is no major error but only 1950679034. Until now with so many attempts the shared variable still outputs zero value.
I also checked and followed the NI writeups but still cant fix it.
I made some screen shots as attached to show my problem. Does anyone have experience on this? Am i missing any parameter setting?
Thank you very much for any advise.
best regards,
09-13-2009 10:18 PM
Hi jtc,
I had faced such problem which i solved using Datasocket. Try it.
Best of luck
09-14-2009 12:25 AM
Hi Mr Gaurav,
Thanks for the reply.
Are you suggesting i should change the Shared Variable Application to Data socket? But i already invested
a lot of time on this?
Are there any work around to fix this problem?
regards,
09-14-2009 04:07 AM - edited 09-14-2009 04:08 AM
HI jtc,
You just have to change one application. And you just need to replace shared variable by datasocket. Create library of shared variable on one computer and read/write those variables on/from other computer using Datasocket instead of binding. I hope its clear to you what I want to say.
09-14-2009 04:15 AM
One more thing you can workout. Go to tools>>Shared variable>>Variable manager and add your variable to watch list on both computers and can find out where problem is occurring. Whether data is not getting sent or its not getting received properly.
May be its not shared variable problem..May be through your program 0 is getting written ... But I would suggest Datasocket is best option.
Best of luck
09-14-2009 04:47 AM
hi gak,
thanks for the reply and advises.
i finally found the trouble. Its the check box for Enable Aliasing where i should not put
a tick if the data being shared comes on the same PC.
thanks a lot.