LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared variable version on host and RT target

Hi, Is it possible to use different shared variable engine on host computer and RT target? We use shared variable to communicate between RT target and host computer. Once the products shipped to customers we will keep the software on RT target unchanged but we would like to keep updating the program on the host computer with newest LabVIEW version. Is it possible to just update the host computer without updating the RT target?Thanks for help! Tao
0 Kudos
Message 1 of 9
(3,852 Views)

Hi Tom,

 

You can have different shared variable engines on your host and target.  So what you want to do should work.

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 9
(3,824 Views)

Hi Justin,

 

    The shared variable engine has to be the same version on host and target. This is my problem. I only want to update the version on host computer.

 

    Tom

0 Kudos
Message 3 of 9
(3,802 Views)

"The shared variable engine has to be the same version on host and target."

 

How exactly have you determined this/ what issues are you running into?

 

If you would like to prove this to yourself, you could create an RT app that runs in LabVIEW 8.6 or older.  Then in LabVIEW 2009 use the Read Variable.vi or DataSockets to access the variable running on target (in an older version of LabVIEW).  This will work.

 

If you are having any specific issues please let me know.

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 4 of 9
(3,792 Views)

Hi Justin,

 

    I have tried. I installed shared varaible engine 8.6 on RT target and LabVIEW 2009 on host and it doesn't work. 

 

 

    Tom

0 Kudos
Message 5 of 9
(3,764 Views)

Hi Tom,

 

Are you getting an error code or some thing else?

 

Attached are two zip files.   The 8_5.zip is a LabVIEW project that was written in 8.5 and deployed to a cFP.  The 9_0.zip is a LabVIEW project written in LabVIEW 2009 (9.0), that reads the shared variable off of the cFP running the 8.5 code.

 

This works for me, so if you could give a little more detail, hopefully I can help you out.

Justin Parker
National Instruments
Product Support Engineer
Download All
Message 6 of 9
(3,750 Views)

Hi Justin,

 

    Your example works great. But for each shared variables the shared variable refnum has to hardwired with a fixed IP. After deploying the host program we want to have the flexiblity to change the IP address. I know if it is possible?

  

    Thanks for help!

 

    Regards,

 

    Tom

0 Kudos
Message 7 of 9
(3,583 Views)

Sure Tom, I can't see why not.  This could be done by entering URL of the Shared Variable into a string control.  Or you could have your program read an array of Shared Variable URLs from a text file, and then index through the array in a for loop to read all of the variables.  But its definitely possible.

Justin Parker
National Instruments
Product Support Engineer
Message 8 of 9
(3,572 Views)

I don't know it can take string input as url. Thanks a lot!

0 Kudos
Message 9 of 9
(3,526 Views)