LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasocket Write errors

My company has been contracted to update a welding machine to run on Windows XP. This upgrade has been giving us endless problems. Here is where we stand right now.
 
When I log into the computer itself as an administrator, the VI will open in LabVIEW without errors. This is promising, but when I try to run the VI, multiple messages pop up, all of which say "Error occurred at DataSocket Write" and further explain that the error is an unknown one. I know nothing about DataSocket or, to be honest, LabVIEW, and I'd like to klnow what might be going on to prevent me from running the program.
 
When I log into the domain as an operator, the VI opens with many many errors, all related to VIs such as "AI Clear," "AI Config," etc., and all traced back to a Library file not being found. The problem I have with that is that the library is very obviously on the computer, and the very same library is used by the administrator account when it opens and runs. Why doesn't the same library with the same program work with the operator account?
 
This is I believe the fourth attempt with a new configuration of PCI cards, LabVIEW editions, and NIDAQ editions, and we're getting extremely tired of each "solution" presented by NI not working. Please let me know if there are ANY options that do not include Getting yet another update of LabVIEW, another update of DAQmx, and rewriting the VIs to work with those.
 
0 Kudos
Message 1 of 5
(2,873 Views)
When logged in as the operator, are you able to use Explorer to browse to the NI program directories and particulary to whichever subdirectory those VI's are stored in?
 
I am guessing that the XP machine is not giving access privileges to the operator to those directories, but is giving the privileges to the admin.
 
As for the admin and datasocket write error.  I think I have seen some messages on the forum about giving some time for the datasocket service to start before running an application, but I was unable to find them.  But when I searched the forum, I came up with this link here.
0 Kudos
Message 2 of 5
(2,861 Views)
Hi ZeidleBoof,
Could you please post the error code for the DataSocket Write?  Do you know what the program is trying to do? Is it trying to communicate with a PLC via the OPC server? Is it trying to write to a certain URL on the DataSocket Server? What URL is it trying write to? Please make sure that DataSocket Write is writing to a correct resource, and that the DataSocket Server is started.  Go to Start->Program Files->National Instruments->DataSocket, use the DataSocket Management program to set up your DataSocket Server and start up the DataSocket Server buy running the DataSocket Server program.
Hope this helps.

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 3 of 5
(2,844 Views)

Here is a screenshot of the error. It appears when I try to clcik the Run button, and I have to click "OK" 30 times before the message disappears.

It reads "Error -2147483646 occurred at DataSocket Write in Welder121202.vi. Possible reasons: This error code is not listed in the internal database, or you have wired a number that is not an error code (such as a DAQ task ID) to the error code input."

 

Message Edited by ZeidleBoof on 09-04-2007 10:34 AM

0 Kudos
Message 4 of 5
(2,823 Views)
Hi ZeidleBoof,
I searched in our database, and it seems like the error code doesn't say much.
Have you tried to start the datasocket server or tried to figure out what is datasocket trying to connect to?
To start NI DataSocket Server, go to Start->National Instruments->DataSocket->DataSocket Server

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 5 of 5
(2,794 Views)