error datasocket

Hi everyone, when I have executed the mandar... There is an error that appears someone can help me?

error 42 when datasocket write generic error...

Thank you!


Tags: NI Software

Similar Questions

  • Generic error Datasocket 42 on window minimize

    I use LabVIEW Datasocket connections on LabVIEW 2009 to write to an Kepware OPC server.  I write 64 tags.  It works as expected with local as well as remote OPC server.  The loop that writes each value is able to run and update of values with a wait of 10ms inside the loop.  I have only run problems when I reduce or restore the façade, the block diagram or the window of the probe.  I have 42 error: generic error of Datasocket Open.vi.  This seems unrelated to the DCOM problems that seem to be the cause of this error.  I tried this with local and remote OPC servers, and I got the same result.  Setting loop rates, but 1 second seems too fast it runs without error to launch on minimize.  With 1 second wait, it takes more than a minute to update 64 tags, which is unacceptable for my project.  It is quite easy to simply do not minimize windows while it is running, but that shouldn't be a problem.  I also noticed that several times trying to restore a minimized window, while running the program, I have to click several times on the window in the taskbar before it restores.  I use this on a Dual Core system with 4 GB of RAM 2.8GHz, so the performance of the system should not be a problem.  Ideas or suggestions or additional troubleshooting steps are welcome.  Thank you.

    ejensen wrote:

    Thanks for the suggestions.  I tried setting to basic services, but it did not help.  I also changed the computer for best performance thus minimize and restore are animated is no longer.  I look at CPU and RAM, he doesn't know that it is a question of resources.  After a little more experienced, it seems only to raise errors when I click on the button reduce.  When I right click in the task bar and click on reduce at least, I've never seen the error.  When I click on the button minimize, it happens almost every time.

    Your suggestion to open/close once and write several times sounded good, until I went to implement.  For mutual FUNDS, I have to open a connection to the specific tag I want to write.  There may be a way to open a connection to the server, and then specify the tags, one at a time, but I'm not aware of it.

    My bad!

    I missed the fact that you have a loop in multiples.

    So to change my suggestion too

    Move the open air in a loop For which runs only once and use a tunnel exit on this loop For to create an array of references. A reference for each DS connection. Use this table to the refs of conncetion instead of the table name to control you mainf loop For. Similarly to close.

    Now you'll excuse the following

    A loop to open them all.

    A loop to read.

    A loop to close between them,

    Data taken unite us.

    Welcome to moans.

    Ben

  • 63 error DataSocket write in getWavelength_v80 EDITED.vi, help? Please, I beg you!

    Hey guys, I'm new to LabView and I myself thought about all I know.  I am a student at NC A & T.

    Good so I took a piece of code that I acquired Bristol, and it's for a Bristol Wavemeter V1.22.  First, I edited to get a graph in there to display the data and get a slope and the intercept.  Now I try to connect it to a computer that controls a ND6000 COntinuum.  We have the existing code for the ND6000 that allows to connect the two computers.  I took the code there which was the part that connects and now when I plugged everything up, I get the error "error 63 occurred at DataSocket write in getWavelength_v80 EDITED.vi" message.  He says; Possible reasons:

    LabVIEW: Serial Port receive buffer overflow.
    =========================
    LabVIEW: The network connection was refused by the server. For TCP/IP, make sure that the server is running and listening on the port you want to use. Firewalls can also cause a server to refuse a connection. To VI Server, make sure that you have enabled the server from VI tools > Options > VI: setting up the server. »

    I tried making sure that everything in the configuration is correct, and it is.  Can you guys please help me?

    Thank you.

    I have attached the folder located in because you don't have to have the library feature.  The file is located in the example of wavelength of Bristol meter V1.22\Programming Interface\LabVIEW I.

    Thank you once again!

    Then I realized the problem and it was because I didn't have the DATASOCKET SERVER running when I was running the program... Thank you guys for help

  • Open connection datasocket 42 error

    Hello

    When I run my application as a stand-alone application from the "open Datasocket connection' VI, I get error 42, I could see using the"Enable debbuging"function in the build specification.  When I run my application in the source code I have no problem with the Datasocket Connection 'open '.  This is the exact address for the stand-alone executable and source code that points to another computer application LabVIEW.  The Protocol that I use is psp://ComputerName...

    Any ideas?

    Michel


  • Query HTTP Get Datasocket returns error 42

    Hello

    I currently use the 'DataSocket Read' function to make the HTTP request.

    My request is actually to make a HTTP Get request from a particular Web site.

    For example:

    http://local.yahooapis.com/MapsService/V1/geocode?appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--&stre...

    This request fails and the error return code is "Error 42".

    However, I have no problem making an HTTP request to other sites.

    For example:

    http://www.Google.com.SG/search?hl=en&q=datasocket+read+error+42&btnG=search&meta=&AQ=f&OQ=

    Can I know what is the reason for this failure happen?

    Thank you

    How to say

    Hi how to say,

    I've handled a request for assistance and came across this thread when I was looking for information, do not know if you still need help because it has been a while, but here are the VI, you can use.

    The problem of Datasocket was born because the page you are trying to read is actually a Web Service that returns information in XML format. You need to add [text] at the end of the URL for you Datasocket return information in the form of unformatted text. Please see this KB for more information: recovery of a file via FTP or HTTP using DataSocket unformatted text

    After that, it is the string manipulations to take the information from latitude and longitude based on information in the returned text.

    I hope this helps.

    Best regards
    Boon Chen

    Applications OR the ASEAN engineer

  • Error-2147220224, DataSocket

    I wrote a program in C++ that uses the functions of Dataskt.dll (Datasocket).  I have Labview 8.6 and the program works fine on my computer, but when I passed the program to someone who is running 8.5, I get error #-2147220224 with no explanation other than the system error.  I think that this error has nothing to do with cviauto files, but when I transferred from my computer on the other that it always produces the same error.  Versions of the DataSocket attempting to access to each computer are the same (4.5 (0)).

    Anyone know what files I need to combine with my program so that it works?

    Thank you

    -Jeff VT

    Have you tried to install the CVI Runtime and see if your application works with that?

  • Get the error 42 with datasocket

    Hi people,

    I'm getting erro 42 with a simple datasocket read to a local network "http://172.27.72.70/versions" connection, I can query other webpages such as www.google.com.   Any idea what I need to add to the front of this URL to make this work?

    I saw this http://digital.ni.com/public.nsf/allkb/27272FE3A32C334286257612004D9153

    I don't know what that means:

    "To work around this problem, you need to add [text] the URL connected to yourDataSocket Read.vi.  "

    Chrome, for example, can display information about the use of the same order.

    Any ideas?

    LV8.6

    -SS

    Usually I find that workaround means exactly what it says.  Change the connection string:

    http://172.27.72.70/versions [text]

  • corrupt datasocket instalation?


    Hello

    There is some information that may help to understand this problem.  Right-click on "My computer" and select manage. Go to event viewer > Application log and search for MSIErrors.  The error that is most useful is one that has a GUID and a file path.  Can you post the test of these newspapers?

    What is happening is THAT MSI is not finding a file or registry key that has been defined as a key element of the DataSocket.  Then it goes and find the first thing that has this file in there to try to fix it, which just happens to be the of LabVIEW Runtime Engine.  In addition, ICB is not in the LabVIEW RTE, is the finder example Application CVI uses is written in LabVIEW that n requires RTÉ.

    Jeff
    NEITHER

  • How to generate a working executable from the example of writer DataSocket VI file

    I am trying to build an executable file of the example "DS Writer.vi".  The first problem was that the "Control.vi of DataSocket Server" was not distributed with my script compile/install.  I fixed it (thanks Dennis) but now I get the following error message.

    LabVIEW: (Hex 0 x 626) cannot open a VI with compiled code separate in a Run Time Engine that does not have access to the VIObjCache.

    There is a solution to this (http://forums.ni.com/t5/LabVIEW/Getting-LabVIEW-load-error-code-59-using-LabVIEW-2010-with-a-Run/td-...), but it involves change a property of a VI library of DataSocket (if I understand though).  I'm reluctant to make a change to a library OR standard, because it could cause maintenance problems in the future (other developers not having the same change, or updated versions of LabVIEW).

    Has anyone successfully built an executable using DataSocket?  If so, can you offer any advice?  I'm using LabVIEW 2011.

    Thank you, Mark

    Thanks Nathan.  I was able to create and deploy an executable with DataSocket.  The last obstacle was to "uncheck the option"Code is compiled separately from the source file"in the properties of the VI" for the "DataSocket Server Control.vi.  The only problem with this solution is that I now have a custom DataSocket library.  I think that a solution would be to copy as VI or library in my project folder so that the solution is transferable to others in the future.  I would like to hear how other developers LabVIEW with custom libraries, either by strictly avoid that, keeping their own copies, or another solution.  But this is probably a topic for a new thread.

  • LabVIEW OPC error

    Hello

    I am trying to bind a Boolean buttons on Panel before Labview for items on an OPC server. (I'm under LabVIEW Professional Develompent system version 9.0)

    I'm hoping to use Labview as a client for a SCADA application for a client.

    I can go to and see all my OPC tags when using Datasocket as the method of data binding.

    When I run the VI, I see a red light next to the buttons on the front panel, giving the following error message: "error: cannot add the item to the OPC group.»

    I tried several other test of the OPC clients to test whether the problem is with the server or the client. I was able to add (and write) at the points of each test client I've tried outside of Labview.

    However, I noticed that I had to set a path for the OPC items, when you use a Client of Quick Kepware OPC, otherwise, they would not add. I guess I might have to do the same thing in LabVIEW, but I can't figure out how to do this.

    Can you please indicate.

    Thank you.

    Thanks for the info. I had actually heard than before. I know that the server has worked with OPC clients that supported only the OPC 2.0 because I have tested, so I assume it would work with Labview.

    However, after a more thorough investigation of this problem I have since discovered that there is a known bug with the version of the server OPC I use and Labview. I guess that explains all the problems I had.

    Thanks for all the answers.

  • datasockets - only a partial success.

    Hello

    Tried to run the examples (reader and Writer) in the C:\...\National Instruments\CVI2010\samples\datasocket folder in both scenarios:

    Scenario_1: the two player / Recorder run on different computers, but in the same local network.

    Result: Ran are expected.

    Scenario_2: same as Scenario_1 with the only change: Reader ran outside LAN of the writer. It's in the box wireless Wi - Fi (internet surfing was normal).

    Result: PROBLEM. The player could not connect to the server and a message was produced: error: disconnected: Connection timed out.

    No idea what is causing this problem?

    Andrzej


  • Unable to connect to the remote Mitsubishi OPC server using datasocket

    I can read OPC items locally using datasocket, however if the customer is in another PC I get error 1184 when I try to connect to an element. The datasocket select URL works well.

    Both computers are Windows 7 machines in the same workgroup sharing the same username/password.

    I am able to read items through the DSC OPC client (but I don't want to use DSC). This seems to indicate that the DCOM security settings are good.

    I know there is a lot of documentation on remote access OPC and DCOM and I read most of the documentation by OR and other sources, nothing helps. None of the docs are to mention this specific error code. Any suggestions?

    Well, this is typical... After two days of efforts, just 40 minutes after you posted my question I found the solution in another thread of this forum.

    The remote registry service must be running on the server.

    Now I only need to rewind some of the many settings that I did it carefully, to find the minimum working conditions.

  • datasocket VI of the client side just stops

    Hi guys, I'm trying to send his micro-captured to another PC (two PCs connected by a crossover cable). I tried various options such as TCP, Datasocket but nothing has worked. With TCP, it always shows the input buffer overflow. With Datasocket, it shows no errors, but stop just the VI on the remote PC. I was not able to understand the problem. I'm using LabVIEW 2009 version 9. I enclose two screws for your tests. Help, please. Thank you. Kind regards.

    Hi Rocky,

    I looked at your code and made some changes. First of all, I couldn't tell why you were dividing the samples/ch by two for the audio playback function. I disabled who. In addition, the "initial data" fed you on the first 'handwriting' VI and at the entrance to the function default data DataSocket Read was a cluster of waveform. Audio data sent through the connection DataSocket are an array of clusters of waveform (a cluster by channel). This probably caused DataSocket problems for you.

    I put the configuration values of the sound of what I found in the example of "continuous sound Input.vi' VI. I also added some graphics for Visual indications.

    Note that you must have the DataSocket Server (under windows: start-> programs-> National Instruments-> DataSocket-> DataSocket server).

    If these don't work, I would look at the network/firewall issues. Also, if you want less latency, consider using UDP straight-up. He should have fewer resources than DataSocket (and with a filter connection, I guess you won't have much to worry about data loss).

  • Problems creating a new preset of data element in DataSocket

    I'm doing a simple test using datasocket between two computers.  When I use the predefined data element "SampleString" I can write my string value for the socket server data, which is on the same computer, and read it on a networked computer.  When I create my own new predefined given that it does not work.  I get an error saying I have insufficient privileges to read, write, or create items in the datasocket server.  I was reading or writing anyhost to my new predefined element, so I don't think it would be a problem.  Any ideas?

    I found the problem.  After you have created a new data element predefined, I have to close the datasocket server and datasocket Server Manager, and then reopen for the new data element is taken into account.

  • Access the DataSocket only using nids.dll

    Hello
    I have the task to communicate to a program, written in LabView, while communicating data hit, using only the INIDSCtl and ICWData of nids.dll interfaces. Communication in the sense that I send data to the program LabView works, but I have problems receiving data. The data that are sent are a set of 4 floating values (32 bit floatingpoint). I can see in the diagnoses of Server Socket given that there really are packets sent, but I can't receive these data.
    I'm this programming in C++ using MS Visual Studio 6.0. I don't have any other tools (such as Measurement Studio).

    The labour code to send only an integer value is simple 16 bit (I removed all control error for shorter code)

    #import "C:\windows\system32\nids.dll" raw_interfaces_only, no_namespace, named_guids
    ...
    HRESULT hr = g_pNIDSCtl.CreateInstance("CWDSLib.CWDataSocket");
    ...
    ComBSTR bstrURL (_T ("dstp://localhost/emmenu_to_ts"));

    HR = g_pNIDSCtl-> put_URL (bstrURL (bstr_t));
    HR = g_pNIDSCtl-> put_AccessMode (cwdsWrite);

    b short;
    HR = g_pNIDSCtl-> SyncConnect (30000, & b);

    ICWData * pData = NULL;
    HR = g_pNIDSCtl-> get_Data (& pData);

    CComVariant varStart (short) 1;
    HR = pData-> put_Value (varStart);
    pData = NULL;

    HR = g_pNIDSCtl-> Update();

    HR = g_pNIDSCtl-> Disconnect();

    However, the code to retrieve the data that does not work is as follows

    CComBSTR BstrURL (_T ("dstp://localhost/ts_to_emmenu"));

    HR = g_pNIDSCtl-> put_URL (bstrURL (bstr_t));
    HR = g_pNIDSCtl-> put_AccessMode (cwdsRead);

    b short;
    HR = g_pNIDSCtl-> SyncConnect (30000, & b);

    ICWData * pData = NULL;
    HR = g_pNIDSCtl-> get_Data (& pData);

    CComVariant varVal;
    HR = g_pNIDSCtl-> Update();

    HR = pData-> get_Value (& varVal);
    //
    VarVal HERE is always 0, regardless of the values in the data?
    //
    pData = NULL;

    HR = g_pNIDSCtl-> Disconnect();

    My question: is it still possible to recover a table of 4 floats using only nids.dll interfaces and if yes, can someone push me in the right direction or give me some advice.

    Thanks in advance
    Peter

    Hello Peter,.

    Sorry I mixed things up... I really need a window because I wanted to be able to use INIDSCtl.SelectURL ().

    But there is no need to use DataSocket. The important things are:

    1. call CoInitializeEx() with COINIT_MULTITHREADED parameter.

    2. when 2 une fois connecte connected to the server, call INIDSCtl.GetStatus () repeatedly until it returns cwdsConnectionActive.

    3. call INIDSCtl.Update () and read your data.

    Here is a quick and dirty example you can try in conjunction with "DS Writer.vi' example:

    #define _WIN32_WINNT 0 x 0501

    #include
    #include
    #include

    #include

    #import 'nids.dll"no_namespace don't

    int main()
    {
    HRESULT hr = CoInitializeEx (NULL, COINIT_MULTITHREADED);
    {
    Instantiate DataSocket.
    DS INIDSCtlPtr;
    HR = ds. CreateInstance (__uuidof (CWDataSocket));

    To connect to the server.
    HR = ds-> ConnectTo (_bstr_t (L "dstp://localhost/wave"), cwdsRead);

    Wait until the connection is established.
    Status of CWDSStatus;
    While ((statut = ds->GetStatus()) == cwdsConnecting)
    {
    Sleep (100);
    }

    Get data.
    While ((hr = ds->Update()) == S_OK)
    {
    if(DS->GetDataUpdated() == valeur VARIANT_TRUE)
    {
    _variant_t retVal = ds->-> GetValue GetData();
    check the type of the VARIANT. It must be an array of double.
    If (V_VT(&retVal)! = (VT_ARRAY |)) VT_R8))
    throw _com_error (E_FAIL);

    Unpack the table.
    SAFEARRAY * psa = V_ARRAY (& retVal);
    If (psa is NOTHING)
    Throw _com_error (E_POINTER);

    He must have a dimension.
    If (psa-> SICGD! = 1).
    throw _com_error (E_FAIL);

    Double HUGEP * vals;
    HRESULT hr = S_OK;
    If (FAILED (hr = SafeArrayAccessData (psa, (Sub HUGEP *) & vals)))
    Throw _com_error (hr);

    for (long unsigned I = 0; i < psa-=""> rgsabound [0] .cElements; i ++)
    {
    std::cout< vals[i]=""><>
    }

    Table is no longer needed.
    If (FAILED (hr = SafeArrayUnaccessData (psa)))
    Throw _com_error (hr);
    }
    }
    }

    CoUninitialize();

    return 0;
    }

Maybe you are looking for

  • Pavillion DV7: unlock the password

    After that 3 attmpts I get the 85462466 code can help you?

  • Detect the finger leaves the scene

    Hi all I have an object in my scene which can be dragged around. He listens to event mouse_down and begins after the mouse/finger on each mouse_move event until he recorded a mouse_up event. How can I detect when the user's finger leaves the side of

  • High file - will

    I downloaded Image #118630836 and the file will not open in Illustrator. Error reads "Can t Open the Illustration. I tried opening on different computers and different versions of Adobe Illustrator. I also tried to change the file extension to pdf fo

  • OAAM Login Page:

    Hi gurus OAAM,. The login page http://oaam_servername.com:14300/oaam_server/oamLoginPage.jsp OAAM, we see a knowledge of static data Login:+. Enter your user name. + follow-up of the label: username+. These values are a part of any file property. ? S

  • In the query in Oracle 11 g, how can I refer to the results of different column...

    I want to be able to view the results of C1 to another expression of the column C2. I get ORA-00904: identifier not valid "C1", which makes sense. I know that I can repeat the WHOLE very long in my C2 DECODER, but I was wondering if I can register th