Trying to create DLL from VI to use in TestStand.

I trying to create a DLL out of an existing VI file.  The VI has about 4 inputs and about 3 outputs.  If I go to Tools >> Build Application and select the Build Target as a "Shared Library (DLL)" i get a dll after the build; but when I try to call that DLL from teststand, it doesn't recognize any of the inputs or outputs.  How do I build a DLL so that teststand will reconize the inputs and outputs?
Solved!
Go to Solution.

The controls and indicators are connected to the connectors.  Also, answering an earlier post, the prototype information for the inputs and outputs are not automatically displayed. I can manually define the prototypes, but then the question is how does each prototype link to its corresponding parameter (by name?). I've also tied creating just a simple VI that has just one string input and one string output.  I built the VI to a DLL and tried calling in TestStand and i get the same results.  I've inserted the resulting header file after that build.  Which, by the way, looks exactly like my other created DLL's header file.  The difference in bold(the name of the VI). Which makes me thik that my build DLL process might be off.
#include "extcode.h"
#pragma pack(push)
#pragma pack(1)
#ifdef __cplusplus
extern "C" {
#endif
void __stdcall String_input_output(void);
long __cdecl LVDLLStatus(char *errStr, int errStrLen, void *module);
#ifdef __cplusplus
} // extern "C"
#endif
#pragma pack(pop) 

Similar Messages

  • Creating dll from Labview for use in VB

    In this document:
    Accessing LabVIEW 6.0 Strings from Microsoft Visual Basic
    It mentions you need to input a length for your string inputs. When I create my dll no len is available for string parameters only Arrays. Is this a typo?
    Also, In my LV code I have a path input. Can VB work with this? I have already converted my LV code to accept path as string...just wondering if I really have to do that.

    Drugar,
    Only string outputs (indicators) that are wired on the connector pane will show the length parameter selection when you try to build the dll.
    I don't think VB accepts paths, so you should convert the path to string in LabVIEW before building the dll.
    Zvezdana S.

  • I have created PDF from hardcopy by using my scanner. After I run OCR option for my PDF by using Acrobat Pro 9. But "Text-to-speech" functionality of the PDF says that an error message comes up that says the page is empty when I turns on the read out loud

    I have created PDF from hardcopy by using my scanner. After I run OCR option for my PDF by using Acrobat Pro 9. But "Text-to-speech" functionality of the PDF says that an error message comes up that says the page is empty when I turns on the read out loud option in Acrobat. Kindly help me to sortout this problems?

    So I tried generating the same PDFs on two other computers that have Acrobat 9 Pro.  Results were reproduced.  The verdict is:
    - complex PDF files (that is, containing cross-references, tables of contents, and bookmarks) generated by Acrobat 9.x Pro are roughly 2-5x larger than the identical file generated with Acrobat 8.x Pro.
    - different PDF conversion settings make a negligable difference (less than 10% rather than 70-80%).
    - using the "Reduce File Size" or "Optimize PDF" option cuts the file size roughly in half, almost always resulting in a "image downsampling mask" warning message, which requires acknowledgement (that is a problem for batch processing or automation).
    - adding an Acrobat watermark to the file cuts the file size roughly in half.
    - just using Save As to another filename has no effect on file size.
    - generating the PDF in Acrobat 9 with links but no PDF bookmarks still results in the inflated file size.
    - generating the PDF in Acrobat 9 without any links or bookmarks results in approximately the same file size as the Acrobat 8 PDF with full links and bookmarks.
    It appears that Acrobat 9's manner of adding links is what's bloating  the files, and in my case it's probably not related to images or image resolution/print quality.  It's a shame, because Acrobat 9 seems to have made some  improvements to the Review Tracker interface, and a few other bells and  whistles which I haven't really gotten around to exporing yet.  But  unless I find a way to keep my links and the PDF file sizes comparable to what I was  getting with Acrobat 8 Pro, it looks like I'm going to stay with Acrobat 8.

  • Create dll from labview

    Hi all:
    I am using labview 8.5 , i want to create dll for spacific vi , to use its output in another program like C++,
    can any one help me to learn the steps to create dll from labview
    thanks

    You need the application builder (which is part of the professional distro).
    In general you should every VI that you want as a function set to 'top-level'
    If you right click on the builds in your project you have an option to build a DLL (if you have the application builder), from there on the help is available.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Adobe v9 on W7 and office 2007. cannot create PDF from MS word using Adobe. But can from Excel, PPT

    Adobe v9 on W7 and office 2007. cannot create PDF from MS word using Adobe. But can from Excel, PPT and other MS office apps. Reinslalled Adobe, updated Office, and Adobe no help! Also I can create a pdf from the MS Word and it is using the Adobe 9. So one would think that's good. No it isn't when you need to combine different files to one big PDF document. Any suggetions? Thank you

    Yes, I’m saying that I can in WORD use “Save As ADOBE pdf” but cannot in ADOBE create a pdf file from a WORD (.doc or .docx) document. While I can from other MS Office apps like Excel and PowerPoint.
    I understand I can use “work around” and save doc in WORD as pdf then compile all files needed (xml, ppt, pdf) in the ADOBE v9. to one big pdf document. But that is not the point of this post.  
    Jarda @ PC+NET Solutions
    Mobile 613-532-7023
    Office  613-385-1268
    <http://www.pcplusnet.net/> www.pcplusnet.net

  • I am trying to stream music from my iMac using iTunes music files to my Cocktail Audio X10 music streamer. I have allowed my files to be shared the X10 sees the files but when I try to accsess them it gives me the message files not mounted. Please help?

    I am trying to stream music from my iMac using iTunes music files to my Cocktail Audio X10 music streamer. I have allowed my files to be shared the X10 sees the files but when I try to accsess them it gives me the message files not mounted. Please help?

    No, I have the music I want to move from the laptop to the phone selected. Then I go under file, devices, and try to click sync but it is not available to click.

  • Calling LV created DLL from LV

    Howdy-
    I'm trying to call a LV DLL from within LV (seperate project).  Once the DLL has been comppiled I'm using the Import Shared Library to create the node.
    However when I try this I get an error message with the import that appears to have trouble with LVBoolean and int32_t.
    I've created a simple DLL (adds a DBL to an INT 32 and creates a Bool when the sum is > 0). 
    Compiling this DLL and trying to import it has the same issue.
    Any clues?
    Attachments:
    Import Shared Lib.png ‏49 KB
    My DLL.zip ‏34 KB

    nathand wrote:
    This does mean LabVIEW will create the datatypes with U8 instead of booleans, which you can replace yourself with a boolean after importing.
    Except that the Call Library Node doesn't allow for configuration of an explicit boolean type (for obvious reasons as there is no standardized boolean datatype in C before C11 and even then the standard says nothing about if it should be a byte or the prefered integer size for the current platform or anything else). LabVIEW then uses Adapt to Type instead, which forces the skalar parameter to be always passed by pointer!
    Most simple solution is to still use an explicit integer that is properly sized and convert between the LV Boolean and the integer on the diagram.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Create PDF from Web page using Acrobat 9 Pro

    I am trying to create a PDF file from a web page.  The alt tags for images is not being recognized, and the reading order bounces all over the page (not the order of the web page).  For example, the 1st text item on the page is #7 in the reading order, and the #1 item is an image half way down the page.  All the documentation I can find says Acrobat will read top to bottom, left to right, but it's not.  Any idea how to fix it?

    Acrobat is using the underlying mark up of the rendered HTML page.
    This may or may not provide an adequate input to Acrobat when it is noodling out how and what to tag.
    I suspect you may find that, to obtain an adequately tagged PDF, you may have to capture the web page content with the create bookmarks and create tags options off.
    Once you have the PDF make working copies.
    Try letting Acrobat tag this already created PDF to see what happens.
    You may have to manually tag the PDF.
    n.b., The default read order for western language can be altered by user selections in the accesibility setup or by selection in the PDF page(s) Page Properties.
    Be well...

  • I am trying to create a sequence to be use as primary key in a Oracle table

    Hi guys
    I have the ODI version 10.3.5 and I am trying to create a sequence that populates de row_id for a table. The schema is a database.
    And I want that this item will be the primary key of the table that is loaded at execute the interface however I'm getting issues.
    So please advise me.

    Hi ,
    Can you please provide the following details :
    1. What is the execution area of your sequence ? Is it source or staging or Target.
    2. What IKM you are using ( I hope you are executing sequence in Staging or Target ) ?
    My understanding is when you check Not Null , all your rows are going to Error table. So it is not giving any error.
    When you uncheck the Not Null , it is giving error because Database is not allowing Null values in the Primary Key Column.
    You can do the following to check if your sequence is working properly.
    Try to write a Insert Select query in DB and execute it and see if it is working properly.
    i.e.
    insert into      EMPL     (
         EMPNO,
         ENAME,
         JOB,
         MGR,
         HIREDATE,
         SAL,
         COMM,
         DEPTNO
    select      S_EMPNO.NEXTVAL,
         ENAME,
         JOB,
         MGR,
         HIREDATE,
         SAL,
         COMM,
         DEPTNO
    from     EMP
    or if you can provide your query in this format , it will help in finding the issue quickly.Also provide the KM details.

  • Create DLL from labview and calling it from other application

    I have an application built using Labview. I wanted to create DLL out of it. The application has
    two String inputs start and stop buttons and two status indicators.
    1. How to itegrate start and stop buttons from function prototype?
    2. Does Labview created DLLs requires labview runtime engine when it is to be called from other application?
    Can some one help on this.
    Solved!
    Go to Solution.

    Hi Yuvish,
    1) They should be boolean inputs to your VI. But does it makes sense to provide a stop button input at the start of your VI? (THINK DATAFLOW!)
    2) Yes, the LV-RTE is needed...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Trying to Create DVD from Blu-Ray Project

    I'm a fairly new user to Encore CS4.   I was able to successfully create a Blu-Ray project using HD video - the actual video is a little over 3 hours.   It took about 30 hours for the project to transcode and burn.   I'm now trying to take that same project and created a single layer DVD.   I'm really struggling with this even though the software says I should be able to do this.    So I set all my settings up to create the DVD and started the process.   It was trancoding the video for 6 straight days!!!!!    When it finally got finished with the transcoding process I got an error that said this aspect ration was not supported by DVD!!!   So I'm confused at what I'm doing wrong.   First, I don't think the transcoding process should be taking that long.   Second, if the aspect ration is not correct, could it tell me that before it spends 6 days transcoding the video?    Third, I'm trying to burn the DVD using the same 16:6 widescreen aspect ratio, so I'm not sure why it's telling me the aspect ratio is not correct.    But what frustrates me the most is that it took wasted days before the software told me it didn't like the aspect ratio.
    I know there's products on the market that will basically copy a Blu Ray to a DVD and are supposed to do that in something like 4 -5 hours.  Why on earth would Encore be taking 6 days to transcode my video.
    Anyway, if anyone has any ideas please let me know.
    Thanks!

    Thanks, I'll try these suggestions next.  I had found a post from "janaiott" suggesting to select "interpret footage" then choose "conform to SD NTSC Widescreen".   They said that worked for them.   This post was titled "Use the same project to export to both BR and DVD?"
    I tried that and restarted the build.  The video transcoding went much quicker - instead of running for 6 days it finished in 2 days.   However, at the end of the transcode process I once again recieved the aspect ratio error.   My exact error is:
    PGD "Sequence 01/Band.prproj" has an error at 88.8888s.  The aspect ratio of this file is not supported by DVD. - PGC info:  Sequence 01/Band.prproj =Bpgc, time=88.8888s.
    I'm still just baffled why Encore can't be smart enough to tell me it doesn't like what I'm doing before it spends all that time - what a waste of time!  I really don't mind waiting 2 days as long it works
    If anyone else has any suggestions, please post - but I will move on to the next suggestion and see what happens.  Just too bad it will take at least 2 days to know whether it works or not

  • Trying to create cofile from data file

    Hi All,
    I am trying to create a cofile with the tp createcofile command and getting the following error .....
    ---> tp CREATECOFILE DC1K900012 pf=/usr/sap/trans/bin/TP_DOMAIN_DC1.PFL
    This is tp version 372.04.65 (release 701, unicode enabled)
    /usr/sap/trans/bin/TP_DOMAIN_DC1.PFL/tmp/DC1KK900012.DC1: Not a directory
    /usr/sap/trans/bin/TP_DOMAIN_DC1.PFL/tmp/SLOG1021.DC1.LOC: Not a directory
    PANIC --> exiting
    tp returncode summary:
    TOOLS: Highest return code of single steps was: 0
    ERRORS: Highest tp internal error was: 0212
    tp finished with return code: 212
    meaning:
      could not access file as supposed (see dev_tp or SLOG1021.DC1 for more details)
    Please help with the syntax of creating a cofile ....
                       Thanks in Advance.
    Regards,
    Revanth Kumar

    Hello Revanth,
    the correct syntax is:
    tp createcofile <transport_request> pf=<path_to_tp_profile> -s<extra_r/3_SID> -Dtransdir=<transport_directory>
    where "-s<extra_r/3_SID>" is used only if you're generating the file to another system ID. Normally the correct system to connect to for export purposes is the source system and this normally is the same as the first three characters of the transport requests name. However in some cases this is not true and you want to specify a extra R/3-system name. In this case
    you can use -s option as described above.
    Best regards,
    Tomas Black

  • Acrobat 8 can't locate scanner to create PDF from printed document using OCR

    Hello,
    I have an Epson scanner that is my default scanner on my OSX (10.6).  Every program I have locates my scanner perfectly except Acrobat 8.0.  Is there something I can do?
    From the home dialogue box I click "Create PDF from Scanner".  The next dialogue box opens and the Tab "Please Select a Device" doesn't let me scroll to find my scanner.  So the scan button is greyed out and I can't do anything.  Is there something I can do to make Acrobat clearly find my scanner?
    -Luis

    Check to see if they have a Native (not universal Binary) Twain Driver. Adobe refuses to allow universal Binary Twain Drivers in their programs.
    Either use a Software package from the SANE/TWAIN Project. (look up on Google). Or use a Pakage Like SilverFast.
    Before downloading the SANE/Twain Driver you have to look and see if the have a package for your current  OS  and for your particular Scanner. Stayaway from the SDK's unless your a Programer.
    Then when you install all the pieces and set up open Acrobat and go to document Create PDF from Scanner choose SANE/Twain. Should be able to scan with it.
    If you use SliverFast it is a standalone package  Just scan and save as a PDF then open in Acrobat.  or save as a Tiff or jpeg. Acrobat hasn't worked with a scanner since Macs went from OS9  to OSX.

  • Create PDF from Web page using Acrobat X - Page Order

    I have a structured web site that is in fact Program Help The web pages are structured as follows:
    index.html - Main Topic Index page with links to all topic subject index pages
    topic/index.html - Topic Subject Index Page with links to all subject pages
    topic/subject.html - Subject page
    .....etc
    Using Acrobat 5 "Create PDF from Web Page" created a perfect logical PDF  page structure in the page order of of the web site. In Acrobat 5 page 1  was the Main Topic Index Page, page 2 was the 1st Topic Subject Index  Page, page 3 was the 1st Subject Page, then the 2nd subject of the 1st  Topic, etc. until the Topic Subjects were exhausted after which the 2nd  Topic Subject Index Page and so it went on. As a result the bookmark  structure was sensible. The page order was as follows:
    Main Topic Contents
    Topic 1 Contents
    Subject 1 of Topic 1
    Subject 2 of Topic 1
    Topic N Contents
    Subject 1 of Topic N
    Subject 2 of Topic N
    Acrobat X (just purchased) produces a differently structured PDF from the same HTML pages. The order is:
    Main Topic Contents
    Topic 1 Contents
    Topic 2 Contents
    Topic N Contents
    Main Topic Contents (a second time)
    Subject 1 of Topic 1
    Subject 2 of Topic 1
    Subject N of Topic 1
    Subject 1 of Topic 2
    Subject 2 of Topic 2
    Subject N of Topic N
    Question: Is there any way I can get back with Acrobat X the same page order I got with Acrobat 5?
    Any help appreciated. The website is www.caliach.com/caliach/vision/help/index.html
    Chris

    Acrobat is using the underlying mark up of the rendered HTML page.
    This may or may not provide an adequate input to Acrobat when it is noodling out how and what to tag.
    I suspect you may find that, to obtain an adequately tagged PDF, you may have to capture the web page content with the create bookmarks and create tags options off.
    Once you have the PDF make working copies.
    Try letting Acrobat tag this already created PDF to see what happens.
    You may have to manually tag the PDF.
    n.b., The default read order for western language can be altered by user selections in the accesibility setup or by selection in the PDF page(s) Page Properties.
    Be well...

  • Problems trying to retrieve data from R/3 using Java - RecordSetWrapper

    Hello everyone!
    I am having problems retrieveing a result from r/3 using Connector Framework API. An ABAP consultant has created a ABAP program which returns an employee based on his or her personal number as an input.
    <b>When i run the AbstractPortalComponent i get the following:
    <u>RS2: com.sapportals.connectors.SAPCFConnector.execution.structures.RecordSetWrapper@24648563</u></b>
    My code is as follows:
    package com.sap.test;
    import java.util.ArrayList;
    import java.util.Iterator;
    import javax.resource.cci.MappedRecord;
    import javax.resource.cci.RecordFactory;
    import com.sap.security.api.IUser;
    import com.sapportals.connector.connection.IConnection;
    import com.sapportals.connector.execution.functions.IInteraction;
    import com.sapportals.connector.execution.functions.IInteractionSpec;
    import com.sapportals.connector.execution.structures.IRecordSet;
    import com.sapportals.connector.execution.structures.IStructureFactory;
    import com.sapportals.connector.metadata.functions.IFunction;
    import com.sapportals.portal.ivs.cg.ConnectionProperties;
    import com.sapportals.portal.ivs.cg.IConnectorGatewayService;
    import com.sapportals.portal.ivs.cg.IConnectorService;
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    public class Search extends AbstractPortalComponent{
         String sapSystem = "*****";
         public void doContent(IPortalComponentRequest request, IPortalComponentResponse response){
              IConnection con = null;
              ConnectionProperties conprop = null;
              ConnectionProperties cp = null;
              try{
                   Object connectorService = PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
                   IConnectorGatewayService cgService = (IConnectorGatewayService) connectorService;
                   cp = new ConnectionProperties(request.getLocale(),request.getUser());
                   if(cgService == null){
                        response.write("Error in getting Connector Gateway Service <br>");
                   try{
                        con = cgService.getConnection(sapSystem, cp);
                        IInteraction ix = con.createInteractionEx();
                        IInteractionSpec ixSpec = ix.getInteractionSpec();
                        ixSpec.setPropertyValue("Name", "Test_RFC");
                        RecordFactory rf = ix.getRecordFactory();
                        MappedRecord importParams = rf.createMappedRecord("INPUT");
                        IFunction function = con.getFunctionsMetaData().getFunction("Test_RFC");
                        IStructureFactory structureFactory = ix.retrieveStructureFactory();
                        IRecordSet table = (IRecordSet) structureFactory.getStructure(function.getParameter("I_PA0002").getStructure());
                        importParams.put("PERNR", "123456");
                        MappedRecord output = (MappedRecord) ix.execute(ixSpec,importParams);
                        Object rs = null;
                        try{
                             Object result = output.get("I_PA0002");
                             if(result == null){
                                  rs = new String ("Error");
                                  response.write("RS1: " +rs+ "<BR>");
                             else
                                  if(result instanceof IRecordSet){
                                       rs = (IRecordSet) result;
                                       response.write("RS2: " +rs+ "<BR>");
                                  else{
                                       response.write("RS3: " +rs+ "<BR>");
                        catch(Exception e){
                             response.write("Error " + e.getMessage()+ "<BR>");
                   catch(Exception e){
                        response.write("Connection to SAP system failed <br>");
                   if(con == null){
                        response.write("Connection is null <br>");
                   else{
                        response.write("Connection succsesful<BR>");
              catch(Exception e){
                   response.write("Exception occured<BR>");
              try{
                   con.close();
                   response.write("Connection closed<br>");
              catch(Exception e){
                   response.write("Could NOT close connection<BR>");
    The result should be all data stored on the person which I search for, but instead i get the following result:
    <b>
    RS2: com.sapportals.connectors.SAPCFConnector.execution.structures.RecordSetWrapper@24648563</b>
    I am really stuck and do not know how to solve the problem. I appreciate any help or sample (or just some answers...)
    Thanks in Advance.
    Best Regards,
    Ola Aarthun

    Hi,
    From your code you are just displaying the object rs. You have to handle the display of each record the way you want it(as a table).
    You can find a sample code how to build a table from the result object at the following link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bfb1ba90-0201-0010-5e97-bd6a8f5022dc
    Regards,
    Padmaja

Maybe you are looking for

  • An error occurs while trying to delete an application

    Hi everyone, I'm working with BPC 7.5 NW SP3. I faced a problem when I tried to delete an application. I got this error: "A dump occured on the ABAP stack". The same message appears when I try to delete an application set. Does anyone know how to sol

  • Tomcat Does not run : catalina_home not defined correctly

    Hello guys im having a problem with tomcat4.0. ive installed tomcat-4.0 at c:\jakarta-tomcat-4.0. and jdk1.3 at :\jdk1.3 Ive set enviroment variables catalina_home = c:\jakarta-tomcat-4.0 java_home = c:\jdk1.3\bin classpath = c:\jdk1.3\lib\tools.jar

  • How do I hide the VI loading window for an exe file when deployed

    Is there some set point or registry entry that I need to switch to hide the vi load window when an exe is executed? Tim Johnson Controls Holland Michigan

  • Edit catt script for changes in in web appl server higher than 6.4 release

    Hello Guru’s, Will you help me in editing the CATT script for changes in Web application server release higher than 6.4 release, when I look for edit mode it was showing the following message. will anyone suggest me is there any way to make changes.

  • OS update failed

    My macbook is set up to receive auto updates and tonight it said there was an OS update. I attempted to download it but it said the update failed (it has done this once before with no serious complication). However, now when trying to start up MacBoo