Simple DataSocket example hangs the DataSocket server

Hi,
I am having problems with the Simple DataSocket example. As soon as I try to connect to the DataSocket server on the local machine using dstp the server crashes. The error signature is:
AppName: cwdss.exe          AppVer: 4.2.3.1                 ModName: mfc42.dll
ModVer: 6.2.4131.0            Offset: 0001bc9b
By restarting the server I am sometimes able to connect but most of the time this only results in a repeated crash. Furthermore when I try to close either the reader or the writer after such a crash I get the error message “the RPC-server is not available”. The only way to close the program is to use the task manager. I am using Measurement Studio 7.1 and Visual Studio 2003 version 7.1.3088 and I have successfully used DataSocket to communicate with an OPC server on the local machine. I would appreciate any suggestions on how to solve the problems since I would like use dstp in my own applications.
Adam

As I wrote in the original post, it is the simple datasocket example that I am having trouble with. I have managed to get the reader and writer to talk to each other by restarting the datasocket server repeatedly, but since the datasocket server crashes most of the times when I try to connect to it (i.e. I press either manual or auto update connect) this is rather tedious work. I think that the files were replaced correctly; at least the file cwdss.exe reappeared. The version of cwdss.exe is 4.2.3.1. Which other files should I check? The version of nids.dll is the same, i.e. 4.2.3.1.
Adam

Similar Messages

  • Viewing sites with Firefox 3.5.11 Hangs the Linux server

    Repeatedly when I open Lot of websites / Huge webpage via Firefox, my server (Linux) hangs. Just need to Know how to activate / view Firefox Debug logs ?

    That site doesn't send a required intermediate certificate.
    * http://www.networking4all.com/en/support/tools/site+check/

  • StatelessSession Example: We were unable to get a connection to the WebLogic server at t3://localhost:7001

    I have seen other related posts on this site but really no answers, the users seem to be left hanging.
    Anyway, I am trying to run the statelessSession example, with the WebLogic server running and listening
    on port 7001 on the current machine (i.e. localhost).
    Here is what I am seeing:
    c:\weblogic\myserver\clientclasses>java examples.ejb.basic.statelessSession.Client
    Beginning statelessSession.Client...
    We were unable to get a connection to the WebLogic server at t3://localhost:7001
    Please make sure that the server is running.
    System Configuration:
    Win2000, WebLogic 5.1, WL Sp2, Java 1.2.2, weblogic home==> c:\weblogic
    I have attached the weblogic.log.
    Regards,
    John

    Hello John,
    When I first install "weblogic", I am successfully able to run the examples, but after some time which I completely forget how I make them run, I install it again and encounter the same problem as you.
    After spending nearly a whole day on restarting computer, viewing ports etc. :) :(, I remember that I make weblogic run from the command line. First, in a console run setenv and startWebLogic tools which are located under weblogic directory and in an another console run setenv again(for possible errors, I want to be sure that it is correct again) and run your client as explained in the tutorials html pages.
    As seen, in computer science, simple things, not hard things, always cause you to lose time :)))
    Best regards
    Banu
    "John Pda" <[email protected]> wrote:
    >
    I have seen other related posts on this site but really no answers, the users seem to be left hanging.
    Anyway, I am trying to run the statelessSession example, with the WebLogic server running and listening
    on port 7001 on the current machine (i.e. localhost).
    Here is what I am seeing:
    c:\weblogic\myserver\clientclasses>java examples.ejb.basic.statelessSession.Client
    Beginning statelessSession.Client...
    We were unable to get a connection to the WebLogic server at t3://localhost:7001
    Please make sure that the server is running.
    System Configuration:
    Win2000, WebLogic 5.1, WL Sp2, Java 1.2.2, weblogic home==> c:\weblogic
    I have attached the weblogic.log.
    Regards,
    John

  • Simple bluetooth example labview pda

    hi, im trying to use the simple bluetooth examples on the pda, i can compile and run the client  on the pda no problems but when i try running the server on the computer it just stops straight off, i thought it was the timeout but thats still at 3000 and i havent changed anything on it.
    i running xp pro sp2, broadcom 2045 adapter and a ipaq 5550 with bluetooth
    any help would be ace
    cheers
    andy

    Hi Andy,
    LabVIEW will only support devices that use Microsoft's Bluetooth Stack, and unfortunatly it appears yours does not. The following list of bluetooth devices are supported by Microsoft's bluetooth stack and therefore LabVIEW:
    Belkin F8T012UK1 EDR Bluetooth USB Adapter
    Belkin F8T003 Bluetooth USB Adapter - 10 Meters ( Belkin F8T003 ver. 2 don't seems to work )
    Billionton GUBTCR41 - 100 m (Software included in the package not installed)
    Conceptronic "Bluetooth 2.0 USB Adapter 200M" CBTU2A / CBT200U2A (Software in the package not installed)
    Dell Wireless 350 Bluetooth Module
    D-Link DBT-120 Bluetooth Adaptor
    Encore USB Dongle (Microsoft Stack)
    Exwell BD-U08 EDR Bluetooth USB Adapter
    Exwell BD-U01 Bluetooth USB Adapter - 10 Meters
    Kensington USB K33085 (Microsoft Stack)
    GigaByte Bluetooth USB Adapter GN-BT05D (Software included in the package not installed)
    Hama Bluetooth Dongle 00049207 (Software included in the package not installed). Inquiries seems to hang after a while ..
    IBM Integrated Bluetooth II on ThinkPad T40 (with driver from Microsoft; file version: 5.1.2600.2180, xpsp_sp2_rtm.040803-2158)
    Trust BT 1300 TP Bluetooth USB adapter (Software included in the package not installed)
    Trust BT 2200 TP Bluetooth USB adapter (Software included in the package not installed) (Microsoft Stack and Widcomm)
    Perfect choice USB Adapter (Microsoft Stack and Widcomm)
    Sorry I can't give you a more possive resolution but unless your device is compatible with the Microsoft Bluetooth Stack it won't work I'm afraid.
    Best Regards,
    Ian Colman
    Applications Engineer
    National Instruments UK & Ireland

  • Client process (uniengd) on the Calendar server is consuming 100% CPU usage

    The Calendar client bits in the Communicator 4.5 release (Calendar Build 981008)
    are suspect of hanging the Calendar server when the end user uses the off-line
    feature. The behavior seen will be that a cpu will start climbing and could
    reach 80-100% of usage, which will cause the response time for all other end
    users to be extremely slow and may not even accept any new logins.
    <P>
    The patch for these bits is available via the Smart Update (Windows and Mac) web
    site:
    <P>
    http://home.netscape.com/smartupdate/su1_40.html
    <P> Or you can download the complete version from
    http://home.netscape.com/download/selectplatform_1_361.html
    <P>
    For Unix platforms, you will need to download the compressed tar file
    (available from http://help/filelib.html#nscal)
    and reinstall it.
    <p>NOTE: To verify that you are executing a patched version, in the
    Calendar client:
    <b>Windows platform</b>
    <br>Help menu pulldown, About Netscape Calendar, make sure it has <b>Build
    981104</b> or higher.
    <br><b>Mac platform</b>
    <br>Select the file from your desktop
    <br>File menu pulldown, Get Info. Make sure has a <b>date of 121698, version
    4.51</b> or later.
    <br><b>Unix platform</b>
    <br>Help menu pulldown, About Netscape Calendar, make sure it has is <b>Version
    4.51</b> or higher
    <P>
    The procedure for determining which user of Calendar is causing the server's cpu
    hang is as follows:
    <OL>
    <LI>Using your favorite monitoring tool on the server, note the PID
         (process ID) of the uniengd process that is consuming
    80 - 100% cpu activity.
    <LI>Change directory to /users/unision/db/tmp/PID#
    <LI>Execute the command "strings" on all the files in the directory
         (there are usually not very many):
    <P>
              # strings *
    <P>
         Near the end of the output, you will see the user's name.
    <LI>You can now kill the uniengd process on the server:
    <P>
              # kill PID# (note: do not use the kill -9 unless absolutely
              necessary!)
    <P>
    <LI>Contact the name of the user whose process you looked up and determine
         what version of Calendar client they are using. Immediately inform
         them of your procedure on upgrading to the correct version.
    </OL>

    Hi TrondWH,
    Thanks for contacting Microsoft.
    Currently, would you please try cleaning boot the server and test how the issue goes. Cleaning boot can exclude some third-party application affect. Following are the detailed steps about clean boot:
    Log on to the computer by using an account that has administrator rights.
    Click Start, type msconfig.exe in the Start Search box, and then press ENTER to start the
         System Configuration Utility.
    On the General tab, click Selective Startup, and then click to clear the Load startup items check box. (The Use Original Boot.ini check box is unavailable.)
    On the Services tab, click to select the Hide all Microsoft services check box, and then click Disable all.
    Click OK, Choose Don’t show this message again and then click Restart.
    Please check if the issue is still the same.
    Please let me know the result.
    Best regards,
    Sophia Sun
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Can you monitor all dataitems on the datasocket server?

    I would LOVE to be able to just sit back and watch a list of all the dataitems that exist on a datasocket server... as well as the values they possess. Is there any software out there to do this? It would be an incredibly useful debugging tool if its not already out there.
    Jim

    Hey guys -
    Interestingly enough, this functionality is somewhat available through our DataSocket JavaBean, Tools for Visual Basic, Tools For VC++, and LabWindows/CVI environments.
    "Somewhat" probably intrigues you, let me explain. All 4 tools have a Get Attribute Names function that returns an array of all the attribute names (go figure) for a specific DSObject. True, it is not a list of ALL objects present on a DS Server, but if you create and use a single object it boils down to the same thing. In LabVIEW, as you know, there is currently no equivalent function. You just write/read to/from an unique address. The other 4 alow grouping of values into objects.
    I am working on an example that will allow LabView to utilize these capabilities, I'll attach it to thi
    s forum and post in on our external website as soon as it is finished. You will still need to have Tools for VB, VC++, or CVI - I will most likely make ActiveX calls from LabVIEW to these guys.
    If you have Tools for VB, let me get you started -
    'Sets the values for CWDataSocket1 object
    CWDataSocket1.Data.SetAttribute "SampleRate1", 1000
    CWDataSocket1.Data.SetAttribute "SampleRate2", 2000
    CWDataSocket1.Data.SetAttribute "SampleRate3", 3000
    'Print the names of the attributes and
    'stores it in array v
    v = CWDataSocket1.Data.GetAttributeNames
    For i = LBound(v) To UBound(v)
    Text1.Text = Text1.Text + " " + v(i)
    Next i
    Also, I do expect these capabilities to be integrated into a future version of LabVIEW/DataSocket. NI LOVES the web and communication technologies.
    good luck-
    Ben Schulte
    Application Engineer
    National Instuments

  • Is there any way to run the datasocket server from the vi

    I want to run the datasocket server from the LabVIEW program and is there any command to do this. Because, I built one application vi and this vi is link with another vi using datasocket.So every time before i run the program, i need to run the data socket server. So if i forget to run the datasocket server, I need to restart my vi. So what I want to do is I want to run the data socket server, when i open this VI. So that I do not forget. Thanks.
    Saw.

    In the examples\comm folder there is a file called datasktxwin.llb In that library open e.g. DS 3D Graph Writer...launch it and you will see that it launches the data socket server. Take a look at the code and you'll find a VI that launches the server; "Launch DS server if Local URL.vi".
    If you know the path to the server executable you can always launch it using the System Exec.vi from the communication palette too. The typical command line would then be:
    C:\Program Files\National Instruments\DataSocket\cwdss.exe
    MTO

  • DataSocket Server will not start when the Launch DS Server if Local URL.VI is bundled into a LabVIEW application.

    I want to run a LabVIEW application on several machines remotely that do not have LabVIEW installed (licensing issues). Hence I have built a LabVIEW executable with the RunTime Engine to install on all of these remote machines.
    The VI has a bi-directional link, using Datasockets, to a machine with DAQ and Image acquisition functions. It primarily receives data items, but also the capability to change data items so it needs to run the "Launch DS Server if Local URL.VI" in order to publish data to the DataSocket server.
    When I run the pre-built VI on a machine that has LabVIEW Developers Edition installed, everything works fine - ie.
    the DataSocket server starts on the remote machine. However when I build the *.exe application and run it on a machine with and without LabVIEW Developers Edition installed the VI successfully subscribes to the DAQ and Image Acquisiton machine, but it does not start its own connection to the Data Socket server, and hence does not publish the data that the DAQ machine needs to suscribe to. IT seems that the Launch DS Server if Local URL.VI is bypassed? I have fiddled around with the Build settings but to no avail.
    In short, how do I get the DataSocket Server to run in a LabVIEW executable? Is it indeed possible? Any advice would be welcomed.
    When distributing a Labview Application (*.exe) with Data Socket Server Publish functionality, the DataSocket server does not start and hence no data can be sent by the Remote PC to the Server. The VI successfully retrieves data from the DS Server. I have used the "Launch DS Server if Local URL.vi" in the ditributed application but for some r
    eason this VI is not executed when I run the executable. How can you force the DataSocket Server to run with executable LabVIEW applications?

    Ryan,
    How to add Datasocket Server Control.vi?
    Source Files only show Project Files.
    So, I added Datasocket Server Control.vi file to the project first.
    Then I added it to Always Included < Source Files < Application Properties (Build Executable).
    Last, I built the Executable, but it didn't work.
    Can you help me.
    Thank you.
    Pedro Raposo

  • Interfacing C++ to a Labview Cluster Using the DataSocket Server

    I am new to LabView so please be patient with me here.
    I inherited a PC that is running a large, complex LabView application.  It used to interface with a second PC that also ran labView, and apparently all was good in the world.  The second computer is being replaced with a new system that runs a Visual C++ application which includes Measurement Studio.  I am trying to replicate the data exchange between the 2 computers using Measurement Studios CNiDataSocket class.
    Here is the problem.
    In the original system, the data exchanged between the 2 computers was bundled into a cluster. Measurement Studio has no utilities that support such clustered data as far as I can tell.  It seems pretty easy to exchange basic data types and button control values, but not so much with the cluster data.  I have tried to fake it by looking at the network packet data format, but I got no where with that.  I really don't want to mess with the legacy LabView code if I can help it.  I am acutally considering building a small LabView client on the LabView machine that exchanges the data in the "unbundled" form, bundling it up, and sending it off to the DataSocket server.  That, of course, will take a fair amount of LabView learning curve which I am trying to avoid.
    Anyone have a better idea?

    Hi schlew,
    Unfortunately your initial suspicions are correct.  There is no direct way to read a cluster data type in a C++ environment using Measurement Studio data sockets.  There are a couple of different options to read the cluster in.  Probably the easiest is the one you mentioned of creating a client within LabVIEW that reads that data from the data socket connection and parses the data into the individual elements.  It would be possible to build a dll out of the LabVIEW code so you could call this directly within your C++ code.  Here is a link to a KB that explains how to call a LabVIEW dll from C++.  As far as creating the dll itself, it is very similar to creating an executable, but in your build options you select to build a dll.
    The other option that requires a little more work would be to modify the original LabVIEW code so that it is sending a byte array, and then parse the byte array on the receiving end in the C++ code.  Hope this helps!
    Pat P.
    Software Engineer
    National Instruments

  • Read from datasocket server

    The question is simple. Is there any way to know the variables and values that have been written to the datasocket server without creating a VI that reads values?
    Thanks for your help

    I'm afraid that it is not possible. You must read the items from the DataSocket Server to know the item values that are been publishing
    crisR

  • "DataSocket Server has encountered a problem and needs to close" - why?

    I am trying to use DataSocket to publish a Front Panel control. First I start the DataSocket Server and then run a corresponding VI. It goes well once or twice but in the end DataSocket Server crashes producing an error message and offering to send an error report to Microsoft:
    "National Instruments DataSocket Server has encountered a problem and needs to close. We are sorry for the inconvenience".
    I wonder if there is any remedy for this. Windows firewall does not seem to be the cause - the crash happens with the firewall disabled.
    Alternatively - is there any way other than using DataSocket to dynamically access data from a running VI?
    Regards,
    Danielis

    Hi Danielis
    This kind of errors usally occurs when there is a file corruption. In either the application of the configuration files. The Datasocket configuration is save in the 'cwdssini.dss' file. this is by default installed in 'C:\Program Files\National Instruments\DataSocket'. Yu could try and remove this and then run the Datasocket Server Manager once to recreate a file with default settings.
    We it is a problem with the Application you could try and install a fresh copy on a other machine and run the VI and server on that machine. Or just run the server on the other machine and connact you Front panel object to that server instead.
    As for other ways of doing this you could look into the Shared Variables that have been introduced in LabVIEW 8
    Hope this helps
    Karsten

  • Datasocket Server data persists

    If I write to the datasocket server, the data that was written will persist until it is overwritten. This allows it to be read my mulitple readers I guess. In my situation, however, I need to have the data on the server "erased" after it is read one time. Is there a server manager setting that will allow this?

    Hi,
    I think that Data Sockets are not that smart. They work as a global variable; what you write them, they stay until the Data Socket server is shutdown. What I did once was making the reader read the value and overwriting with a 0 value which would be the signal that there's no new value to be read. Another option is the writer to add a prefix to the real data (a 1 for instance) so the writer writes "1 + the data" and the reader reads it and writes a zero instead. The reader knows that if the string starts with 1, it has sense, filters it and uses the data. If it starts with zero, there's no new value to be read.
    Makes any sense?
    Marce

  • Datasocket server seems to fail after continuous use.

    The Datasocket server seems to fail after continuous use.  (Labview 7.1 on XP)
    I have a data acquistion system that collects data and presents it to the operator.  Then I have from 1-3 remote units that can connect via DS to the acquistion unit to view the data.  As a general rule things work dandy!  I have the data published from the front panel of one VI and subscribed to by the remote VI(s).  However it seems that after some indeterminent time the DS just stops publishing data and my remote units go into alarm indicating that they can no longer get data.  If I shutdown and then restart the DS server then things seem to clear up and work again.
    Anyone seen this type of problem?  Unfortunately my app is pretty large and it acquires data from 26 field units so its not real practical to post the code!
    I wonder if using the DS VI's would change performance as opposed to the front panel publishing/subscribing that I currently do?  Or can DS just not handle the load, should I change to a TCP/IP handshaking?
    Thanks!
    ~Gold

    Here's the basic piece of code. The outer case structure was used because that program already had some DS related stuff and I wanted to wait before I start checking to avoid disturbing it. I added the array at the bottom for some logging so I could check when it happened, but I haven't been called for it since, so that array has proved unnecessary.
    Try to take over the world!
    Attachments:
    DSerror.JPG ‏56 KB

  • Datasocket Server vs. Shared Variables

    Does anyone have any thoughts on what is better - Datasocket Server vs. Shared variables?  I have a table on my application that has text indicating application status, information, warning and debug messages and would like to view it remotley over a network.  The old way was to use the datasocket server and bind it to the other control.  Is the new shared variable engine more efficient?  These machines are at different sites.
    John

    Hi John,
    It definitely seems as if you want to gauge user experience on this issue, but since you've had no response I'll chime in and give the "National Instruments view" on the DataSocket/Shared Variable debate.
    Shared Variables were created to expand the functionality of DataSocket and simplify the programming style required to pass information between networked computers. We have extensive literature on this topic and the most pertinent is linked here.
    I hope some users will post to this forum to give you a less formed response than you get from me, but I am more than willing to answer more specifically if you have any more questions regarding this issue.
    | Michael K | Project Manager | LabVIEW R&D | National Instruments |

  • I would like to use a datasocket server to transmit

    I would like to use datasockets to connect transmit data at a rate of 20
    times per second
    I'm using LV6i on Windows 2000 SP1 and experiencing problems to achieve a
    higher rate than 5 times per second. I've analized the packet sent between
    the two computers on a dedicated ethernet network and has found that their
    are are a 200ms delay before the server acknowledge the computer that
    publiched the data.
    Can any body help me.
    Thanks Nieldane Stodart
    NAC
    [email protected]

    > I would like to use datasockets to connect transmit data at a rate of 20
    > times per second
    >
    I suspect that it is possible to get the datasocket server to update quite
    a bit faster, but I'm not familiar enough to be able to help with that.
    If you do not get the server to work for you, you may want to use the
    VI Server. It takes a bit more work, but I know that it can have much
    higher rates. This will involve turning on the VI Server allowing
    the writer to connect with the reader and publishing a VI that takes
    in and logs the new value. Then from the client, you need to open a
    reference to the VI on the server machine. Call it as often as you
    like passing in the new value.
    Like I said, this is a bit more work, but there are some benefits
    to it. The m
    ain benefit is that the transfers are under your
    control.
    Greg McKaskle

Maybe you are looking for

  • There has to be someone out there that knows the a...

    I've been researching threads from as far back as 2005 and apparently this problem has been going on unsolved for some time. When some phones (mine is an N96, but i've read all  different Nokia models experiencing the same problem) are either reset o

  • HT204088 in-app purchases do not work anymore

    does anyone know how to solve this?

  • Had to do a restore/ cant find my music

    I purchased a couple songs and audio books and had to do a restore point to computer and now I dont know where my purchased items are or to even login to the site, to bring up my music and i have not even moved it to my ipod cus I need help with that

  • My pdf get covert to word i dont want to

    all my pdf files are converted to word i dont want to be kindly help me Regards Gasper Jesudas

  • Local photos on ios 8 device?

    so I think I understand the photo changes to iOS 8 (no camera roll, all icloud and local photos stored together in the recently added album). But my question is - how can you tell which photos are local to your device and which are in the cloud?