02-26-2009 07:33 AM
Hi,
Is anyone else having problems with this error after installing LabVIEW 8.6.1?
Programs using shared variables that I wrote (and had working) in earlier versions just don't seem to work anymore.
Regards,
Sarah
Solved! Go to Solution.
02-26-2009 02:46 PM
Hi Sarah,
Good Evening and I hope your well today. Thanks for the post.
Error 1950679023 using shared variables isn't a known issue with LabVIEW 8.6.1. So maybe first of we can try some troubleshooting steps?
Once a shared variable is deployed it remains deployed as a service until explicitly undeployed. If the computer running the shared variable engine goes down or crashes for some reason, any subscribers will receive error -1950679023 from the shared variable node error out terminal. Have you checked using the Distrubted System Manager (LabVIEW>>Tools>>DSM). Do you librarys with the shared variables appear? If not, I would deploy them from the project by right-clicking on them and selecting deploy.
Have you also tried rebooting your machine recently?
You could try repairing the shared variable engine if you suspect an installation problem. You can do this using the add/remove program option found in the Windows Control Panel. Select NI Software, and then NI Shared Variable Engine.
I would also confirm that your PC is hosting the variables - and you're not trying to read them from another target - such as cRIO. I would also suggest using a test, when one writer and one read in two loops on your machine - this is ofcourse if your using networked shared variables.
Please reply and I'll more than happy to continue to work with you to resolve your issue.
Thanks,
02-27-2009 05:23 AM
Hi James,
Thanks for your response.
I went to do a repair of the NI Shared Variable Engine and it wasn't there, maybe that's my problem!
Where do I install this from? I can't find it on the DVD's.
Cheers,
Sarah
02-27-2009 06:45 AM
Hi Sarah,
Good afternoon and I hope your well today.
Thanks for your reply.
This wouldn't help not having the software installed
It is possible to install Variable Manager on a stand alone machine
with just the LabVIEW Run-Time Engine installed. In order to install
Variable Manager, install the LabVIEW Run-Time Engine and the Shared
Variable Engine on the computer. You will need to run the Variable
Manager component from either the LabVIEW Developement System, LabVIEW
DSC or the Real-Time installer. This component is located in the labview\Products folder, where Products is the name of the product's CD.
Running this installer for Variable Manager should install the software on your computer.
Please let me know how you get on,
Hope this helps,
02-27-2009 07:43 AM
Hi James,
Thanks for your response.
Maybe I should start from the beginning……
I have a development PXI which has everything from the NI developer suite core and LabVIEW Real-Time installed. I then have other PXIs running executables that were built on my PXI. After upgrading to 8.6.1 I decided I wanted a network published shared variable so that two of my PXIs without LabVIEW on them could talk to each other. I have done this before and followed exactly the same procedure. I created the variable on one, added code to programmatically deploy the library, added it to the ‘always included’ part of the exe and set the destination directory as ‘support files’, created an installer and installed it on the PXI. I did the same for the other, but I put a check in the ‘enable aliasing’ box and bound it to the first one.
I opened DSM, the variable was listed in both machines, but in the second one it had 'No known value, connecting, disconnected, process failure' for its quality. Using operate>>'debug application or shared variable' I could look at the code and coming out of the shared variable I had the error mentioned above.
I decided to do some tests, made two new projects on my development PXI, one with a vi writing to and one with a vi reading from shared variables, and I bound them as I did above. That worked ok. I then moved the read project to a colleague’s PXI which also had 8.6.1 installed, made sure the variables were looking in the right place and tried again. It didn’t work. I saved for previous version (8.5) launched 8.5 on both machines and tried again and it worked perfectly.
Now, I have uninstalled 8.6.1, re-installed 8.6 and my test vis work fine again. I went back to my original projects, re-built the exes and installers and re-installed them, but they still don’t work!
I have looked on all 4 machines (2 with the full LabVIEW installed, 2 with just run-time) and none of them have this NI Shared Variable Engine listed when I go to the add/remove program option in the Windows Control Panel and select NI Software.
I'm not sure what to try now!
Regards,
Sarah
02-27-2009 07:48 AM
Hi friends
I am Joseph from London. I am trying to find the answer of your question so can you send some detail of the above question.
Joseph
03-03-2009 06:26 AM
Hi Sarah,
Good Afternoon and I hope your well today.
Sorry for the delay..
I have been doing some more research and found that there is a patch for LabVIEW 8.6.1 and variables - could this be the issue your faceing..
Link: http://joule.ni.com/nidu/cds/view/p/lang/en/id/1255
"This is an update for only LabVIEW 8.6.1 to fix an issue where the bound variable path is incorrect after variable deployment."
You do seem to have proven the issue to about outside of your code - I will upon the update being installed and not the solution aim to replicate your issue.
Lastly, please run - but dont uninstall! the MSIBlast tool attached. It will list all NI Packages (MSI Packages) installed on the machine. Please take note that in the list should include,
Ni Variable Client for RT + Supprt for versions
NI Variable Engine + Support for versions
NI Variable Manager
... to name a few.
I'd be interested to know if they appear in the list,
Hope this helps,
03-03-2009 08:23 AM
Hi James,
Thanks for the response, that patch seems to have done the trick 🙂
I ran the MSIBlast tool and all the NI variable packages seem to be there.
Thanks for all your help on this matter,
Regards,
Sarah
03-03-2009 08:48 AM
Hi Sarah,
Thanks for the update!
I am glad it worked - sorry for not resolving this issue sooner - I hope it didn't cause you too much pain.
Obviously make sure with the upgrade to LabVIEW 8.6.1 you also update RT and FPGA - if your doing any FPGA programming.
Thanks for your quesiton,
03-04-2009 08:28 AM
Hi,
I'd just like to quickly add that after installing LabVIEW run-time 8.6.1 on the machines without LabVIEW I also had to edit nitaglv.dll in C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\8.6 (as described at: http://joule.ni.com/nidu/cds/view/p/lang/en/id/1255).
Before I did this although the programs ran ok on my development machines, when built into an exe and installed on different machines the variables still didn't bind properly.
Cheers,
Sarah