Adapter DLL: Name of the function change & params without unloading of the DLL

Hello

I use teststand adapters API to dynamically build a DLL call step. Each dll function is called through this subsequence "DLL Manager."

Tried 2 methods (here is a summary of the code):

1 ActiveX as follows:

CommonCModule.ModulePath = myDllpath

CommonCModule.FunctionName = myFunc (Note: this call unload the DLL previously loaded)

Module-> LoadPrototype

(to set the params)

2 steps statement:

RunState.Sequence.Main ["Call DLL function']. TS. SData.Call.LibPath = myDllpath

RunState.Sequence.Main ["Call DLL function']. TS. SData.Call.Func = myFunc (Note: this is a step, but the info seems not be updated-online the new feature is called not properly)

Module-> LoadPrototype

(to set the params)

The two methods is exactly the same behavior, but good for the 1st function I call a work or if I dump the dll after the execute step.

However, is there a way to use these steps (or other) at stage configuration, but without unloading the DLL between each call. In my test sequence, I must OpenConnection with the object to be measured before starting my orders, as well as the dll should not be discharged to keep the connection open...

for example

(1) OpenConnection()-online this function takes the handle of communication with the device

(2) myCommand1()

(3) myCommand2()

(4) CloseConnection()

Thank you for the help

C.

If I understand your question, there are several ways to solve the problem. The easiest is to place a call to the dll before your loop that you never change programmatically. This step will then keep the loaded dll (if any stage that uses a dll is loaded, then the dll remains loaded. A dll is unloaded when all the steps that use it are unloaded.). Another option is to have just internally your call to the dll LoadLibrary on itself so that it is never unloaded. You then leave the process to unload the dll well. Another option is to add the code directly to the sequence that explicitly, charge and discharge your dll with the Win32 API LoadLibrary and FreeLibrary.

That said, what you describe, if I understand correctly, looks like a very unusual use of TestStand. Looks like you use TestStand as a dll calling rather than as a sequencer and write your own sequencer above it instead. Have you thought to generate an entire sequence to run in teststand, rather than a step at a time? Basically, convert your test script in a TestStand sequence.

Hope this helps,

-Doug

Tags: NI Software

Similar Questions

  • How to change the name of the standard workflow function

    Hi all

    I downloaded workflow apporoval PO in oracle applications 11i. There is a WF function in a single process that call a procedure in the package. Instead of this procedure, I want this function to call my procedure.

    But this package.procedure name is not editable. Can someone tell me how I can change it
    ?

    Hello

    Changing the name of a function / change the PL/SQL that calls a seeded process activity is considered bad practice - manipulate a seeded activity could have a number of unforeseen effects on the process that you are not aware of.

    If possible, create a copy of the point type and configure the application to use instead. Otherwise, you must create a custom in a stocked item type process and configure the application to use (for example, a different process within the management of the orders). Otherwise, you should create a copy of the activity that you want to modify and replace the activity planted by your new activity. You should NOT change a seeded activity.

    HTH,

    Matt
    -----
    WorkflowFAQ.com - the independent resource ONLY for Oracle Workflow Development

    Review alpha chapters of my book "developing with Oracle Workflow" are available through my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to change the name of the device to a storage adapter?

    We have a host on which we forgot to disable iSCSI on its Emulex network adapters.  FC HBAS installed with vmhba4 and vmhba3 of the iSCSI initiators because device names took vmhba2 and vmhba1 of device names.  We have disabled iSCSI and restarted, but the names of the HBAs are still 3 and 4.  I would change the vmhba1 and vmhba2 to accompany the rest of the environment.  Is it possible to manually change the name of the HBA device?

    I have not tried, but someone has to and of course the good old google came with www.virten.net. It is said that it can be done with changes in the etc/vmware/esx.conf file. Let me know if this helped.

    http://www.virten.NET/2012/09/ESXi-change-vmnic-vmhba-numbering/

    Alex

    www.implementersLab.com

  • Name of the table as parameter of function

    Hi all

    can someone help me with the below question...

    I have a function like this:

    * create or replace *.
    * the 'IL_SUM_AVG_FN' function return number is *.

    * the cursor c1 is *.
    * Select sum_avg_val value *.
    * from wel_10_tab *.
    * where type = '1'; **
    * number of v_sum; **
    * number of v_count; **
    * BEGIN *.
    * v_sum: = 0; **
    * v_count: = 0; **
    * for i looped c1 *.
    * if v_count = 0 then *.
    * v_sum: = i.value; *
    * other *.
    * v_sum: = abs (i.value + v_sum); **
    * end if; **
    * v_count: = v_count + 1; **
    * end of loop; **
    * return v_sum; **
    * END; **


    now my requirement is like... I want to pass a value as a parameter to the function... say I'll or11 10 or 12
    then he should change the table name in the cursor according to the parameter.i.e
    If the setting is 10, it should be: select sum_avg_val value in wel_10_tab where type = '1';
    If the setting is 11 it should be: select sum_avg_val value in wel_11_tab where type = '1';
    If the parameter is 12, you must: select sum_avg_val value in wel_12_tab where type = '1';

    parameter only has these three possible values...
    How to get there?
    Help, please...

    Sybrand already showed you how to manage the setting if you look at its code.

    You need the dynamic sql statements because you can't pass the names of tables in pl/sql standard.
    His example has dynamic sql.

    So now you must only adapt to your needs.

    Default you may have a separate slider for each table name and choose the cursor based on the name of the table that is passed.

    Those are your only 2 realistic options at this stage.

  • Can I change the name of the object to measure report

    Hi, I'm new to TS! Can I change the name of the object to measure report? Who can help me. Thanks in advance!

    «Under normal circumstances, I finished the test USE, TS generated the report like this "report [13-29-06] [4F492CAB04] [2012-11-28] .html'.»

    Can I change something, when TS report will like this"report [13-29] [4F492CAB04] [2012-11-28] .html' without seconds!

    One way is to modify the process template.

    Locals.ReportFilePath saves the name of the report. You can access only functions (such as SerachAndReplace) to create the new ReportFilePath.

    In the model sequential process step determine the path of the report file provides the path to the report file using the report options settings. Custom code can be placed after this step.

  • Cannot use fax function after rename the name of the printer

    I have an MFP HP LaserJet M1536DNF connected by network.  I have run the full setup package by the CD of the product, or on the web, complete update install the driver package.  The problem is the default printer name after installation as like "HP LaserJet 1530 MPF Series PCL 6" and can not be changed through the installation.  When I tried to change the printer name on the windows 'Printers and faxes', he managed but the fax doesn't work anymore after that.  It says probably 'impossible to find or connect the printer' after I click the fax or print the document to the fax printer.  However, I can still use the printing function after the name change.  The only way to solve now is to uninstall all and reinstall again, even I tried to rename back the name exactly for the name of the printer.  I use Window XP Pro SP3 with .net Framework 3.5 already up-to-date.  Thanks for the tips.

    Hi Cheetah12,

    Sorry to misunderstand.  I mean there is no option to not rename the printer when you run the complete package installation wizardfirst, but not the fax configuration wizard.

    In fact, I must mention once again that I have can print and scan even I renamed the printer.  Things I can't do the HP Send Fax or fax HP Setup Assistant and so, which means my fax machine was not working properly.

    Therefore, I follow the document from HP that you post step by step and of course the diagnosis by downloaded HP Print result and doctor Scan for both printing and scanning are in good health, all in green light!  But cannot always solve the problem of the fax.

    However, I finally found my way to solve the problem, which is just rename back the original printer name in the registry.  As a result, the printer in "Printers and faxes" which always shows the famous name, but actually running with the original name of the printer.

    In any case, thank you for your kindly help and fast track.  But I suggest there should be a direct way, like having an option to rename the name of the printer while the first installation wizard on your next updated version.  This will certainly help users who have to install 2 or more of the same model printer, to indicate which printer works easily.

  • Is there a way to prevent Microsoft to change the name of the driver of a scanner to #2?

    I support the scanners as part of my work, and I often that a scanner driver will get automatically renamed by Windows with a "#2" after the name of the original driver. Is there a way to avoid this? The reason is that we have created an application that stores information to scan to use when scanning documents, but it loses connection if the scanner automatically gets renamed.

    Sometimes users are plugging the scanner on a different port while the other times, unexpected events, such as power outages, cause scanners rename themselves to try to restore the functionality but just to break our application. I think at this point, it would be better to disable the naming of autopilot for other USB ports (if there is a way to do it) because we would rather users not being able to scan at all and let us know so that we can resolve the issue that in order to restore the functionality and the user thinks that he is well again , but in fact does not work in our application.

    I don't know if this would require a change to the registry, changes in Device Manager or something else. Thank you for your consideration.

    Hi MSwick,

    Thanks for posting in the Microsoft Community.

    If I understand correctly you are facing problems with the scanner. In order to quickly provide a solution, please answer these questions:

    1. is the scanner connected to a domain network?

    2. how many computers are connected to a network?

    If the scanner is a domain network, I'd recommend posting your query in the TechNet Forums.

     

    TechNet Forum

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

    If you need further assistance, please answer and we will be happy to help you.

  • How can I change the name of the source to PDF document?

    Mac OS X 10.10.4 Acrobat XI, worm 11.0.11

    I used the "Print to PDF" feature like the Mac OS to create paragraphs of a document Word 2011. Each paragraph should be seen or downloaded from Blackboard server at our school. Seen on the web page, every paragraph appears with a tab titled with the title of the document to the original source of the word, not with the title of the PDF file. See picture attached.Tab shows original source document.jpg

    I have 2 questions. Q1: What is the name of the part of the PDF file that displays the title of the source document? Q2: Can I change this to reflect the name of the file section, rather than the name of the original source document?

    Thanks for any help.

    Hi Samantha,

    As you created the other functionality of paragraphs in a larger Word Document files, they would appear with the name of the Original file only.

    What you can do to change the name of the file a name of origin is trying to save with a different name and looks so differently.

    You could also try to modify the metadata of the files section and see if that helps.

    Run the Original file > go to the file tab > properties > Description > additional metadata and then try to fill in the details mentioned here and see if that helps.

    If it does not, save them to a different name might be an option.

    Concerning

    Sukrit diallo

  • How to change the name of the map dynamically?

    I use an excel template and my requirement is to change the name of the spreadsheet (NOT the file name) of the output to excel when blow up.

    Is this possible and if so, how? The user wants to get the group number and the name of the report.

    For example Group 1 a and the name of the report, audit report, the name of the spreadsheet must be "1 a - Audit report.

    I understand that with the constraints of data in the XDO_METADATA worksheet.

    We can add two functions XDO_SHEET_? and XDO_SHEET_NAME_? By aggregating my data correctly, I was able to produce several sheets with dynamic for each worksheet name.

    More information search for these two functions and you will find your answer.

  • UMS adapter - get the name of the incoming e-mail attachment

    Hello

    Based on this blog http://technology.amis.nl/2012/05/18/proces-email-with-the-new-ums-adapter-of-soa-suite-ps5/

    I'm trying to get the name of the attachment to identify its type (format PDF, XML, etc.) and save it as the proper name. However the schema generated by the service of UMS adapter is not provide information useful to achieve this metadata.

    Did you hear an idea, solution or documentation to get the name of the attachments?

    Thanks in advance.

    The problem has been resolved. New version 11.1.1.7.0 includes a new feature called ora: getAttachmentProperty (propertyName, varName [, partName [, query]]). With this function we can extract some headers MIME Content- type, Content-Description, etc.

    For example:

    ORA: getAttachmentProperty('Content-Type', 'varBpelInput', 'body', '/ns3:message/ns3:attachment[1]')

  • Change of name of the terminal session

    Dear Sir.
    in our society, that some users connect via the IIS web server and if I want to check the sessions
    Select terminal osuser v$ session I can see Terminal Server from the web server and the user of the operating system of the web server.
    We have change the name of the module and action by using:
    DBMS_APPLICATION_INFO.set_module ('test APP',' insert);
    so, how we can change the terminal are equal to the end-user terminal?
    There is no function!
    or can change us a database table directly!

    Thanks in advance
    Kind regards.

    That doesn't change from V$ SESSION. TERMINAL, but the application can use DBMS_APPLICATION_INFO. SET_CLIENT_INFO ('\\mydomain\PC1') update V$ SESSION. CLIENT_INFO during this session.

    (If you notice connection pooling cannot hold, since a single database session may be used by the different sessions for the end user at different points in time.)

  • Change the name of the form when it is attached to an e-mail

    Good day all.

    I wonder if there is a way to change the name of an attachment, when you click the Send button.

    Let me explain.

    I designed a form that will be sent from one are to another and when the user clicks on the button send the attachment is named (for example) "_150s2140t32f8b0iu.pdf". This is of course an empty name of sense. I would like to somehow change it to better represent the name of the form.

    Thanks for your suggestions

    Thank you

    Chomp

    Hi Chomp,

    Sounds like you are clicking the button send in the window in the designer of the LC. When the form is displayed in preview, is assigned a temporary name. If the form is opened in Acrobat directly, the e-mail button attached the form with the clean/full name?

    If you want the form to give a name based on the data entered from the user, you will need a function of confidence (.js file) on each user's computer. See this discussion: http://forums.adobe.com/message/2266799#2266799.

    Niall

  • Change the name of the file of "Import.xls" selection in Applescript

    Hi, I'm a tiger, but I try to change the name of a file in a folder (which can be any name that is) a name known.  In the end, just trying to import a file known to filemaker and need the name to be a known name.  That's what I have so far, but I have simply not success.  This goes to the folder 2 window and selects the first file... no problem, but, I can't seem to change the name of 'import.xls '.  Only excel files will be present in this folder, so I'm not worried about it.

    The other thing I would do is if there is no file in this folder to jump above everything and do nothing.

    Thanks for your help!

    Tell application "Finder".

    activate

    the value target of Finder window 2 to folder "Orders_to_Enter" of folder "Documents" of the file 'MINIJOHN'from folder 'Users' of startup disk

    Select the first file of the window of Finder 2

    Try

    the value the name of the selection of "IMPORT.xls".

    end try

    end say


    say

    Hello

    No need to manipulate the selection. You can just write something like this:

    set d to (path to documents folder as string) & "Orders_to_Enter:" as alias
    tell application "Finder"
        --open item d -- optional
        tell (item d's file 1 whose name extension = "xls")
            try
                set name to "IMPORT.xls"
            end try
        end tell
    end tell
    

    Tested under OS X 10.6.8.

    Good luck

    H

  • I have an iMac 21.5 inch Mid 2010 OSX EL Capitan 10.11.6 Version and I get occasional yellow notes that appear on the display of the office telling my local name of the iMac 4 changed to local imac5 does that mean?

    I have an iMac 21.5 inch Mid 2010 OSX EL Capitan 10.11.6 Version and I get occasional yellow notes that appear on the display of the office telling my local name of the iMac 4 changed to local imac5 does that mean?

    Hi Clayton,.

    This means that some services has tried to open a connection & couldn't, possibly IPv4 vs IPv6 or iCloud/back to my Mac.

    Mifgt try the helpful message here...

    Name of my iMac computer continues to change automatically after Yosemite upgraded

  • How can I change the name of the ion HD my Time Capsule airport

    My time capsule airport has changed its name to data and now I can't use it. What can I do?

    Not sure why you can't use 'Data' as the name of the disk hard Time Capsule, since it is the default value.

    But, if you want to change the name of 'Data' to something else...

    Open the AirPort on your Mac utility... (Finder > Applications > utilities > AirPort Utility)

    Click on the image of the time Capsule

    Click on edit in the window that appears

    Click the disks at the top of the next window

    Next to Partitions, you will see "Data".

    Click directly on the name of 'Data' and the box will change to allow you to edit the name, just as you can change the name of any other player

    In the example below, I changed the name of the drive 'safeguards '.

    Click Update at the bottom right of the window to save the changes you have made

Maybe you are looking for

  • m9275.PT

    I have since bought the m9275.pt in August 2008 which have problems. Response from HP, is that everything is fine and no problem. How can I fix? I'll be back to the PC (they are in 1100 euros), and I can't. This is how HP works? You cannot solve the

  • Last update of MS causing poor performance and broken aps

    We have recently updated our computer with the last update of security of Ms. Since then, none of our computer games (hearts, purple place, etc.) will not charge, and more often than not, when we opened pages on the internet they will not actually be

  • How to change the password

    Have not been on my old laptop for a while and have forgotten the password. How can I fix?

  • What happened to "receive email notifications"? How can you pick us up?

    Before the recent revision of the CSC, you could choose "Receive email notifications" under the "Actions" menu in the upper right corner of a doc of CSC, and it would automatically receive messages when this doc updates have been posted. wlcca.jpg Th

  • MenuItems run() method that is called from the thread eventdispatching?

    Hello is it? I know that MenuItem itself extends thread, but I wonder why this method is called run() and finally and above all it would'nt be worse if this method would be called from a Thread. THX