Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying Network Shared variables from Startup Programs

NI,

Currenly we are trying to send data from one Myrio to another Myrio and a computer.  The host Myrio is running a real-time startup program that runs as soon as the Myrio is powered.  We would like to then have the second Myrio access the values of those network shared variables without restarting the program on the host myrio.  We would also like to have a VI running on a separate computer be able to access those variables without interupting the host program.

After properly creating the shared variables in a Myrio Project, I cannot seem to get the network variable to function properly since each time I run the program on the computer that accesses those network variables, it tries to redeploy them to the Myrio and therefore stops the myrio program.  I tried to disable the autodeploy shared variables feature, but still have problems getting it to recognize the existance of the variable and even get the following error. (after looking up the hex code).

IAQ_NONEXISTANT 6 0x8BBB0005 Error/Failure Unable to locate variable in the Shared Variable Engine. Deployment of this variable may have failed.

This may be a simple configuration problem but I still would like some help regarding how Network Shared Variables are deployed on real-time startup programs that run on the Myrio. Especially in this instance where we have two myrios both trying to read/write network shared variables.

Is there any way you could help me out?

Cheers,

Joseph Belter

Yale Bulldogs Racing Team

Using two MyRio systems to control and measure a Hybrid Racecar

0 Kudos
Message 1 of 4
(7,680 Views)

Hey Joseph,

 

Are the myRIO's connected to the PC via USB or are they all on the same WIFI network?

 

When you created the shared variables I assume you created the variable under the myRIO in the LabVIEW project and then used the 'click and drag' method from the project to your VIs to get the static shared variable node, is this correct?

 

One potential problem with this method is if you switch from the USB connection to Wifi the IP address of the myRIO will change and the other myRIO and PC might not be able to find the shared variables anymore.

 

Can you post your project so we can see how your variables are setup.

 

Thanks!

 

Sam K

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 2 of 4
(7,671 Views)
hi i am using kinect in my project.the kinect vi that i am using does not run on myrio( kinesthesia toolkit) but runs fine on computer. So i decided to run the kinect vi in computer project and send that value to myrio to control an actuator. But i cannot figure out how to do so. Could u please help me///
0 Kudos
Message 3 of 4
(7,097 Views)

Hi trogen,

 

This thread seems to be several months old so it might not be monitored anymore.  Feel free to take your question and create a new thread.

Julian R.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(7,072 Views)