04-13-2017 03:06 AM
Hi,
I want to create shared variable in my computer and read this variable in cRIO.
How can I do that ?
Thanks
04-13-2017 03:31 AM
Hi Burak,
Have a look at this:
http://www.ni.com/white-paper/4679/en/
You can create a network published shared variable on a RT target and read the value elsewhere.
Ingram
04-13-2017 03:40 AM
Hi Ingram,
My main purpose is to create shared variable under my computer, then read the value of this variable in RT target.
Can you help me in that sense ?
04-13-2017 04:11 AM
HI Burak,
Is there a particular reason for doing this? You would typically host the shared variables on the system that is online most of the time - which usually is the cRIO.
I would have thought otherwise that the process should be the same however in terms of creating the variables in the project. What problems are you seeing?
Ingram
04-13-2017 04:29 AM
Hi Ingram,
In cRIO, I built a kind of motor control application. What I want to do is to send a command from the computer to the cRIO.
I tried creating shared variable under my computer hosted in cRIO. But I am not able to read in CRIO.
This is my problem.
Thanks
04-13-2017 05:18 AM
Hi Burak,
Based on your description I see no reason why you are unable to host the shared variables on the cRIO.
If you ensure they are Network Published (see the white paper referenced earlier) you should be able to send commands from the computer to the cRIO.
http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/ni_psp/
Ingram
04-13-2017 06:38 AM
Hi Ingram,
The picture at the attachments clearly expresses the problem that I have faced.
On the other hand, I thank you for your effort so far.
04-13-2017 06:46 AM
Ok, but I don't understand why you would need to things this way around. What is stopping you from deploying the variables to the RT?
Could you share your code in LV 2014?
04-13-2017 07:03 AM
Hi,
As I said, I want to send a command to cRIO from my computer.
I want to send commands to Inverse Kinematic inputs from my computer.
my shared variables codes are at the attachment.
Thank you
04-13-2017 07:34 AM
Hi Burak,
Company policy prevents me from uploading anything, but if you create the variables under your cRIO and drag them onto the block diagram of your UI you should be able to write commands to the cRIO.
You close to doing this with your current setup. Have a look at some of the cRIO example projects as they use network shared variables too.
Ingram