06-03-2005 11:26 AM
06-03-2005 11:52 AM
06-03-2005 03:45 PM
06-03-2005 07:40 PM
[Computer A] --- DSTP ---> [Computer B]
SCENARIO ONE:
[client computer, user space, classical LabVIEW VI]
--- DSTP --->
[server, background service, DLL built with Application Builder]
SCENARIO TWO:
[client computer, user space, classical LabVIEW VI]
--- DSTP --->
[server, background service, EXE built with Measurement Studio's DSTP library]
06-04-2005 03:35 PM
06-06-2005 09:27 AM
06-06-2005
02:38 PM
- last edited on
11-14-2025
01:07 PM
by
Content Cleaner
Measurement Studio, CVI, and LabVIEW can all communicate with each over via DSTP, so your second scenario should work. The service would be easy to create with .NET and Measurement Studio. A brief overview is described in "Creating Windows Services." A more detailed overview is described in "Walkthrough: Creating a Windows Service Application in the Component Designer." However, note that both the Measurement Studio C++ and Measurement Studio .NET DataSocket interfaces use the DataSocket ActiveX control beneath the covers. This means that the DataSocket part of your service will need to run on an STA thread and you will still have to deal with pumping Windows messages as Brian described earlier.
Depending on the nature of your application, another option that may be easier would be to create a web service with .NET and Measurement Studio and then communicate with the web service from LabVIEW. The Developer Zone article "Building a Web Service-Based Application in LabVIEW 7.0" describes how to use a web service from LabVIEW.
- Elton