Call a special function in the dll using Call Library Function Node????

Dear all,
      I am calling a special function in the dll using call library function node. There is a input parameter that it is a enum type in this function. I don't know how to deal this parameter for calling this function.Has anybody solved this problem?Please advise!
      I am appreciated of you anytime. 

Most of the times an enum is just a U8/U16/U32, internally so probably you can call it with just a U8/U16/U32 or something. For the correct value you have to look at the definition.
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!

Similar Messages

  • Calling Functions of Loading DLL using java

    I have a dll file
    I know the functions which are ther in the dll
    But how to call those functions using JAVA ?
    can anyone tell me how to do the same...
    Thanx in advance
    regards,
    Ritesh

    I assume that you have a regular DLL and that the functions in that DLL are exported and that you know the signatures of each function.
    With that in mind, you will need to use the Java Native Interface (JNI), to call those functions from Java. In a nutshell, you will need to create at least one class which declares some native methods, code a class static code block to load the JNI-DLL you are about to create, compile the class(es), run the javah tool supplied with the JDK which will emit a C compatible header file, implement the functions from the generated header file and compile that source file to into a DLL. It would be in this DLL that you would use the functions in the DLL that you ultimately want to access. So, what you wind up doing is creating a wrapper DLL.
    Take a look at the JNI tutorial trail from Sun at http://java.sun.com/docs/books/tutorial/native1.1/index.html.

  • Call multiple functions from same dll with call library function

    hi,
    i am working on a project in wich we need to make a UI to read out a sensor network.
    the UI should be usable in any project, but every node needs a different piece of code depending on the type of sensor with wich it is equipt.
    so i need to be able to call different pieces of code when i need them, and still be able to use the UI in future projects with possibly new types of node we now don't have.
    so someone told me to use DLL's, cause then i would be able to call the code i need the moment i need it.
    but i have never worked with DLL's (just learned about this option 3 day's ago) so i have a question.
    i know i can dynamicly change the DLL i call with the call library function, but can i dynamicly change the function i call from that DLL ?
    or do i have to put a new call library function for each function i want to call, even if its from the same DLL ?
    kind regards,
    stijn

    nazarim wrote:
    ok so there is no (easy and ubderstandable) way for me to dynamicly change wich function i want to call from a certain DLL.
    but now i started wondering, the path on the call library function is not ment to dynamicly change a DLL
    but it does work so, if i am carefull, can i use it for that purpose or will labview give me a series of problems once i start using it in larger programs ?
    Thepath on the Call Library Node can be used to load a different DLL. Obviously since you can't change the function name your other DLL would have to export exactly the same function name and of course with the same parameters. This is seldom the case so it is not the main use of the path input to the Call Library Node. It's main use is as indicated to load DLLs at runtime rather than at load time of a VI. So that an application can run even when the DLL is missing, until the moment the functionality from that DLL is needed.
    If you can make sure that all your DLLs export the same function name with the same parameter you can use the Call Library Node to call into different DLLs through the path input. If however you would need to call different function names you would have to resolve to some DLL which does do the dispatching and invocation using LoadLibrary() and GetProcAddress(). But unless you need to go with DLLs for some reason using the Call By Reference Node can give you an even more flexible approach. 
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • NQSError: 22047] The Dimension used in AGO function must be referenced

    Hi All,
    I am selecting the following columns in the report:
    1. Dimension.Product
    2. Sales: Directly mapped to physical datasource
    3. Prior Month Sales: calculated using the AGO function at the Month Level
    4. Var from Prior Month : Sales - Prior Month Sales (Calculated at the Logical Level)
    Time Dimensional Hierarchy is Year > Quarter > Month
    I am getting the data for the same but when I apply Grand Total is throws the error:
    nQSError: 22047] The Dimension used in AGO function must be referenced in the query. (HY000)
    When I use the filter for the Month filed it is coming up fine but when I remove the month filter and apply on Year it doesnt work.
    Can anybody please let me know how this works?

    This error is happening in request?
    You have to apply filter MONTH because you are calling month in AGO function. Try to create YEAR AGO calculation and then try combining filters, you will see that then YEAR will be important, not month.

  • Calling DLL using "Call library function"

    I am trying to combine labview with my previous fortran functions using Intel Visual Fortran 12.1 and labview 2012 by below steps.
     1. Compile Fortran functions as DLL file.
     2. Call Fortran function from LabView via "Call library function"
    In step 2, DLL file without linker option "/DLL delayimp.lib" cannot be loaded. That is "delay load" is needed for DLL file.
    Are there any limitation or constraint in Call library function?

    Hi Vishnu,
    There's no problem using the Malloc function in C and call it as a DLL in LabVIEW.
    But LabVIEW has a different memory management than C.
    It is probably not recommended to allocate array memory in C for labVIEW arrays
    You can use initialize array in LabVIEW instead.
    Good luck
    Van L
    NI Applications Engineer

  • Passing Variant to dll using call library function node

    Hi,
    Using LV2012
    I have a dll that the following prototype:
    SetTestResult(LPCTSTR Serial, int Test, int Result, VARIANT measuredValue);
    How can I pass the Variant to this node when my variant can be either int or float.
    I have tried "ToVariant" function but it is not sending data and gets error 1517 on LabView. For configuration parameters for variant I have used ActiveX type and datatype as activeX Variant Pointer.
    So for call library function node my prototype looks like this:
    int32_t SetTestResult(CStr Serial, int32_t Test, int32_t Result, VARIANT  *measuredValue);
    Can someone help me understanding What am I doing wrong here please?
    Thank you,
    Hiren
    Hiren Patel

    Hello Hiren,
    Posting your code (even without the DLL) would definitely make it easier for people to point out potential issues.  Here is an example that demonstrates passing an ActiveX variant to a DLL built in CVI, I would suggest cross-checking the way the Call Library Function Node has been configured.
    Example:Transferring an ActiveX Reference Pointer to a CVI DLL
    http://zone.ni.com/devzone/cda/epd/p/id/3343
    Regards,
    Tom L.

  • Programmatically choosing the dll and function within the dll

    LabVIEW 2013
    I have a top-level UI application, basically a test executive, from which I want to execute external VIs, the tests, that are identified at run-time.  I think that means compiling my test VIs into DLLs and then accessing the test VIs from the DLLs.  The problem I have is that I do not know how to specify the VI to the Call Library Function at run-time.
    Also, since all of this is LabVIEW code, is there an easier way than using the DLLs?  Maybe an llb or packed library?  And how would I use these?

    hartzde wrote:
    [..] The vi will need to be in some compiled form.
    Default VIs include the compiled code.
    Maybe you should also take a look into TestStand.
    That being said, "Plug In" is (as already stated several times) the keyword you have to look for using Example finder, ni.com and even google.com (referring lavag.org and similar sites).
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to call the .dll use Jave

    hello,
    I will to call a .dll file in java
    which function or API can do that ?
    if someone knows , please tell me .
    thanks

    You must define "native" methods in java. The native methods allow you to call out of java into C programs (dll's on Windows, so's on unix.)
    There is a java tutorial on native methods. Look for the buzzwords JNI, which is Java Native Interface.

  • So my photos are taking up most of my hard drive storage because of the high quality of the images. Im wondering if anyone knows how to reduce the size using an iphoto function or other??

    So I need to find a way to compress all my images at once or resize them all so they wont take up as much space on my hard drive!! Please help!!

    There is no such function in iPhoto. If size is an issue you can run a Library from an external disk:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • I want to create a SPECIAL ringtone for the iPhone using a Windows PC

    I want to use the theme song of the television show "Big Bang Theory" as a ring tone. I bought the song off iTunes and found that I only want the first 20 seconds of it (the part you hear on television) then I want that part to REPEAT for the remaining 20 seconds of my 40 second ring tone. How can I do it?

    Although this video tells me how to use a song as a ringtone, it doesnt tell me how to take the first 20 seconds of the song then REPEAT it, to create the 40 second ringtone (I want to hear the part you hear on television TWICE).

  • Error when building DLL using Keithley library

    I'm trying to build a Labview Shared DLL of my VI's, however I'm using Keithley's KPCI-PIO24 Labview driver. When I include any of their library calls into my DLL, I will get a "LABVIEW.LIB was not called from a Labview process". I have mass compiled all the Keithley libs but this hasn't helped. Any ideas??
    Bob Wirth

    I am not 100% sure but I beleive that the KPCI line of drivers are DOS based. I know that Keithley's GPIB driver is DOS based. I am not sure about the labview drivers. This may have some effect on building a DLL. You may have to settle for building a llb instead of a DLL.
    - tbob
    Inventor of the WORM Global

  • Display Partner Function on the basis of Selected Partner Function

    We have multiple "Ordering Address" and "Goods Supplier" for a particular vendor. When we use a particular vendor at the time of PO creation, we dont want all the OA and GS to be populated in the "Partner Functions" tab. The OA should be populated based on the Vendor & P Org, and on the basis of OA should be selected, the "GA" related to the OA should be populated.For ex, if each vendor has 5 OA and each OA has 3 GS and the user selects a vendor then all 5 OA should be displayed. When the user selects one  of the OA, all the 3 GS related to that OA should be displayed.
    Is this possible to maintain this scenario?If yes, how can we implement it?
    Thanks
    TM

    Hi,
    You can accomplish the above in below EXIT's
    There are two function modules available to pass partner data to the PO
    EXIT_SAPLEKPA_001 include ZXM06U07
    EXIT_SAPLEKPA_002 include ZXM06U08
    Also further you should write a logic in the BADI ME_PROCESS_PO_CUST
    regards,
    Lalita

  • Remove Server function in the Netscape Console does not function

    Remove Server Instance does not function or not accessible. Am trying to remove a server from the console (Netscape Console 4.1) unfortunately i cannot access this specific functionality. Already tried re-installing but it does'nt function

    It is probably because the server you're trying to remove is the Directory Server containing the Configuration Information for the Admin (ie suffix o=NetscapeRoot).
    Trying to remove this specific instance of the Directory Server is like cutting the branch where you're sitting.
    Ludovic.

  • Changin Passwd using PAM Library functions

    We wrote code that uses "pam_chauthtok" to change password on Solaris 7 machine. However we get "dlopen" error when we run the code.
    We even changed the PAM.conf and added a line that loads pam_pwmgt.so.1 but still failed to make it work.
    Unable to figure out, Please help.
    Thanks,
    cldev.

    Did you find any solution to this problem

  • How to add style(color) info for the color used in ALV tree nodes

    I have an object for CL_GUI_ALV_TREE and I have added nodes to the tree and has set color for the nodes using 'STYLE' parameter. Now if I have to add the style info to the style(color) then how do I do it using the object I have?
    Edited by: Sujay V Koparde on Feb 20, 2008 4:27 AM

    Yes Eshwar, its similar to what you have written but my problem was that the style has already been assigned in the code and now I want to assign the style info(tooltip text) to the style(colour). I have an object of class cl_gui_alv_tree as of now and I am not able to find out as to how do I proceed to assign style information

Maybe you are looking for

  • Cp6 - Creating a TOC button (without Flash widget)

    Hello everyone, I am working on a elearning template that doesn't use a time slider bar so, navigation is done through the use of back/next buttons. I am also employing the Captivate TOC as a overlay. The problem I am having is that the default trigg

  • MSS Approval chip - missing Workflow system icon / image

    Hello to all, We are implementing HR Renewal 2.0 FP2 on a Gateway Hub setup. The TASKPROCESSING IW_PGW component was configured and the workflow from the Backend are showing up and when clicked the approval task is displaying the new UI5 approval scr

  • What's the best connection for Video/Film Editing and VFX...

    External Hard Drive connected via FireWire 800 or Ethernet (Network) External Hard Drive connected directly to my iMac's Ethernet port? Any Pros? Cons? How would that work? I am in a situation where I can exchange a USB 3.0 external hard drive (I tot

  • Photoshop elements 10 hangs

    The software for Sony VAIO VPCF 132  which is over a year old has developed a problem where it hangs on one page rendering the software useless.  How can it be repaired  or must it be replaced ?

  • Automatic execution of report

    Hi all, Need a help. Requirement is such as.. Some web reports need to be executed automatically at the end of month and report sent to users. Can anyone please help how to do it.