Type librarys for DLL functions that TestStand understands for parameter information

Using the C/C++ DLL call adapter I would like to specify a call to a DLL function and have TestStand (3) understand the parameter information.
Usually it says 'there is no parameter information available'. Today however I tried building a DLL in Visual C++ instead of CVI and got a bit further. TestStand recognized that there WAS parameter type information but then said 'The type library for this DLL does not contain enough information to determine whether this function parameter is a pointer to a single item, or an array of items."
So in a nutshell, does anyone know what options (in CVI or MSVC) I need to build with so that TestStand recognizes the function prototypes exported in the DLL? After all it's alot of work to type in all that parameter information.
Many thanks,
Ronnie
TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009

In CVI, you can get the parameter information into a DLL. First of all, you have to have a function panel (.fp) file with all of your exported functions defined as function panels. From this function panel file you can also generate a windows help file to document your DLL. Once you have the .fp file and .hlp file, you can enable references to them in the build target settings (Build->Target Settings...). Select "Type Library..." and check "Add type library resource to DLL" and "include links to help file" then browse to your .fp file. If there are descepencies between the functions defined in your .fp file and the actual functions you have exported in the DLL, then you may get a compiler error.
--Peter

Similar Messages

  • We look for BAPI/Function to As-Built for Serialized Material (tran.COIB)

    Hello ,
    We look for BAPI/Function to As-Built for Serialized Material (transaction COIB).
    We check transaction COIB in order to create insatlled base for production orders(bill of equipments)
    We look for BAPI/ Function in order to run that process automatically in background base of some rules we will decide. Do you know if there is BAPI/ Function  refer to it?

    Sorry but I found the function group IBPP with the function modules:
    IBPP_CHANGE_IBASE
    IBPP_CREATE_IBASE
    IBPP_GET_IBASE_DOWN_ALL
    For our requirements these fmodules are sufficient.
    Regards

  • If I purchase an app for iphone can that be used for ipad as well?

    If I purchase an app for iphone can that be used for ipad as well? or viceversa..? If yes, can I retrieve the same app when I purchase a new iphone (ofcourse I maintain the same app id) free of cost?

    Some can, some cannot. Most iPhone apps can be used on an iPad (though not all), but the reverse is true less often. Check the specifications and system requirements for the app you're interested in. You can easily add the app, presuming it's compatible, of course, to any new iPhone without additional charge either by synching it from iTunes or by downloading the app again from the iTunes Store.
    Regards.

  • I have a disability and my hand shakes does anyone know of software for a mouse that is good for people with hand tremors?

    I have a disability and my hand is shaky does anyone know of software for a mouse that is good for people with hand tremors?

    You might try contacting the local school district's special needs people - this is something they will be familiar with. Also if you have a local cerebral palsy organization they might be able to point you in the right direction. Assistive software and devices do exist but I am too far out of that loop these days to give any specific help.

  • Looking for a function that returns the currently opened document type

    Dear SAP gurus
    I have a user exit for transaction VA02. In VA02, when I click on button (Item details-configuration),
    it launches a URL in a browser. I am asked to add to the URL, values like Document Type, Document Number
    and Line Item Number.
    I can get Document Number and Line Item Number from the presently opened Sales Document by using the standard Function 'CUCB_GET_OWNER_OF_CFG'.
    However, I am not able get the value of Document Type. Is there any function that will give me
    the value of the Document type of the present document that is open.
    Any feedback/Suggestion will be highly appreciated.
    Thanks
    Ram

    If you're in a VA02 user exit, the document type should be in VBAK-AUART, if I remember the field name correctly.  I would think that ANYWHERE in VA02, that field will be available to you.
    If you want the text of the document type, forward navigate from vbak-auart data element to the domain and look at the values...there'll be a config (T) table (and you may need to add T to the end to get the associated text table) that describes the document type in your system's language,  like:
    E OR   Order
    or something like that...  Sorry, in my installation, we don't use the logistics modules, so I'm writing from memory.

  • Invalid state in SQL query for a function that was created with no errors.

    SQL> CREATE OR REPLACE FUNCTION overlap(in_start1 IN TIMESTAMP, in_end1 IN TIMESTAMP, in_start2 IN TIMESTAMP, in_end2 IN TIMESTAMP) RETURN NUMBER
    2 IS
    3
    4 BEGIN
    5 IF (in_start1 BETWEEN in_start2 AND in_end2 OR in_end1 BETWEEN in_start2 AND in_end2 OR in_start2 BETWEEN in_start1 AND in_end1) THEN
    6 RETURN 0;
    7 ELSE
    8 RETURN 1;
    9 END IF;
    10 END;
    11 /
    Function created.
    SQL> show errors;
    No errors.
    SQL>
    SQL> SELECT * FROM tbl where overlaps(current_time,current_time+1,current_time-1,current_time+2) = 0;
    SELECT * FROM tbl where overlaps(current_time,current_time+1,current_time-1,current_time+2) = 0
    ERROR at line 1:
    ORA-06575: Package or function OVERLAPS is in an invalid state
    I do not understand why overlaps is returned as in invalid state in the query, when it was created with no errors earlier. Could anyone help me?

    Marius
    Looking at the logic you are trying to create it looks like you are looking for overlapping time periods.
    Consider two date/time ranges:
    Range 1 : T1 - T2
    Range 2 : T3 - T4
    Do they overlap?
    1) No: T1 < T4 (TRUE)  T2 > T3 (FALSE)
    T1 --- T2
               T3 --- T4
    2) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
    T1 ---------- T2
               T3 --- T4
    3) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
    T1 -------------------- T2
               T3 --- T4
    4) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
                   T1 ----- T2
               T3 --- T4
    5) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
               T1 --- T2
           T3 ------------ T4
    5) No: T1 < T4 (FALSE) T2 > T3 (TRUE)
                    T1 --- T2
           T3 --- T4Answer: Yes they overlap if:
    T1 < T4 AND T2 > T3
    So you can code the logic in your SQL as simply:
    SELECT *
    FROM tbl
    WHERE range1_start < range2_end
    AND    range_1_end > range2_startIf you go around implementing PL/SQL functions for simple logic that can be achieved in SQL alone then you cause context switching between the SQL and PL/SQL engines which degrades performance. Wherever possible stick to just SQL and only use PL/SQL if absolutely necessary.

  • Using a dll function that does not have any inputs from a VI

    Hello all, I'm very new to Labview, I have wraped a dll library using the LVlib wizard and now I am trying to use it in a project.  I have a function that does not take any inputs or return any thing except that a struct is populated with some status information as part of the call.  I am able to draw a StartInterface VI because my void startInterface(const char* configFile, struct status_struct* status) takes the location of a configutation file as an input. But I can not figure out how to connect my Call Library Node to my a function vi that does not have any inputs ( void shutdownInterface(struct status_struct* status)). 
    Note that the status struct is deffined to be only and out put at the creation of the LVLIB.
    Thanks, Mike

    Thanks for the responses guys:
       I think I am aware of the conotations of inputs and outputs when I created the lvlib I specified the argument  struct status_struct* status as only an output instead of the default of input and output.
    I do not think that I am doing anything as complex as function callbacks. My immediate goal is to have an executable (I have application builder) with two buttons and two three text fields one text field for the input of the config file, two text-fields for a cstring that is contained in the status struct; one button to start the interface and one button to stop the interface. 
    This is in all likely hood a case of my self being too dense and missing something fundimental ;-)  I just can't figure out how to wire the shut down method after I've configured the call library node. See the attached pictures:
    Attachments:
    Start.jpg ‏7 KB
    shurtdown.png ‏9 KB

  • Calling a dll function that as a structure

    I'm trying to call the following function with the Call library function node:
    XLstatus xlLinSetChannelParams (
    XLportHandle portHandle,
    XLaccess accessMask,
    XLlinStatPar statPar)
    The statPar parameter is a stucture which is define as follow
    typedef struct {
    unsigned int LINMode
    int baud rate;
    unsigned int LINVersion;
    unsigned int reserved;
    } XLlinStatPar;
    I used a cluster to pass the data to the function but labview is crashing everytime. The  C output of the CLFN is :
    typedef struct {
     unsigned long LinMode;
     long baudrate;
     unsigned long Linversion;
     unsigned long reserved;
     } TD1;
    long _xlLinSetChannelParams28(long portHandle, uInt64 accessMask,
     TD1 *statPar);
    Why is labview sending a pointer to the struct instead of the structure itself? Is this the cause of my problem? Any Solution?

    The CLFN ouput shown in my previous message was done with the "handle to value" parameter. As you stated, it sends a reference to the struct memory location.The problem is that i need to pass the structure value as an input and not a pointer to it (well, that's what i think the problem is). I read the various documents about CLFN and I tried the examples but they are all have function of that kind:
    returnval ExampleFunc (structPointer *struct)
    While the function in my dll is made like that
    returnval ExampleFunc (structValue struct) (see the real function in my first message)
    I included the dll and Vi and documentation for the xlLinSetChannelParams function.  The CLFN node that calls it is the fourth one (the one with a cluster as input). The first 3 CLFN are used to call the initialization function:init driver,get channel and open port.
    Attachments:
    LIN test.zip ‏130 KB

  • Complicated structure for DLL function

    I need LV6 to pass and get back parameters to a DLL function whose prototype is:
    int APIENTRY GetData(ACQDATA *Data)
    ACQDATA has the following structure
    typedef struct{
    unsigned long huge *s0;
    unsigned long far *region;
    unsigned char far *comment0;
    double far *cnt;
    HANDLE hs0;
    HANDLE hrg;
    HANDLE hcm;
    HANDLE hct;
    }ACQDATA;
    From the DLL documentation I could see that
    - the function modifies its argument
    - the (fixed) length of the second, third and fourth parameter is specified
    No idea of the length of "s0". I've tried several LV clusters including a cluster with four pre-allocated arrays (buffers) and four scalars. But no luck so far.
    If a C wrapper function is the only solution to pass the parameters correct
    ly, can anyone show me an example. Can I use the Code Interface Node for that purpose though I only own the Base Package version of LV or shall I write another DLL function?
    Please help asap

    Unfortunately I am new to C programming, but I'll try to give you the complete picture of what happens.
    There's no definition for HANDLE in the DLL documentation but windows.h is included, so I guess the following
    #define HANDLE void * //32bit?
    In my LV routine I tried U32 variables for the HANDLE typed parameters.
    In one of attempt LV passes to the function a cluster (I make no mistake with the order!) with four arrays and four U32, all of them preset to some value. Well.. these values (all)are not changed when the function returns. The return value of the function says no error, anyway.
    I tried other clusters: with and without arrays, with all (or part) scalars and all (or part) strings. No way either.
    Sometimes LV itself crashes, sometimes I get
    the original values I imposed before the call.
    I suspect the LV cluster structure makes me miss the right level of indirection for the first 4 variables in the structure (called *s0, *region, *comment and *cnt): when either I pass arrays or scalars as components of the cluster.
    Hope this helps you to help me
    Cheers
    Piero

  • HT204266 Hi, what is the best way to find Apps for certain projects i need? i am looking for an App that hold files for projects that i look after?

    I am looking for a App that i can store projetcs in, and use on site when i need to show a client! i need it to show notes pdf drawings ect? how do i search this?
    Thanks
    Mike

    I am looking for a App that i can store projetcs in, and use on site when i need to show a client! i need it to show notes pdf drawings ect? how do i search this?
    Thanks
    Mike

  • I downloaded and paid for ipad apps for my ipod that I paid for - how do i get refunded for the 2 apps I purchased that I cannot use on my ipod

    I downloaded ipad apps instead of ipod apps that i paid for . How do I get refunded for these

    To report an issue with a purchase (request a refund), follow these steps:
    • Open iTunes. If you are already signed in, skip to step 4.
    • Choose Store > Sign in.
    • Enter your account name and password, then click the Sign In button.
    • Choose Store > View My Account
    • Click the Purchase History button
    • Click the Report a Problem button at the bottom of your purchase history
    • Click the arrow next to the purchase with which you want to report an issue
    • Click the Report a Problem link next to the item with which you wish to report an issue
    • Click the Problem menu
    • Choose the option that best describes the issue. If none of the options match your issue, choose "My concern isn't listed here."
    • Write comments about the issue (optional).
    • Click the Submit button

  • Do I have to pay for an app that was offered for free once?

    I had to restore my iPhone and there was one app that I got for free when it was on special.  Now the app is back to its orignal $3 price tag.  So my question is, do I have to pay for it this time around?

    How to redownload purchased apps from the App Store

  • DFF validation - Looking for a function that validates a DFF

    Hi,
    I have found this code:
    IF NOT fnd_flex_descval.validate_desccols (appl_short_name => p_application_short_name
    , desc_flex_name => p_desc_flex_name
    , resp_appl_id => p_resp_appl_id
    , resp_id => p_resp_id
    But I would like to find out which attributes are not valid.
    I also have found this call:
    SELECT application_column_name BULK COLLECT
    INTO L_attributeTbl
    FROM fnd_descr_flex_column_usages
    WHERE descriptive_flexfield_name = p_desc_flex_name -- G_descFlexNameLines
    AND descriptive_flex_context_code = p_desc_context -- PR_context
    ORDER BY column_seq_num;
    dbms_output.put_line('Attribute rejected: ' || L_attributeTbl(fnd_flex_descval.error_segment) );
    l_error_message := fnd_flex_descval.error_message;
    But the author of the message writes that it is unreliable.
    Many thanks if you can help.

    Hi Jean;
    Pelase check below and see its helpful for your issue:
    how to do validation on DFF ?
    how to do validation on DFF ?
    Validate DFF in Oracle Apps
    http://www.oraclearea51.com/code/code-snippets/oa-framework/tutorial-code/validate-dff-in-oracle-apps_14.html
    HOW TO validate ALL DFF values in one go
    http://wiki.oracle.com/page/HOW+TO+validate+ALL+DFF+values+in+one+go
    Hope it helps
    Regard
    Helios

  • Is there a clock/radio for the 3G that has USB for syncing to my Mac?

    I'd prefer to have only one dock for the phone instead of two on my desk.

    I've never heard of a clock/radio including a USB hub function, but I can only assume if a 3rd party manufacturer of a clock/radio that is iPod and/or iPhone compatible thought there was a market for including a USB hub function with their product and obviously being able to charge extra for it, there would be one available.

  • Pass the value for dictionary field that doen't have parameter ID

    Respected Members,
    I have a requirement that i have to call the tcode Va11(inquiry creation) from my program and pass the values for the customer po number and customer po date available in the inquiry creation screen.
    Since whatever require for the first screen of VA11 i can pass the values with using SET parameter ID becoz all the things have the parameter ID .
    Document type ,sales org, dist channel and division are having the parameters ID.
    Now exactly where to put the values for the next screen in the field customer po number and customer po date doesn't have the parameter ID.
    Fields are BSTKD and BSTDK .
    Now  how to pass the values from my module pool program.
    Please give me some solution.
    Suppose i m creating a parameter ID from the program then also it won't get attach to this fields.
    Please give me yours solution as soon as possible.
    Thanks

    hi Manish..
    It the Fields are not assigned with PARAMETER ID then We cannot pass the data using SAP Memory (Set Parameter ID).
    So the Only way u can pass the Data is using
    Enhancements (if they are provided)
    or
    BDC technique.
    Reward if Helpful.

Maybe you are looking for

  • How to download project template into the SAP NetWeaver Developer Studio

    Hi,       I want to download project template into the SAP NetWeaver Developer Studio related to invoice detail get detail,get list etc. How to do so?Actualy my requirement is to create an iView whcih contain the detail about the invoice. Thank, Kund

  • Help on Dynamic values in select options

    Hi All, I need help for the following. 1. I have two select options for fields VBAK-VBELN and VBAK-ERDAT one after the other. 2. When I select VBELN through F4 in the first select option then the corresponding ERDAT should be displayed in second sele

  • Error in using fibne grained auditing

    Hello, I am trying to implement fine grained auditing on SAL column of my Employees table as I suspect that someone is updating values. I am using the system user to implement this. But when I try to use the following syntax I am getting an error "OR

  • WSRP provider error

    Hi, I have deployed a JSR168 portlet application from OEM, then i created the WSDL url as http://<server>:<port>/ContextRoot/portlets?WSDL this URL is working fine when i run this in a browser. Problem is, when i register this provider and give the a

  • Commercial message flashes on start-up

    I recently bought a used emac running Panther. It's a great system but when I log in it briefly shows me a full-screen commercial message ("visit www.somewebsite.com" or words to that effect). Everything then proceeds normally. I've looked at login i