LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shared variable outputs zero value

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,

0 Kudos
Message 1 of 6
(3,041 Views)

Hi jtc,

 

I had faced such problem which i solved using Datasocket. Try it.

 

 

Best of luck

 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 2 of 6
(3,036 Views)

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,

0 Kudos
Message 3 of 6
(3,025 Views)

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.

 

 

Message Edited by gak on 09-14-2009 04:08 AM
Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 4 of 6
(3,015 Views)

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

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 5 of 6
(3,013 Views)

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.

 

 

0 Kudos
Message 6 of 6
(3,002 Views)