LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

distribution kits

Hi guys in Ni.
I made several CVi programs that conforms a little sistem and uses data socket and TCP/IP for interchange information, i made the release ejecutable of each one
of the programms and create a installation CD that uses
batch files to copy all the files needed by each program into the correct path, i know I need the CVI Run Time Engine for possible the programs run on all machines so i made a program that doesn´t make nothing jjust call a main function and finish then but i made a distribution kit with DataSocket support
and the when i install whatever program i want the batch file firs install that program by executing the setup of the programm i explained, Finally this setup
install Ni Datasocket correctly, but i have a problem,
Many o
f the programs Use "DS_CotrolLocalServer(DSConst_ServerLaunch)" function for start programatically the Data socket server and create some data objects on it, but it doesnt work, when mi bacth-installed program starts it doesnt launch Data socket server, but on the machine where i developed the programms (with CVI installed) the programs perform that operation without any problem.
What can be the problem when i make all explained bellow when i install the programs on a new machine without LabwindowsCVI installed? Also i tried starting the server before start a program and then start my program but is imposible to create a data object on the server and in the machine with CVI the operation is always succesful. why?
Thank you.
0 Kudos
Message 1 of 2
(2,640 Views)
Hi,

DS_ControlLocalServer should return an error code, I would be very interested in learning what that error code is when you execute DS_ControlLocalServer (if any).

Another Method would be to use the ActiveX capabilities of the DataSocket Server. You would do this by selecting the Create ActiveX Controller in the Tools Menu of CVI and following the wizard. The following code would be necessary using ActiveX to Open and Close the DataSocketServer

////Open the DataSocket Server
dsError = CWDataServer_NewICWDataServer (NULL, 1, LOCALE_NEUTRAL, 0, &datasocketServerHandle);

//Close the DataSocket Server
CWDataServer_ICWDataServerClose(datasocketServerHandle, NULL);

Thanks,
David Duffey
National Instruments
0 Kudos
Message 2 of 2
(2,640 Views)