Want to pass pointer as an argument to function in DLL....using labview

i am using AD 9430 evaluation board and using DLL to talk with the device....
..now one of the functions in the DLL is
long CaptureFIFO(long *data, long numSamples, short FIFOChannel);  
i cant understand how to give these inputs in labview ...since i dont know hot to use pointers in labview
Message Edited by shambu on 11-20-2006 06:01 PM

There are a LOT of examples in the "...\Labview 8.x\examples\dll\data passing" folder of how to pass all kinds of data types to a DLL.
“A child of five could understand this. Send someone to fetch a child of five.”
― Groucho Marx

Similar Messages

  • Pass the command line argument (argc and argv) to a LabVIEW built shared library.

    Hello,
    I have successully use this trick to build a LabVIEW application that runs on Linux without X Display.
    http://digital.ni.com/public.nsf/allkb/5D6EC36DCF43343786257449006919E6
    I'd like to know if it's possible to pass the command line arguments ( ./TEST A B C D) directly into the shared library without having to pass the arguments using a array of strings which would require to write code using DSNewHandle, DSSetHandleSize, extract the arguments and ..... (I'm not proficient in C, but if I don't have a choice I will do it and improve my C skills).
    int main(int argc, char *argv[])
            Test(argc, argv);
            return 0;
    Thanks,
    Michel
    Solved!
    Go to Solution.

    Well, you can always flatten it back into a space separated single string and pass it like that. Basically reverse what the OS does when it calls your main function with the command line parameters. And while the first element in the array is always the program name itself you can just skip that here, but then format all the rest into a single string.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to pass a parameter of type __int64 to a DLL from LabVIEW?

    I have a DLL function built in C that has a parameter of type __int64. Is it possible for me to represent a control of type equivalent to __int64 in LabVIEW?

    kelsie,
    I would agree with the other answers, but I have a bit more information as well. LabVIEW's EXT data type is in an IEEE format for an 80-bit floating point number (1 sign, 15 exponent, 64 mantissa, see Application Note 154). This should then represent an 64-bit integer with no issues (theoretically). However, I have only ever been able to get it to represent integers up to 1000000000000000000.000000 visually (1*10^18). I have a VI that reproduces this and I am trying to get it fixed. Now, the numerical value in memory is correct, but LabVIEW cannot visualize it to you at each integer value from 10^18 to 2^64. (Try placin
    g an EXT control on the front panel and typing in 1000000000000000000.000000. Then type in 1000000000000000001.000000. Notice that it does not display that value. However, run the attached LabVIEW VI and notice that the numerical values are not identical because they are not equal.) Another thing to note is that the increment/decrement buttons quit working after 9007199254741000.00.
    This all came about because customers wanted to get 64-bit integers from GPIB instruments. So what I did what to take the string and make the 64-bit integer into 2 32-bit integers. I then put them back together into an EXT data type to represent the large number. This is when I ran into the issue of the very large numbers.
    So, I agree that inputting two 32-bit integers would be the best method. Then use the "Scale by Power of 2" function to multiply the high part by 2^32 and add it to the low part. Again, this works for numbers up to 10^18.
    I hope this helps.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask
    Attachments:
    EXT_Test2.vi ‏25 KB

  • How to pass a command line argument to a jsp file...

    Hi guys,
    I'm writing a jsp file in which I have some java codes. I want to pass some command line arguments to that jsp file. In other words, I have some files located somewhere on my C drive and I want to pass the path to these files to my jsp file. How can it be done? I have never done before.
    Any suggestion will be very hepful...
    Thanks....

    I dont know if I truly understand your problem...
    For instance, when you place the url of your jsp you can add, at the end some parameters. For example:
    http://myserver/myapp/myjsp.jsp?MyParameter=C:\Temp\JavaTutorial.html
    In your JSP, you can place this code on a scriplet to get the value:
    String path = request.getParameter("MyParameter");
    Hope it helps.

  • Passing a command to another applicatio​n using Labview

    Hi All,
    I have a query. I am using two softwares for my experiment. I am calling coboldpc from Labview. What I need to do is when I call cobold pc from Labview, as soon as coboldpc opens it should start executing new.ccf file. I am able to call coboldpc from labview . How can I pass a command 'execute new.ccf' to coboldpc by using Labview! Thanks a lot in advance to the person who has answer to this.
    Maithili

    I do not know what do you exactly mean by this! I tried to execute coboldpc application through dos prompt and also to pass the command. It works fine with document file but not with an executable file. Coboldpc has a command line where I think I need to pass the command.
    I am trying for one more option to work this out. I am trying to call coboldpc dll through labview. Actualy it i staking time to study those dlls written by someone else. I am not getting much of it. Do you have any idea by any way how can it become easier to use this option!
    Thanks ,
    Maithili

  • Passing argument to function

    hi to all
    i have one querry
    i want to pass an argument to function through jsf tags
    can you help me out
    how i will do it
    <h:selectOneMenu id="listSP" value="#{ProfileInit.selectedItem}" immediate="true">
    <f:selectItems value="#{ProfileInit.populateSubStationsName}" />
    </h:selectOneMenu>
    public populateSubStationsName(String a,String b){
    i want to pass two argument to "populateSubStationsName()" method
    is it possible
    i heard about the tag name "attribute" is it possible to pass through this tag

    Yes, it is. See [1]. But I doubt if you actually need this. Reading the articles at [2] and [3] may give new insights.
    [1] http://balusc.blogspot.com/2006/06/communication-in-jsf.html
    [2] http://balusc.blogspot.com/2007/09/objects-in-hselectonemenu.html
    [3] http://balusc.blogspot.com/2007/10/populate-child-menus.html

  • How to invoke adobe life cycle webservice using c++ (how to pass blob structure as argument)

    We already wrote sample code (.NET C#) to access livecycle webservice(this convert the input file into pdf file) using below link from adobe
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/common/ht ml/wwhelp.htm?context=sdkHelp&file=000088.html
    We want to write c++ client to invoke adobe life cycle webservice. I have sample code to invoke the given webservice using plain c++ but I am stuck up with 'how to pass BLOB structure as argument to CreatePDF() method' and
    plus 'how to get ouput as mapItem[]' . Is the code to convert to pdf works fine with .NET and java only? Not with c++ or VB?

    In this case the LiveCycle services are exposed as web services that can be consumed by any application language that can interact with web services. While the sample published are for c# and Java there is no reason that other web service aware languages (C++, Perl, etc) wouldn't work.
    I'm not a Microsoft C++ expert, but as far as I understand all you need to do is create a web reference and then have your C++ classes interact via the generated proxy classes. The syntax will be different, but the concept is the same

  • Want to pass DataBase output to RFC as an Input

    Hi All,
    Can you please let me know, How to pass the DataBase output to RFC as an Input.
    I am using JDBC Pooling to get the data from Oracle Databse.I want to pass output data(Which I got from the JDBC Pooling) to RFC as input parameters.

    Hi,
    Can you please elobrate your scenario and the meaning of JDBC Pooling as well? Are you writing some java jdbc program which will get the data from database and that data you want to send to RFC as input?
    If so then you need to use BPM
    Receive the request as output from jdbc.
    Map it to the RFC structure.
    Do the rest ....
    Thanks
    Amit
    Reward points if suggestion is helpful.

  • Pass in ValueObject as argument to CFC???

    Hi,
    I am confused on how pass in arguments to the CFC when I am
    sending a ValueObject in from Flex. I have this code.
    public function saveEmployee( employeeVO : EmployeeVO ): void
    var call:AsyncToken = service.saveEmployee( employeeVO );
    call.addResponder( responder );
    The parameter employeeVO in the above function contains all
    the data the user typed in on my form. I want to pass this data to
    my CFC as an argument, but not sure how to do so.
    -Westside

    Hi,
    I will try that because I do have those extensions installed.
    I got it to work without the extensions but I can't understand why
    this code works:
    public function saveEmployee( employeeVO : EmployeeVO ): void
    var call:AsyncToken = service.saveEmployee( employeeVO,null
    call.addResponder( responder );
    By adding that null it seems to work. I have the cfc
    accepting the employeeVO as a "struct". If I remove that null, then
    it bombs.
    Any idea why?
    -Westside

  • Want to pass STRS2 field into sales order and contract.

    Hi Friends.
    I am creating Sales order using function module IDOC_INPUT_ORDERS and Contract using SD_SALESDOCUMENT_CREATE.
    Now I want to pass STRS2(House number field into Sales Order/Contract). In IDOC I tried to pass E1EDKA1-STRS2, but its not coming into Sales order output.But SD_SALESDOCUMENT_CREATE dont have an option to pass the field value.
    So in that case how can I achieve the desired functionality, Is there any user exit or let me know the suitable method to achieve the functionality.
    Thanks
    Gowrishankar

    Yes I tried that also.I passed the value from program to user exit MV45AFZZ and updated the structure XVBADR in USEREXIT_SAVE_DOCUMENT_PREPARE, but its not getting reflected in Sales Order/Contract.
    Anyone have suggestion..plz let me know.
    Thanks
    Gowrishankar

  • I want to pass my iMAC along to my kids. System is 10.4.11 or 10.5.11.  Have original Lion and Tiger OS discs.  What do I need to do to set it up for a new user?

    I want to pass my iMAC along to my kids. System is 10.4.11.  Have original Lion and Tiger OS discs.  What do I need to do to set it up for a new user?

    I'm having to guess at which iMac you have. This forum covers three older variants of the iMac family that were made from 1998-2005 with three different processor types.
    If yours has a G-series processor, it can run neither Lion 10.7  nor Snow Leopard 10.6. If the processor is a G5 or a G4 (must be faster than 867mHz( you can install Leopard 10.5. If your plan is to reinstall the OS before turing over the computer, let us know which iMac you  have (doing "About this Mac" from the Apple menu will give the processor type--that will do for this purpose)
    If "About this Mac" says you have an Intel processor, you have a much newer iMac. Let us know and I can ask the Hosts to move it to that separate forum.
    If you wish to maintain control over the computer, you can go to System Preferences > Accounts and set up a new standard account. The user logged into that acct can pretty much use anything installing in that account but cannot install new software or modify the system. That means less chance of something bad getting on the computer but also means they wil be asking you to help install stuff as they won't have access.
    If you wish to give the kids full control, set up a new account with admin priveleges, then either strip content form your account and leave it, or simply delete it once you are satisfied that the new accout is working.
    This Apple support page is chock-full of helpful tips on manageing accounts and security in OS10.4 Tiger"
    http://www.apple.com/support/tiger/accounts/

  • Pass dynamic Command line arguments

    Hi,
    I tried to pass dynamic command line argument to Web start using the method :
    "javaws URL -D foo -D bar"
    as explained in the "Unofficial JWS/JNLP FAQ" that " You can pass your own system properties to your app using -D switch ....", but I got the following error at the start;
    error occurred while launching/running the application.
    Category: Invalid Argument error
    Too many arguments supplied: {http://...URL/my.jnlp, -Did=123 }
    p.s. I already added the"<property name='' value=''/> in the <resourse>, and modified the main class to get the parameter using System. getProperty();
    Did anyone try to this method before? What's wrong of this?
    Thanks in advance for your help.

    Thanks.
    here below is the jnlp file:
    <jnlp spec="1.0+" href="$$name" codebase="$$codebase">
    <information>
    <title>GUI Application</title>
    <vendor>PS</vendor>
    <description>PS GUI WebStart Version</description>
    <icon href="logo.jpg" />
    <offline-allowed />
    </information>
    <resources>
    <j2se version="1.3" />
    <jar href="lib/gui.jar" />
    <property name="id" value="zbc" />
    <jar href="lib/classes12.zip" />
    <jar href="lib/j2ee.jar" />
    <jar href="lib/jaas.jar" />
    <jar href="lib/jce1_2_1.jar" />
    <jar href="lib/jdom.jar" />
    <jar href="lib/xerces.jar" />
    <jar href="lib/local_policy.jar" />
    <jar href="lib/log4j.jar" />
    <jar href="lib/orion.jar" />
    <jar href="lib/sunjce_provider.jar" />
    <jar href="lib/US_export_policy.jar" />
    </resources>
    <security>
    <all-permissions />
    </security>
    <application-desc main-class="GUIFrame">
    </application-desc>
    and in the main class "GUIFrame", i use System.getProperty("id") t get the parameter, if I hardcode the value of the "id" in this jnlp file and use javaws URL, everything's fine, but not the "javaws URL -Did=value" which will return the error as mentioned.
    Thanks again for your help.

  • HT4113 When I go for restrictions my iPad mini want my pass code I fill it's recurarment it's say wrong please help me what I do....?

    When I go for restrictions my iPad mini want my pass code I fill it's recurarment it's say wrong please help me what I do....?

    Hey there Ajjusingh,
    It sounds like the passcode you are entering for your Restrictions is not working for you. According to the following article you will need to perform a factory restore to reset that passcode:
    iOS: Understanding Restrictions (parental controls)
    http://support.apple.com/kb/ht4213
    Note: If you lose or forget a restriction passcode, you will need to perform a factory restore to remove it.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Want to pass beginning of period date to curc function in fox

    Hi All,
    I want to pass beginning of period (first date entry for that period in table TCURR ) to curc function.
    Is there any way to check out the first entry for that period in TCURR table and pass that value to curc function in fox.
    Thanx&Rgds,
    Indu

    Hi All,
    I want to pass beginning of period (first date entry for that period in table TCURR ) to curc function.
    Is there any way to check out the first entry for that period in TCURR table and pass that value to curc function in fox.
    Thanx&Rgds,
    Indu

  • Want to pass Applet form variables without showing it on URL Location

    I am running one applet with some form variables. After submit I want to pass those to .asp file to store into database.
    If I use URL method then all are getting displayed on URL location of browser which I do not want. I want to pass many form variables to another .asp file, so it may not be good also.
    What is the best way of doing it ? Need urgent help about it.

    I tried following code using URL Connection Object, Code is running fine in IE and Appletviewer, but not running in Netscape.
    Following is the code:
    There is an applet with form. After Submit button, The form variables will be send to ASP script where I am storing it into database. In Netscape the server connection is made (blank record is getting created) but data is not passed.
    public void actionPerformed(ActionEvent event) {
    try{
    ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
    PrintWriter out = new PrintWriter(byteStream, true);
    String postData = "firstName=manisha";
    out.print(postData);
    out.flush();
    URL dataURL = new URL("http://manisha/appletexamples/confirm-px.asp");
    URLConnection connection = dataURL.openConnection();
    connection.setUseCaches(false);
    connection.setDoOutput(true);
    String lengthString = String.valueOf(byteStream.size());
    connection.setRequestProperty ("Content-Length", lengthString);
    connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    byteStream.writeTo(connection.getOutputStream());
    BufferedReader in =
    new BufferedReader(new InputStreamReader(connection.getInputStream()));
    String line;
    while((line = in.readLine()) != null) {
    System.out.println("line: " + line);
         } //while
         in.close();
    } //try
    catch(Exception e){}//catch
    }//action performed
    My ASP Code
    <%
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.Open("DATABASE=phptestdb;DSN=phptestdsn")
    %>
    <HTML>
    <HEAD>
    <TITLE> A Sample Program </TITLE>
    </HEAD>
    <BODY>
    <%DIM fname
    fname = ""
    fname = Request("firstName")
    response.write ("fname : " & fname)
    qrystr1 = "insert into applettesttable (fname) values ('" & fname & "')"
    conn.Execute qrystr1
    conn.Close
    Set conn = Nothing
    %>
    </BODY>
    </HTML>

Maybe you are looking for

  • Audio isn't showing up in quicktime conversion

    I was using Keynote for a presentation and I added audio and video to it. When I exported it to Quicktime, because I am needing someone on a PC to be able to view it, the audio got lost when they tried to open it?  I checked all appropriate boxes.  W

  • How do I get an application back on to my screen once I've moved it to the side?

    I opened an application that requires me to move it around my screen by clicking on the top bar.  Somehow I moved the top bar too high out of sight and now I can't pull it back down.  Please help!

  • Using SwingWorker more than five times

    Hi there, I'm having a problem with the SwingWorker. A SwingWorker class is called for loading a large file into the database. After I have loaded five files to the database, the sixth loading isn't working and the GUI isn't responsing anymore. Is th

  • Ground loop with TV when power adapter connected

    I have a white Macbook (non-unibody) which I have connected to my TV with a mini-dvi to VGA adapter. I have done the same in the past with my Dell 1525 with no issues. When the Macbook is connected to the display whilst being connected with the power

  • Photosmart 7350 assert error

    When I turn on my Photosmart 7350 it displays "starting up" for a second, then it displays "Assert Error C0140701" and the print button flashes. What could be wrong?