LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -2147220224, DataSocket

Solved!
Go to solution

I have written a program in C++ which uses the functions in Dataskt.dll (the Datasocket functions).  I have Labview 8.6 and the program works fine on my computer, but when I pass the program to someone who is running 8.5, I get error #-2147220224 with no explanation other than system error.  I think that this error has to do with the cviauto files, but when I transfered them from my computer onto the other one it still generated the same error.  The versions of the DataSocket that each computer is trying to access are the same (4.5 (0)).

 

Does anyone know what files I need to bundle with my program in order for this to work?

 

Thanks, 

-Jeff VT 

0 Kudos
Message 1 of 6
(5,128 Views)
Why would you use datasocket functions in a .dll written in C++ and have LabVIEW call that?  Why wouldn't you use the datasocket VI's that are native in LabVIEW?
0 Kudos
Message 2 of 6
(5,119 Views)

Because I am writing a program in IGOR (not LabVIEW) but I need the DataSocket functionality for live data viewing.

 

0 Kudos
Message 3 of 6
(5,082 Views)

Hi Jeff,

 

I am a little confused on what you are doing in LV. Are you just calling this program written in Igor or are you writing some HMI that interfaces with both Igor and the datasocket dll's? Also, where in your program (if you have highlight execution active) is this error coming out of? Is it the call dll function?

 

Regards,

Andrew Eddleman

National Instruments

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 4 of 6
(5,064 Views)

Sorry for the confusion, let me try to explain it again.

 

I have these files for DataSocket: Dataskt.dll,Dataskt.lib,Dataskt.h

 

I have written a program in C++ which uses the functions in Dataskt.dll.  I have then exported this C++ program as another type of dll (.xop) which IGOR can use.  I then used the functions in IGOR to get live data being published to a DataSocket Server in the form of strings and arrays.  

 

When I developed the C++ program and the xop file on my computer it worked fine (I have Labview 8.6).  But when I tried to implement the xop on another computer (that does not have Labview 8.6, usually 8.5 or 6.1) the IGOR program crashes and gives an error saying that the xop errored and -2147220224 is the error code.  The error is not in Labview because it is not running at the time.  If I download the demo version of Labview 8.6 on the computer then the program works perfectly, even after the demo expires.

 

The user never interfaces with Labview or C++.  The whole interface is in IGOR.  What I need to know is: Is there a particular file that has changed in Labview 8.6 which will allow me to distribute the xop without having to install the full demo of 8.6 if I include it in my install package for the xop?

 

 Thanks,

-Jeff VT 

0 Kudos
Message 5 of 6
(5,060 Views)
Solution
Accepted by topic author EyeGoran
Have you tryed installing the CVI run-time  and seeing if your application would work with that?
National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
Message 6 of 6
(5,048 Views)