LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared Variables Trouble!

Hello! I have some problem with Shared Variables.

I want to send datas to CRIO through Shared Variables. so I set a shared variables below project of CRIO, then put the shared variables into the RT.vi of CRIO and host.vi in PC. when I depoly . the shared variables can well work first time, it seems that the shared variables can just send datas only once, and it can not update. it just keep the some data.

how can I figure it out?

0 Kudos
Message 1 of 5
(2,481 Views)

Can you post your vi?

0 Kudos
Message 2 of 5
(2,459 Views)

thanks for your reply, I have figured it out ! actually it works well,but send datas with delay!I find that if you want to send datas from RT to your PC by shared variables, the datas in shared variable will not send to your host.vi of your PC Immediately, so I set a delay function! and  then it worked well!

0 Kudos
Message 3 of 5
(2,455 Views)

@zhaopaul wrote:

thanks for your reply, I have figured it out ! actually it works well,but send datas with delay!I find that if you want to send datas from RT to your PC by shared variables, the datas in shared variable will not send to your host.vi of your PC Immediately, so I set a delay function! and  then it worked well!


I don't think this is true. Can you please show how you are writing and reading the shared variable (atleast as an image)?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 5
(2,449 Views)

test.png

OK! I will post it!  I set two shared variables in program of cRIO9024, and I use the shared variables to get the datas form Demotest vi on PC.

QQ群.png

this is part of  Demotest.vi. you can see I add a delay function ,then it works well. but actually I do not know the real reason!

0 Kudos
Message 5 of 5
(2,439 Views)