Dynamically changing the name of the .dll file to load in call Library

Our current model is to use dll files as "plug-in" modules for instruments and a top layer test step calls the appropriate driver dll.
For instance
the TestStep is called with the kenmore.dll passed as a parameter so the kenmore.dll file is loaded, the functions are registered and the functions are called.  Next the TestStep is called with whirlpool.dll as a parameter now the whirlpool.dll is loaded the functions are registered and the functions are called.  This works very well in our current CVI/LabWindows environment.  Now we plan to work with LabView, we wish to retain this model (as DLL files, there are advantages in our model for us).  We have not found a way to load these dll files from LabView without hard coding the path and filenames in.
Any suggestions on how to dynamically change the path in the Call Library module, or another suggested method of loading the dll via LabView?
Thanks,

John Stuart wrote:
Our current model is to
use dll files as "plug-in" modules for instruments and a top layer test
step calls the appropriate driver dll.
For instance
the TestStep is called with the kenmore.dll passed as
a parameter so the kenmore.dll file is loaded, the functions are
registered and the functions are called.  Next the TestStep is
called with whirlpool.dll as a parameter now the whirlpool.dll is
loaded the functions are registered and the functions are called. 
This works very well in our current CVI/LabWindows environment. 
Now we plan to work with LabView, we wish to retain this model (as DLL
files, there are advantages in our model for us).  We have not
found a way to load these dll files from LabView without hard coding
the path and filenames in.
Any suggestions on how to dynamically change the path in the Call
Library module, or another suggested method of loading the dll via
LabView?
Thanks,
As Ben has pointed out LabVIEW
scripting may be a possibility but you are going with that in highly
unsupported area. Also I happen to know that changing the library name
of a Call Library Node through scripting has produced unsupported
feature errors previous to LabVIEW 7.1 eventhough the method was there.
And LabVIEW 8 hides the whole scripting business behind the license
manager.
Another approach at least if the different DLLs do not change to often
thier functions and parameters would be to create a wrapper DLL. Have
it a method that loads the desired DLL and links its functions to
internal function pointers. Then when calling the actual function entry
points just redirect directly to the correct fucntion through that
function pointer. Since you are already working in CVI creating such a
DLL should be only a matter of taking out a little bit of your already
existing code and put it into a DLL project.
Rolf Kalbermatter
Message Edited by rolfk on 04-12-2006 07:40 AM
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Existing cross Reference: how to change the name of the file it refers to?

    Hi everybody,
    I am a professional translator.
    One client of mine sent me a complete FrameMaker 9 book file for translation.
    I translated the content via a CAT-Tool and now am in the process of checking if cross references and markers are ok directly into the file.
    I noticed that many cross references are linked to another file of the book. But in the process of translating each file separately, I gave them a slightly different name (I added the language at the end) so as to be able to recognise them eventually.
    Now I have this problem: I cannot find in the cross reference interface where to change the name of the file into the new one the cross reference is supposed to refer to.
    Am I right in wanting to change the file reference? If so, how do I do that?
    Or is it better to avoid this task and rename the translated file into their original names ? Would it work then?
    Thanks for your help.

    ... book file ...
    ...  each file separately, I gave  them a slightly different name (I added the language at the end) ...
    I'm guessing that you renamed the component files by means other than using the Edit > Rename File from the Book menu.
    If so, do over. Rename from the Book menu. It automatically revises all the cross-references in all the component files.
    In a Book, the only thing that's safe to rename with the file manager is the .book file itself.

  • How do I change the name property of a file in a document library?

    I am trying to come up with an Event Receiver that will change the name property of an file when it is uploaded. For instance when a file is uploaded into a document Library, currently the Title is being generated (which is fine)...I want to be able to
    change the "Name" property from whatever it is, to match exactly what is in the "Title" property. Are there any sample codes/blogs out there that I can take a look at? Has anyone  had any experience doing this? It seems like something
    that should be straight forward, to change the "Name" property to match what is in the "Tilte" property.

    Hi,     
    You can try the code below which use the SPFile.MoveTo() function to change the name of the file.
    EventFiringEnabled = false;
    SPFile f = properties.ListItem.File;
    string spfileExt = new FileInfo(f.Name).Extension;
    f.MoveTo(properties.ListItem.ParentList.RootFolder.Url +
    "/" + properties.ListItem["Title"]+ "_new" + spfileExt);
    f.Update();
    EventFiringEnabled = true;
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5cafb8e4-bb85-4147-9bda-4ab42a4d4817/sharepoint-2013-event-receiver-to-rename-files-not-working?forum=sharepointdevelopment
    A link about rename uploaded file using Event Receiver for your reference:
    http://paulgalvinsoldblog.wordpress.com/2008/01/25/quick-easy-rename-uploaded-file-using-sharepoint-object-model-via-an-event-receiver/
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to dynamically set the name of the generated PDF file sent by email

    Hello,
    I am using Reports 10g and I managed to send PDF reports by email, specifying the recipient, subject, format etc, using the reports servlet URL.
    But there is one thing that I cannot find a way to do: I want to dynamically set the name of the attached file. It defaults to the name of the RDF file (eg monthly_sales.pdf). I would like it to be something more meaningful (eg monthly_sales_072010.pdf, where 072010 is the month and year passed by parameters).
    Is it possible to do it?
    Thanks
    Luis

    Use System.load(...) instead of System.loadLibrary(...).

  • How do you change the name of a folder/file on an expansion drive

    How do you change the name of a folder/file on an expansion drive or external hard drive?

    The same way you change it on the internal drive; click on the name and wait a second or two for the field to drop into editing mode, then just type the new name. Or Get Info on the file/folder and change the name there.
    Regards.

  • How to change the name of a pdf file in iBooks on ipad

    I have a number of appliance and tool manuals  as pdf files uploaded to my iPad. In order to identify them easier I would like to change the names of the files. I changed them in iTunes on my computer but they do not change on the iPad2 when I sync. Is there a  way to do this?

    Greg,
    I had been working on this a while and found what worked.  Save the pdf to your desktop with the file name as you want it.  Open up itunes on half of your monitor.  Drag the file to the library section of itunes (music, videos, books, movies etc...).  When you drag to the library section, it will put it the book section of itunes.  Sync and you will see the file in ibooks on your ipad.  Give it shot.
    Scott

  • Change the name of an image file in Photos app

    Just wondering how you change the name of an image file in the new 2015 Photos app?

    The only way to change the filename of an image is to export the image with a new filename:  When exporting you can select the title a s a new filename.
    Then reimport the renamed file to Photos and delete the original version.

  • How can I change the name of the XML file which is submitted by mail?

    Hello Everybody,
    If I submit my pdf file as XML
    I will get something like this:
    MyFile.PDF -> submit as XML -> MyFile_data.XML
    My problem is with the _data at the end of the file name -> this addition is coming from the windows logon language,
    I know that because if the windows logon is in spanish I get the addition _datos for example: MyFile_datos.XML
    Is there a way to change the name of the xml file for example : MyFile.XML
    Thank you all in advance,
    Eran

    Hello Uti,
    I found out it is something with the adobe reader installation.
    If it is in English the suffix is _data
    If it is in Spanish the suffix is _datos
    If it is in Hebrew the suffix is _נתונים
    So Now I think i will have to open OSS for this issue.
    Thank you so much for your reply - I thought i was the only one with this problem...
    Best Regards,
    Eran

  • Change the name of a saved file ?

    I saved a letter and gave it a name.  Now I want to change the name of the letter.  How in the world do you do this simple thing ?   What is going on here.

    Donald
    I agree with you that this is not good design and only adds to the confusion of new users, not lessens it.
    It also makes more steps for experienced users.
    Still it is what it is. Personally I'm sticking with Snow Leopard. After all the anticipation I found Apple has screwed up Lion and it is looking like their version of Vista. A rearrangement of the deckchairs to distract you from the gaping hole in the side of the ship, and that the Shipping Company has decided they are switching to other businesses.
    Save a version is Save, and OSX handles all saves using versions you can step back through.
    Duplicate is Save as with an extra step inbetween where the file has another name that you need to change. btw also lacks a shortcut. Nice one Apple.
    Revert has always been there in OSX and was one of the few improvements in that it consistently lets you go back to your last saved version.
    Peter

  • How do we change the name of a sound file once it is in the session?

    how do we change the name of a sound file once it is in the session?
    Thanks
    Steve z

    The only way that you can rename the audio file from within Audition is to do a Save As from the Waveform view AFAIAA. You can rename clips by clicking in the name box at the top of the Properties window or by right clicking on the clip and selecting Rename from the drop down menu (this will automatically open the Properties window if it isn't already open).

  • How do I change the download files to be the name of the sending file and NOT View Attachment?

    See above question, when I click download the name of the vile appears as view attachment, NOT the original name or file type. Please help, getting very frustrated especially when downloading an e-mail with severall attachments

    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • How to change the name of the column for dynamic query

    I would like to change the name of the column name to bidderone, biddertwo and bidderthree. the only problem is the vendors name unknown when I run the query and sometimes the query returns two vendors. the maximum vendor is three. here is the query and please let me know how this can be done. thank you so much. I am using oracle 10i
    FOR lv_rec IN   ( SELECT vendor, calcbtot
      FROM (SELECT t.*, ROW_NUMBER () OVER (ORDER BY t.calcbtot Asc) rn
              FROM (  SELECT DISTINCT
                             s.vendor,
                             TO_CHAR (s.calcbtot, '999,999,999.00') calcbtot
                        FROM bidtabs b, bidders s
                       WHERE     b.CALL = s.CALL
                             AND b.letting = s.letting
                             AND b.vendor = s.vendor
                             AND b.letting = v_letting
                             AND b.CALL = v_call
                    ORDER BY 2) t)
    WHERE rn <= 3 )                 
       LOOP
          lv_sql :=
                lv_sql  || ', TO_CHAR(MAX(DECODE(TRIM(S.VENDOR),'''|| TRIM (lv_rec.vendor) || ''', S.BIDPRICE)),  ''$999,999,999.00'') AS "'|| TRIM (lv_rec.vendor) ||'" ';
       END LOOP;

    thank you so so much for your help on this. I am sorry i did not post the entire code. my intention is to use bidderone, biddertwo,bidderthree as a column name insead of the name of the vendors and also calcuate the average of the three vendors. the maximum vendor will be three but the minumum could be one or two. hope this is enought information to help me out further . thank you
    CREATE OR REPLACE PROCEDURE biddersquoteforbridge (
       p_spnumber   IN       VARCHAR2,
       p_result     OUT      sys_refcursor
    IS
       v_letting   VARCHAR2 (40);
       v_call      VARCHAR2 (40);
       lv_sql      VARCHAR2 (32767) := NULL;
    BEGIN
       SELECT DISTINCT L.LETTING, CALL
                  INTO v_letting, v_call
                  FROM LETPROP L, PROPOSAL P
                 WHERE L.LCONTID = P.CONTID AND CPROJNUM= p_spnumber;
       lv_sql :=
          'SELECT   O.PRPITEM "Item Number",
                    INITCAP(FUNC_GET_ITEM_DESCRIPTION(O.PRPITEM)) "Description",
                    O.CONTID "Contract Id",O.SECTION "Section" , P.CPROJNUM "SP Number", P.CFACSSUP "District",
                    FUNCT_GET_SECTION_IDENTIFIER(O.SECTION, O.CONTID) "Section Title",  ''Q''||(TO_CHAR(D.DATELET, ''Q-YYYY'')) "Quarter",
                    O.IPLINENO "Line Number", O.QTY "Quantity" ';
      FOR lv_rec IN   ( SELECT vendor, calcbtot
      FROM (SELECT t.*, ROW_NUMBER () OVER (ORDER BY t.calcbtot Asc) rn
              FROM (  SELECT DISTINCT
                             s.vendor,
                             TO_CHAR (s.calcbtot, '999,999,999.00') calcbtot
                        FROM bidtabs b, bidders s
                       WHERE     b.CALL = s.CALL
                             AND b.letting = s.letting
                             AND b.vendor = s.vendor
                             AND b.letting = v_letting
                             AND b.CALL = v_call
                    ORDER BY 2) t)
    WHERE rn <= 3 )                 
       LOOP
          lv_sql :=
                lv_sql  || ', TO_CHAR(MAX(DECODE(TRIM(S.VENDOR),'''|| TRIM (lv_rec.vendor) || ''', S.BIDPRICE)),  ''$999,999,999.00'') AS "'|| TRIM (lv_rec.vendor) ||'" ';
       END LOOP;
       lv_sql :=
             lv_sql
          || '
            FROM   PROPITEM O  ,                   
                   PROPOSAL P  ,
                   LETPROP  L  ,
                   BIDDERS  B  ,
                   BIDTABS  S  ,
                   BIDLET   D
             WHERE O.CONTID = P.CONTID
                    AND P.CONTID = L.LCONTID
                    AND L.CALL = B.CALL
                    AND L.LETTING = B.LETTING
                    AND B.CALL = S.CALL             
                    AND B.LETTING = S.LETTING
                    AND B.VENDOR = S.VENDOR 
                    AND S.IPLINENO = O.IPLINENO
                    AND L.LETTING = D.LETTING             
                    AND O.LINEFLAG =''L''    
                    AND L.LETTING = :B1
                    AND L.CALL = :B2
             GROUP BY
                   O.CONTID,
                   O.SECTION,
                   O.IPLINENO,
                   O.PRPITEM,
                   O.QTY,
                   P.CPROJNUM,
                   P.CFACSSUP,
                   O.PRICE ,
                   D.DATELET             
             ORDER BY O.IPLINENO ';
      -- DBMS_OUTPUT.put_line (lv_sql);
       OPEN p_result FOR lv_sql USING v_letting, v_call;
    END;

  • When I download something from the Web, the "Downloads" window opens, but the window remains blank. Before it used to at least show the name of the file and I could open the file from the "Downloads" window. Is there a way to get this functionality back?

    I'm running Windows XP which is updated to latest version (which I think might be Service Pack 3, but not positive.) Mozilla Firefox is version 5.0. I tend to use Google as my search engine so most of the stuff I download comes through sites found through Google, which is also updated.
    At some time in the past (maybe a few versions ago) when I would download a file from the Web, the "Downloads" window would open and in the window would be displayed the name of the file I was downloading or had just completed downloading. I think I used to be able to then click on that file name and the file (or the installation file if needed to start the new program) would open. I am currently using Firefox 5.0 (the "About Firefox" screen says this is up to date) and when I download a file or document, the "Downloads" window appears on the screen as it always has in the past, but it remains blank, i.e., nothing appears in the downloads box. I don't remember making any configuration changes, etc., that may have caused the window to remain blank, but I could be mistaken. I know how to find the items I've downloaded (My Documents / Downloads) and can usually guess what the name of the downloaded file might be, but it used to be much easier when something (anything) showed up in the downloads window.
    I'd love for someone to tell me about a simple fix for this. I'm willing to be quite embarrassed that I did something I shouldn't have.'''

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Where can I change the font settings for the name of the month in iPhoto's calendar project?

    where can I change the font settings for the name of the month in iPhoto's calendar project?  I just ordered two copies of a calendar I designed in iPhoto and was surprised to find that the calendar's months were printing in something like an Arial 10 pt font.  On previous calendars I've printer via iPhoto and Apple, the font was much larger.  I've tried every menu option in iPhoto and the Calendar Project program and can't find where this is modifyable. Which leads me to ask, what the heck happened here in the first place?  I did not consciously change the default.
    I do remember that I got some notice when I first tried to print the calendar about the default font having been changed, but I don't know how this could have happened, and I didn't know what impact that had on the calendar until it was delivered.  I typically print about a dozen annual calendars but won't buy another until I've got a handle on this problem.  For the most part, the rest of the calendar is okay.
    As a P.S. is there anywhere where one can get a power user's manual, or instruction on iPhoto?
    Message was edited by: KPAausFrankfort

    "Maximum" and "12" usually refer to compression (influencing image quality and jpeg file size in bytes); and as Curt wrote, dpi is meaningless for display by and viewing in web browsers.  (It could be a different matter if you are uploading the jpeg files for someone to download from the web to print.)
    What are the sequence of steps that you and your batch processing take from Bridge?
    You can use call Photoshop's Image Processor from Bridge to create the jpeg files  (Tools > Photoshop > Image Processor).  In the Image Processor you can set jpeg compression, pixel dimensions if desired, also convert to sRGB (good idea for web display).  In my experience the image processor leaves unchanged whatever dpi is set in the source file; or, if none there as might be for a pdf, it will set the dpi value in your New Document Preset Print Resolution (from your Photoshop Units & Rulers preferences).

  • What are the steps to change the name on the "House" in the side bar on OSX Mavericks?

    What are the steps required to change the name on the "House" in the side bar for OSX Mavericks?

    You want to change your username. First, make a backup of your files with Time Machine, as any error may damage your user.
    Then, follow these steps to change your username > http://support.apple.com/kb/ht1428 Be very careful, as it requires to log in as root

Maybe you are looking for

  • Sites for Flash tutorials?

    I'm looking for a site with really good, up to date Flash tutorials. I have a membership to Lynda, but I'm looking more for short tutorials on things like text effects and feature focused tutorials. Something like the Tuts+ sites, which I believe use

  • Standalone Flex App

    I want to use some components from a Flex app that we are developping to create a standalone application for some of our clients who just want to use a few (small) features of our application. I'm planning to use the in-process HSQLDB database and no

  • Flash player issues with system recognizing it's installed - all versions

    I am running a Vista 64-bit computer.I seem to have had lots of trouble with Adobe Flash Player being recognized by various sites (and have the same issues with other computers running both XP and Windows 7). I've downloaded, I've clicked install, it

  • Which user exit allows to get cost element derivation in CO-PA after F-op.?

    Dear All, According with business requirements we need to get cost elements  used in Sales in CO-PA document after F-operations. We've got the answer from SAP that it could not be done by standard way. Cause profit segment we define in Sales order be

  • ACS 5.2 - User accounts File Update is not working as expected

    Hello, I have serious problem with importing Fixed IPs to User accounts in ACS 5.2. Because this attribute can't be migrated directly I try it via "File Operations --> Update". I have created file according to Update template but entered IP addresses