07-28-2006 07:56 AM
Hi all
Am using PSP protocol to communicate between my applications running on Real time targets and host applications. I have created about 10 shared variables or data items using LabVIEW and deployed them in a PC. Am connecting to shared variables from RT target applications (created using LabVIEW) using DataSocket functions, in this case the connection is pretty fast and every thing works fine. My host application is a CVI application, even this uses the DataSocket functions to connect to and send and receive data to the shared variables. The host application is able to send and receive data to the shared variables, My only problem comes while I close the host application and use the DS_DiscardObjHandle to discard the handle, the function never returns, also the application hangs and remains in the memory, this happens when am running the application from CVI, if I run the run the application by double clicking the .exe and close, an exception is thrown which says “A break point has reached, click OK to terminate the program”. Can any one please give some input on this. I did not observe this problem if i open connection to only 1 data item.
Thanks and regards
Arun
07-31-2006 04:30 PM
07-31-2006 10:02 PM
Hi Charlie
Thanks for the reply. Am glad that you will investigate it, and about using DataSocket server, we are actually using it, but with DataSocket server we have another kind of problem, the DataSocket server hangs when am opening connection from my RT machine. I have 4 RT machines which are connected to DataSocket, so if the there is a connection loss due to any reason, and if all the RT machine try to connect togeather to the server, the DataSocket server does not respond at all and the connection is never established. but the connection speed with same function in CVI is much faster. It will be helpfull if you could give some input on this too.
Regards
Arun
08-02-2006 10:15 AM
08-03-2006 08:25 AM
Hi Charlie
Thanks for the responce, here are the anwers to your questions.
3. If while it's hanging, can you connect to it from any where else? Like another LV program or CVI?
Ans: When the DataSocket server is hanged or does not respond to mouse events none of the applications can connect to it, not even CVI applications.
Thanks and regards
Arun
08-04-2006 12:31 PM
08-05-2006 03:18 AM
Did u try connecting from different PXI machines?. Am connectiong about 10 different dataitems in the DataSocket server. you will observe that to connect all 10 dataitems parallely it takes more than a minute.
The DataSocket server am referring to is the same application which shows the number of processes connected, packets sent,received.
Regards
Arun kamath
08-07-2006 07:00 PM
08-08-2006 08:02 AM
Hi Chrlie
Thanks for the reply, I checked on what you suggested, I observed that the connection from a windows machine is much faster than when a DataSocket connection is opened from an RT machine. Also observed that when a RT machine tries to connect to the DS server, the DS server immedietely reflects in the "process connected" box that another process is connected, but in the RT machine the DSOpen function has not returned yet.
I have 10 data items on the DS server, and i connect to all 10 data iems from 4 RT machines. Also the opening of the connection to DS server for different data items is spread in to different VI's.
Regards
Arun
08-09-2006 06:33 PM