06-30-2014 12:36 AM
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?
06-30-2014 02:31 AM
Can you post your vi?
06-30-2014 02:50 AM
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!
06-30-2014 03:00 AM
@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)?
06-30-2014 03:51 AM
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.
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!