02-08-2006 12:51 PM
02-14-2006 12:54 PM
02-14-2006 01:49 PM
Simbani,
After some additional experimentation, I noticed that the Shared Variables causing the errors appear to have names ending with a space character, that is," " (no quoatation marks, just the space between).
In my case, the problem name was: "ExposureTime ". Changing it to "ExposureTime" (without the trailing space) did the trick. (Incidentally, I tried changing the name, but apparently I didn't delete the final space.)
Anyway, check the name of your variables. Make sure there is not a space at the end. If there's no space, try different names as there may be other characters that may cause the same problem.
Hope this is useful.
-- D
02-15-2006 10:41 AM
D,
Thanks for your information.
I have expent quite a long time, more than 80 hours trying to solve the problems a face daily with the behaviour of the shared variables and I am afraid, I am unable to overcome the problem.
If I am not mistaken, although, when connecting directly the PC with the Target you should use a crossed ethernet cable, it seems this kind of conection does not work. I think it is better to use a normal ethernet cable and a hub between the PC and the Target. I have tried this connection and it works, but, it does not correct the errors of the shared variables. Among other errors with shared variables I get quite often the -1950679035 and the -1950679022
Is there anyone who has got a good experience working seriously with the shared variable ?
Simbani
02-17-2006 01:12 PM
Hi Simbani,
I have had similar problems with the ethernet x-over cable in the past. These seem to have cleared up for me with LV 8.0, but it sounds like the problem still exists for you. In any case, ethernet hubs and switches are reasonably cheap these days...
About your shared variable problems -- in addition to the space character problem, I've found that creating a new variable and deleting the old, problem variables usually works to overcome -1950679035 errors.
On a different note, I'm wondering if you are using a localized (non-english) version of LabVIEW. Since the problem I had was related to a specific ascii (or perhaps unicode?) character, maybe there is also some issue with specific characters in other language versions of LabVIEW (and/or Windows). Just a thought...
As a work-around, you might try creating new shared variables and assigning them different names to see if this helps.
Cheers,
-- D
02-18-2006 04:15 AM
Hi D,
I am using the standard american language LabVIEW comes with and I use Sky Link NET 1008 8-port-N-Way Fast Ethernet switch (100 Mbps) with non crossed ethernet cables. By the way, I wonder whether 1000 Mbps will siginificantly improve the performance or not. Any experience?.
I have delated the variables in the host and created them in the target, then the values passed correctly and I hot not any error. This was done with the Firewall enable.
My Windows XP Professional comes with Service Pack 2 and as default the Firewall (Control Panel) is enable. After having disable the Firewall, I have been able to create and use the shared varaible in both, the host and the target without any problem.
Now, I´ll have to use quite a lot of shared variables of practically all types and will see how the bahave in a medium size program.
Simbani
10-18-2006 07:19 AM
Hello guys,
I have problems as well with the DSC shared variable visualization, when I run a VI under a project to read data from a Modbus module. The error code: -1950679035. Shared variable doesn't exist, appears in my screen, despite the fact that the variables (DBL) are well defined in the project library.
Until now I have tried:
- Rename the variables, creating new variables.
- Disconnect the windows xp firewall.
- Checking the ethernet default connection.
- Re-install the software package (LabView and Modbus Utility).
- Create a new VI only to visualise the variable.
Any ideas why do I have this error code?
Thank you,
Nopo
10-23-2006 03:04 PM
05-07-2008 03:40 PM
01-26-2011 08:40 AM
I was using network-published shared variables on a touch panel. The error code was ni_tagger_lvpda_Write. The shared variable would not take data, in fact, it would not initialize. Perhaps, this is the same type of error as what you got. What worked for me is to go to File/Vi Properties/Execution and uncheck the box: Autopreallocate arrays and strings. This unchecked box disappeared if accessed again but the shared variable worked. Hope this helps!