Problems in using Labview DLL with TestStand!

Hi,
I tried to put the VI's to create a TCP/IP Connection, read/write Data to it and close it inside a LabVIEW DLL and use these functions with TestStand.
The problem is to get access to the ConnectionID generated as TCP Network Refnum in LabVIEW.
I don't know how to specify the prototype entry for this Refnum in LabVIEW and how to read it with TestStand.
Another try to pass an ActiveXReference of SequenceContext and use the SetValIDispatch method to set a local variable (Type: ActiveXReference) to the returned ConnectionID of the TCPOpen.VI wasn't successful too.
It seems to me that the connectionID isn't a normal ActiveXReference.
Regards,
Sunny

Hi Sunny -
You should treat this parameter as a pointer to an int when calling the DLL from TestStand (or any language like C or C++). Note that you can't do anything with the value outside of LabVIEW since it only has meaning inside of LabVIEW. You can only pass it around for use in other VIs you call from TestStand.
Hope this helps....
Kyle G.
National Instruments
Kyle Gupton
LabVIEW R&D
National Instruments

Similar Messages

  • What are the advantages of using LabVIEW projects in TestStand, as apposed to just a path to a vi

    What are the advantages of using LabVIEW projects in TestStand, as apposed to just a path to a vi ?
    I am modifying an existing workspace for a new product, and it seems like more work to add the vi's into a LabVIEW project
    does it gain anything in the long run

    Hi Rusty,
    I wanted to quickly clarify on the integration between TestStand and LabVIEW Projects.
    As Jeff mentioned, some of the big benefits of using LabVIEW Projects is to organize code and to namespace them.
    For instance if you had a project called "Power Supply" that housed all your power supply code and had a VI in that called "Initialize", and another project called "Temperature Chamber" that also had a VI called "Initialize", both these VIs are namespaced by the project, so there is no longer confusion about which "Initialize" VI is being used.
    Now from a TestStand point of view, in prior version of TestStand, we lost some of this benefit because TestStand did not know about TestStand projects and called VIs simply as un-namespaced VIs. However, in TestStand 2010 (released last year, free eval available at ni.com/teststand), we added the ability to (optionally) call VIs within the context of their projects. This means that:
    VIs are now namespaced by their project, even when called from TestStand
    VIs can use project specific constructs like NI-DAQmx tasks and conditional compilation settings
    Note: When creating deployments, the VIs maintain their projects and namespacing, so this benefit holds true for deployments as well.
    Additionally, someone had mentioned looking into using lvlibs to namespace your VIs for deployment. Two comments:
    With TestStand 2010, this is no longer neccessary since the project itself namespaces the VIs
    You might also want to look into LabVIEW Packed Project Libraries, which combined several VIs into a single file. Think of it as a DLL specific to LabVIEW that is as easy to call as normal LabVIEW VIs. TestStand 2010 can call VIs that are exposed by PPLs. In addition, the deployment utility can automatically pack your VIs into PPLs for deployment.
    Hope this is helpful!
    Jervin Justin
    NI TestStand Product Manager

  • Using cvirte.dll from teststand

    I am trying to use cvirte.dll from teststand to automatically print test result reports. I am starting with the example sequence PrintEntireReportWhenFinishedTesting.seq that I found on the NI website. I want to change the print font attribute. The dll doesn't include prototype information so I need information on the parameters for the SetPrintAttributeEx function. Specifically what number refers to the ATTR_PRINT_FONT_NAME attribute and what are acceptable values for the value of this parameter.
    Attachments:
    PrintEntireReportWhenFinishedTesting.seq ‏37 KB

    Wendell,
    I believe this question was also posted in the TestStand category. Since this is more of a TestStand question, it was seen and already answered. Please see Using cvirte.dll from teststand.
    Thanks!
    Shannon R
    Applications Engineer
    National Instruments

  • I am having problem while using ms word with anjal( OS X Lion 10.7.5 (11G63))

    i am having problem while using ms word with anjal  is not working properly but its working in facebook and other areas.i need and  its very important to using tamil fonts for my job.can anyone help me out from this problem.
    thanking you
    by
    moses

    Those who are knowledgable in this area (myself not among them) say that Word's support for Asian languages is faulty. The best word processor for that use is "Mellel."

  • Problems in using Windows Explorer with VPC Virtual PC?

    Has anybody experienced problems in using Windows Explorer with VPC Virtual PC?
    Lacking any "forbidden" or "appropriate usage" guidelines, I regularly use Windows Explorer (Windows 2000) to transfer file from the desktop. I have occasionally sensed that this might be wrong. Today I inadvertently clicked the MAC harddrive instead of the Desktop (within Windows Explorer) and caused all manner of mischief.
    Any other views please?

    Let me correct this:
    I regularly use Windows Explorer (Windows 2000) to transfer files from the "Mac" desktop
    Any ideas please Virtual PC VPC users?

  • AUDIO PROBLEM WHILE USING OR ALONG WITH WEBCAM

    Hi friends,
    SUBJECT : AUDIO PROBLEM WHILE USING OR ALONG WITH WEBCAM
    I'm not getting any sound while using web-cam.
    I tried recording my voice , and played.. i can see my video but audio
    Do we have any settings where i need to cross-check to make sure that everything being turned-on ?
    My laptop details:-
    HP Pavilion dv6 laptop
    Operating system Installed - Windows 7
    Can someone help me with this?
    Thanks
    kiran

    Hi,
    not sure if coincidence or the same question, but the same question got asked internally. The seeded option is required to get the OJSP filter installed. Here's the internal response
    ADF View integration with MDS not configured
    In web.xml, you need to have mds-ojsp intg enabled to load jspx base + customizations from MDS. In your web project in Jdev, go to ADFv project properties and select “Seeded customization” property. It would enable mds-jsp engine configuration in web.xml. If you want to use user personalization feature at runtime, you would need to select “User customization” property as well which would enable ADFv change persistence config in web.xml.
    Warning: Some of the metadata under ... is packaged as part of both WAR and MAR. This metadata cannot be accessed from WAR using MDS.
    For these two packages, you are including the files in both WAR & MAR. This warning conveys that since these base files are being put in MAR, at runtime they would be read from mds repository & not from WAR.
    Frank

  • How do I use "LabVIEW dll import wizard" to import NETAPI32.dll

    I am trying to use the LabVIEW dll import wizard for the first time. I am not very familiar in C-coding so this might be a good help instead of configuring CallLibraryFunction nodes myself.
    I want to import NETAPI.dll. I am interested in several functions in that dll, but my main priority is the funtion NetUserGetInfo(). On MSDN I have found that the header file for the mentioned function should be: lmaccess.h (include lm.h).
    My problem is this:
    The shared library contains 317 function(s). But no function is found and recognized in the header file. The following function(s) cannot be wrapped. If you want to import these functions, please review the warning messages next to the functions below. You will need to fix the problems before you can continue with the wizard.
    The function cannot be imported into LabVIEW. This might be caused by one of the following problems:
    The function is not declared in the header file but is exported in the library.
    Check the header file to make sure it contains declarations of the function.
    Undefined symbols can prevent the wizard from recognizing functions and parameters. To correct this problem, check the header file to determine if you must add predefined symbols. Click the Back button to return to the previous page of the wizard to add a predefined symbol (for example, "NIAPI_stdcall = __stdcall" or "NIAPIDefined = 1").
    MIDL_PASS;_STDCALL_SUPPORTED;__cplusplus;
    Any suggestions how I can solve my issue?   

    astrid wrote:
    I am trying to use the LabVIEW dll import wizard for the first time. I am not very familiar in C-coding so this might be a good help instead of configuring CallLibraryFunction nodes myself.
    I want to import NETAPI.dll. I am interested in several functions in that dll, but my main priority is the funtion NetUserGetInfo(). On MSDN I have found that the header file for the mentioned function should be: lmaccess.h (include lm.h).
    My problem is this:
    The shared library contains 317 function(s). But no function is found and recognized in the header file. The following function(s) cannot be wrapped. If you want to import these functions, please review the warning messages next to the functions below. You will need to fix the problems before you can continue with the wizard.
    The function cannot be imported into LabVIEW. This might be caused by one of the following problems:
    The function is not declared in the header file but is exported in the library.
    Check the header file to make sure it contains declarations of the function.
    Undefined symbols can prevent the wizard from recognizing functions and parameters. To correct this problem, check the header file to determine if you must add predefined symbols. Click the Back button to return to the previous page of the wizard to add a predefined symbol (for example, "NIAPI_stdcall = __stdcall" or "NIAPIDefined = 1").
    MIDL_PASS;_STDCALL_SUPPORTED;__cplusplus;
    Any suggestions how I can solve my issue?   
    Sorry I forgot the attachment, but here it is.
    Attachments:
    NETAPI32.doc ‏103 KB

  • How to create a a labview sequence with teststand

    hi  everybody,
    it might be this question but i haven't found any. I am using TestStand 2.0 and LabVIEW 7.0 and i wanna use labView Sequence adapter to create sequences by using labView step.
    So that's how i do.
    1) After choosing the labveiw standard prototype adapter, i select a step in the sequence let's say the numeric limit step
    2) then I specify the module and choose the option create VI...
    3) Then I have a labview front panel window that appears with test data and error out
    4) I just add a sequence context in the front panel, take a set property value module, link that module to  the sequence context and in the test data as show as in different examples i found
    5) but after all when i run the step that is error message i have:
         LabVIEW : parameter Sequence Context not found in the VI's connector pane.
         -18002; LabVIEW reported an error. See 'LabVIEW : ' message for more details.
    it's seems that i don't connect my sequence context to the VI's connector pane but i don't know how to do it. i tried to figure that out by reading some previous post but i still can't.
    First what's is a VI's connector pane and do you have access to that? Can you explain me that step by step
    Thanks in advance for your help.
    Christelle

    Hi,
    In the Specify LabVIEW Module is a checkbox if you need the Sequence Context in your VI.
    You should enbale this before creating the VI. If this is done, then you will not have to add the sequence context control to your VI, because it will already be there.
    But from your notes, you dont appear to be adding the Sequence Context control to your VI connector pane.
    If you do this, then it should all start to work.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Debbugging MFC DLL with TestStand.

    I am in the process of evaluating TestStand and am very impressed with the tool. I created an MFC DLL with my existing C++ test code and have succesfully executed it through Teststand using the flexible prototype adapter. What seems to be missing is the ability to debug the DLL in Visual studio. I'm not sure if I need to have Visual Studio reference TestStand for DLL testing or visa versa. Please advise, as this is the last item I need to confirm prior to purchase. Is this a feature on version 2.0 ?? Thanks in advance.

    Mark-
    You can debug DLLs from TestStand that were created as debuggable DLLS in their original ADE by launching the TestStand Sequence Editor (\TestStand\Bin\SeqEdit.exe) from within your DLL's ADE. In your case you would run the SeqEdit.exe as an external process from within the Visual C++ development environment.
    Here is the description of how to do this from pg 12-12 in the TestStand User Manual that should already be installed on your computer under Start>>Programs>>National Instruments TestStand>>Online Help
    "To debug a DLL, create the DLL with debugging enabled in
    LabWindows/CVI or in another ADE. To debug DLLs, you must launch
    the sequence editor or run-time operator interface from LabWindows/CVI
    or the other ADE. In LabWindows/CVI, you use the Select
    External
    Process command in the Run menu of the Project window to identify the
    executable for the sequence editor or run-time operator interface. You then
    use the Run command to start the executable.
    If you select the Step Into command in TestStand while execution is
    currently suspended on a step that calls into a LabWindows/CVI DLL that
    you are debugging, LabWindows/CVI breaks at the first statement in the
    DLL function."
    Hope this helps!
    Regards,
    Richard McDonell
    National Instruments

  • Problem in using AcroPDF.dll in vb6 application

    I have an vb6 application and i want to display a PDF file in a form. I have used AcroPDF.dll and works fine on developmeny system.
    But when i install application on client's system i get error "Out of memory" when i try to open the form with PDF control.
    can anyone help me with this.
    Thanks

    Try asking this question in the Acrobat SDK forum.

  • Use AcroPDf.dll with 64 bit

    Hi,
    I am trying to display the pdf by adding Adobe Reader's COM component to my 64 bit application . But it throws error.
    Is there any way I can use the AcroPDF.dll with 64 bit?

    Those DLLs are only for 32bits.

  • How to Use LABVIEW charts with Mathscript

    Hi,
       I recently tried to work on Mathscript and it is really amazing. what I tried to figure out is:
        Instead of plotting using traditional "plot" statement, how to use LabVIEW chart ( I know how to Add output but the graph were not as expected
    Is there any mean to get rid of this "Lengthy" delay that "ALL MATLAB User know" for first time compilation?
    Thanks in advance
    Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
    Assistant Lecturer
    Mechatronics Department
    Faculty of Engineering
    Misr University for Science & Technology

    Well Chris,
             I was about to post the solution, but as I said, I'm in a middle of experts
    It took me 3 hours to figure it out. I should've checked your answer . I resolved to the same suggesstion of yours. I only added some functionality to get the newbies like me being acquainting with how easy to work with LABVIEW mathscript based on MATLAB knowledge.
    Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
    Assistant Lecturer
    Mechatronics Department
    Faculty of Engineering
    Misr University for Science & Technology
    Attachments:
    Play with Mathscript.vi ‏35 KB

  • Can I use C# forms with TestStand

    I am looking to use a rtf file to store data collected during a TestStand sequence test.  I have used C# class libraries in the past with TestStand, but I can only alter the Rich Text while using a Rich TextBox format and that can only be used in a windows form.  Is it possible to work with a windows form and not a library with TestStand?

    Hey mcfrenzy36,
    I found something in the TestStand help that I think can point you in the write direction http://zone.ni.com/reference/en-XX/help/370052J-01/tsapiref/infotopics/font_objects/
    Hope this helps
    BeauH
    Applications Engineer
    National Instruments

  • Using a batchfile with Teststand

    Has anyone used a batch scripts with teststand and or know of any resources on writing batch scripts?
    Brian

    Hi Brian:
    In order to do this in TestStand, you can use the Call Executable step.  If you right click anywhere in a sequence in the TestStand sequence editor, you can find the Call Executable step.  Here you can specify the path to your batch file.
    Thank you
    Nandini

  • Using VB DLLs with Java on Windows

    Hi! I have a dll in my windows which make a password encryption (ok, I know that Java can do it to, but my client wants to use THIS dlls...). I need to use a function from this dll, I need to give the dll a parameter and I expect a result from it, a String result.
    I have no idea of how to do it, hope you can help me...!
    Raul
    [email protected]

    actually, you have to go through the JNI nightmare before you can access libraries from the outside, and ActiveX dlls just won't work. I'm not 100% sure, but check in the Native Method section of this forum, and those guys there would know more about it.

Maybe you are looking for

  • DVD S P  says .mov is not a valid format.

    I exported from FCP "using quicktime conversion" into a .mov. Opened up DVDSP and it would not accept the file, said not right format. I messed with options in FCP export and in DVDSP. It still will not take it. Now, It took a motion j-pet, and DVDSP

  • Sequence of execution of report

    HI BW Experts, Can any one tell me what is sequence of execution like RKF, CKF,Filters,Formulas etc. of the report Regards RK

  • Activate puaway user-exit for immediate TO

    Hello, We use putaway user-exit MWMTO003(EXIT_SAPLL03A_001) to determine destination bin with our own logic by tick check-box "user-exit" in destination storage type. When we set "call LT06(create TO based on GR doc)" in WM-MM interface, the T-code L

  • Access error: Authorization check??

    Dear all;     I have just implemented the portal, and currenty Im checking it; I wen to "System Administration" -> "Support" -> "SAP application" -> "Transaction" and then enter SE16 and test it, but it sends an exception. When seeing the monitor, th

  • Shopping basket Report

    Hi I created the Shopping Basket Data Mining SSAS Database from Adventure Works (http://technet.microsoft.com/en-us/library/ms167032.aspx) What I now want to do is, create a Report Server Report with the results of this Solution Therefor I created th