How to call LabVIEW_VI in VBScript(activex Com server) with (ByVaL, ByRef)parameters

Hai to all,
i want to call LabVIEW_VI(Activex Server) from VBScript. That VBScript include onther COM Server. i want to data exchange between VBScript and LabVIEW. That parameters shouldbe two types, I mean some parameters ByVal and some ByRef.
How can i call?
Request: How to create VI function with ByRef parameter in LabVIEW.
ex: in 'C++': LabVIEWFunction(short* numb1, CString* str1).
Note: i am using LabVIEW 7.0 Express.
Thanks for advance!

Hello.
I am not sure if I understand correctly. Sure, you can access both controls (inputs) and indicators (outputs) with the LabVIEW ActiveX server. If you use the call function i mentioned in my last answer, you might pass two arrays to the function. One array with the control/ indicator names and another one containing the values. After calling the VI you will find the data of the VI outputs inside the values-array.
Have a look at the attatched ZIP file. It contains a simple example showing the procedure.
Attachments:
callVI.zip ‏8 KB

Similar Messages

  • How to call LabVIEW dll from ATL COM dll

    I have tried to call simple LabVIEW 8.6 Dll from win32 test application, class Library.
    I have include LabVIEW generated SharedLib.h file and SharedLib.lib file in the test application which I created as simple win32 console project and also from win32 class Library. I was sucessfully able to call my LabVIEW dll funtion. 
    But when I create ATL COM project and try to add SharedLib.h file and SharedLib.lib file I used to get following erors
    Error 1 error C2733: second C linkage of overloaded function 'StrCatW' not allowed d:\program files\national instruments\labview 8.6\cintools\extcode.h 463 
    Error 2 error C2733: second C linkage of overloaded function 'StrCpyW' not allowed d:\program files\national instruments\labview 8.6\cintools\extcode.h 464 
    Error 3 error C2733: second C linkage of overloaded function 'StrCpyNW' not allowed d:\program files\national instruments\labview 8.6\cintools\extcode.h 465 
    Error 4 error C2733: second C linkage of overloaded function 'StrCmpW' not allowed d:\program files\national instruments\labview 8.6\cintools\extcode.h 466 
    Error 5 error C2733: second C linkage of overloaded function 'StrCmpNW' not allowed d:\program files\national instruments\labview 8.6\cintools\extcode.h 467 
    these many errors.
    Will some one explain me how to call LabVIEW dll from ATL COM dll.
    Thanks & Regards,
    Jay

    I also had this problem.  My application is unicode-aware, but I was attempting to link it to a library with primitive C-string arguments.  You could dynamically load the DLL as suggested (more work), modify the header files (really not recommended), or if you are feeling lucky you could try fooling the compiler, as I was successfully able to do in Visual Studio 2010, by steering the preprocessor around those functions (assuming you're not using them, of course -- otherwise this probably wouldn't work):
    // prepare for NI extcode.h inclusion. avoid linker errors for this project.
    #define StrCatW(a,b)     IgnoreLinkError_StrCatW(a,b);
    #define StrCpyW(a,b)     IgnoreLinkError_StrCpyW(a,b);
    #define StrCpyNW(a,b,c)  IgnoreLinkError_StrCpyNW(a,b,c);
    #define StrCmpW(a,b)     IgnoreLinkError_StrCmpW(a,b);
    #define StrCmpNW(a,b,c)  IgnoreLinkError_StrCmpNW(a,b,c);
    // header file for my LabView-built DLL (ASCII single-byte character arguments)
    #include <MyLibraryHeader.h>
    // clean up afterwards, put things back to 'normal'
    #undef StrCatW
    #undef StrCpyW
    #undef StrCpyNW
    #undef StrCmpW
    #undef StrCmpNW

  • How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style.

    How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style. It should decide at run time means at run time it will come to know the type of address style and based on that only the fields which belong to address details mapped to calling hr_location_api.create_location.
    Thanks in advance.

    You can create a wrapper package on top of the API (hr_location_api.create_location)
    In the wrapper package you set all the values dynamically based on your requirements(say the style and add_line columns are populated on your conditions) and then you call the API.
    Does that not work ?

  • How to call procedure in Java from SQL Server Database

    Hello Every Body
    i Have Question about
    How to call procedure in Java from SQL Server Database
    Thanks

    Hi,
    have you tried a Google search? I just gave it a 3 second try and already found: http://stackoverflow.com/questions/6113674/how-do-i-execute-a-ms-sql-server-stored-procedure-in-java-jsp-returning-table-d
    Frank

  • My email gives 2 sender addresses, it always automatically goes to the one i don't want as my email address, i try to remember to change it. how do i change it to automatically come up with the one I want

    my icloud email gives 2 sender addresses, (icloud.com and me.com) it always automatically goes to the one i don't want (icloud.com) as my email address, i try to remember to change it to (me.com). how do i change it to automatically come up with the one I want (me.com)

    On your iOS device, go to Settings > Mail, Contacts, Calendars > iCloud > Account. Tap Mail, tap Email, then tap the address you want to send from.

  • 1) How to Boot from SAN for T4-1 Server with Solaris 11.1 OS on the disk? 2) How to SMI Label/Format a disk while OS Installation in Solaris 11.1?

    FYI....boot from SAN is required for physical server (T4-1) (not OVM).
    1) How to Boot from SAN for T4-1 Server with Solaris 11.1 OS on the disk?
    The SAN disks allocated are visible in ok prompt. below is the output.
    (0) ok show—disks
    a) /pci@400/pci@2/pci@0/pci@f/pci@0/usb@0, 2/hub@2/hub@3/storage@2/disk
    b) /pci@400/pci@2/pci@0/pci€a/SUNW, ezalxs@0, l/fp@0, 0/disk
    e) /pci@400/pci@2/pci@0/pci@a/SUNW, ealxs@0/fp@0, 0/disk
    d) /pci@400/pci@2/pci@0/pci@8/SUNW, emlxs@0, l/fp@0, 0/disk
    e) /pci@400/pci@2/pci@0/pci@8/SUNW,enlxs@0/fp@0,0/disk
    f) /pci@400/pci@2/pci@0/pci@4/scsi@0/disk
    g) /pci@400/pci@1/pci@0/pci@4/scsi@0/disk
    h) /iscsi—hba/disk
    q) NO SELECTION
    valid choice: a. . .h, q to quit c
    /pci@400/pci@2/pci@0/pci@a/SUNW, ealxs@0/fp@0, 0/disk has been selected.
    Type “Y ( Control—Y ) to insert it in the command line.
    e.g. ok nvalias mydev “Y
    for creating devalias mydev for /pci@400/pci@2/pci@0/pci@a/SUNW,emlxs@0/fp@0,0/disk
    (0) ok set—sfs—boot
    set—sfs—boot ?
    We tried selecting a disk and applying sfs-boot at ok prompt.
    Can you please help me providing detailed pre-requesites/steps/procedure to implement this and to start boot from SAN.
    2) How to SMI Label/Format a disk while OS Installation in Solaris 11.1?
    As we know that ZFS is the default filesystem in Solaris 11.
    We have seen in the Oracle documentation that for rpool below are recommended:
    - A disk that is intended for a ZFS root pool must be created with an SMI label, not an EFI label.
    - Create root pools with slices by using the s* identifier.
    - ZFS applies an EFI label when you create a storage pool with whole disks.
    - In general, you should create a disk slice with the bulk of disk space in slice 0.
    I have seen the solution that using format -e, we change the labelling but all the data will be lost, whats the way to apply a SMI Label/Format on a rpool disks while OS Installation itself.
    Please provide me the steps to SMI Label a disk while installaing Solaris 11.1 OS.

    Oracle recommends below things on rpool: (thats reason wanted to apply SMI Label)
    I have seen in the Oracle documentation that for rpool below are recommended:
    - A disk that is intended for a ZFS root pool must be created with an SMI label, not an EFI label.
    - Create root pools with slices by using the s* identifier.
    - ZFS applies an EFI label when you create a storage pool with whole disks.
    - In general, you should create a disk slice with the bulk of disk space in slice 0.

  • How to Call Fmx file in the Linux Server

    Hi All,
    Iam having a server when ever i receive a file through FTP to the server , server will trigger to call a fmx file in another server. so that it reads the data of the file and insert into database .
    How this can be achieved in Linux server, at present it is working in Windows
    Please any solutions appreciated.
    Gunisetty Venkatesulu

    Using Forms to insert data from a file into a table is the wrong way to do this. It would be much more efficient and appropriate to use SQL Loader to insert the file data. Another option, depending on your database version, would be to use an external table. External tables are basically an interface that uses SQL Loader to read and write to the file just like you would a table. You must have RDBMS 10g or higher to use external tables.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to use jacob to access a com object with coldfusion7

    i want to use jacob to access a com objcet with coldfsuion7(i
    just want to do a test)
    how to do?
    Thank a lot!

    Flashcqxg wrote:
    > i want to use jacob to access a com objcet with
    coldfsuion7(i just want to do a test)
    > how to do?
    you don't. use createObject():
    mailer=createObject("COM","CDONTS.NewMail");
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfobject_08.html

  • How to call a other servlet in other server

    I want to forward a request coming from one HTTP Client to another servlet which is in other web server. Is it possible? If Possible how can I do it?
    Can anybody explain with an example.
    Thanks,
    Thiru

    You could open an HttpURLConnection to the other servlet and recieve the output from the servlet and incorporate this output into the first servlet's response. You will not be able to directly pass the original request to the second servlet but can construct a new request to the second servlet.

  • How to Install 11.5.10 on win2k Server with service 4

    Hi
    can some body give me faire idea that how to install 11.5.10 on win2k server .
    I have done following actvities:
    created the stagearea(under 11.5.10 in c:\stage11510)
    1. installed mks tool kit under c:\Tools\MKSNT
    2.Vc++ under the directory c:\Tools\VC
    whwnever i run rapidwiz it gives error that unable to connect find the utilitis
    please guide me
    abhishek

    There is no need to rename file.
    You can get gnumake folder on name. The latest one is make-3.79.1.tar.gz
    Get two more files make and tar files........
    Instead just search this site for installing gnu make. Very easy steps are there.
    I think there should not be any problen.
    And Just dump all the files somewhere. When you start installation and installer does not find something it will ask for the location. This is the way I haev followed.
    let me know when you successed.
    BTW what is the system config you are using?
    --Arvind Ashtekar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to call matlab function through activex and execute in labview?

    Hi,
    I have created a gui based application in matlab and I wish to use back d same gui and run it as is it in labview. Can it be done with activeX? if so, may I know how to do it?

    Play around with this a little.  This is an example program I found on the WEB...I don't have Matlab so I can't run it.
    -Brett
    Attachments:
    Matlab_ActiveX_Example.zip ‏26 KB

  • How to call a BW WEB template from R/3 and pass parameters to the report

    Is it possible to call a BW web template from an R/3 system, through an abap program?
    I have a BW WEB report template. This works very good, and i have 3 variables in the query.
    Now, i need to invoke the BW web template from inside of an abap in R/3..
    And i want to pass 3 variables from the R/3 ABAP to the BW WEB TEMPLATE.....
    Is possible to call BW web templates from R/3??
    PLEASE!!! HELP ME..
    Carlos E. España
    ADATSA
    [email protected]

    Thank you very much for your valuable help, i checked your suggestion and looks great. But i need to pass 3 parameters from an ABAP to the wad query report.
    How can i pass the parameters to the web template???
    another issue: My WAS (Web Application Server 6.20) is not public, is currently working for a local area network.
    The access to this report is from outside of the office, so we need to access this through the PORTAL.

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • How to call a stored procedure on time basis with out using sql job and GOTO

    Hi,
       I wanted to call a stored proc, on time basis ,
    please tel me how it can be done with out using sql job , goto .
    1) That is, is there any timer aviable in sqlserver.
    q2) And which one is better GOTO or sql job.
    yours sincerley

    Raj, Check if my explanation helps you:
    Your job runs every 10 seconds.
    Lets say first time you are scheduling and running your job at 12:00:00 PM
    Now your proc will start executing.
    Say it got finished at 12:00:07.
    Now the next schedule time is 12:00:10 PM.
    The moment this time hits, the job will get invoked and start executing the proc.
    Lets say this time it finished at 12:00:22 PM (It took 2 extra seconds)
    This time the scheduled time is already gone (12:00:20 PM), thus it'll now run at the next schedule that is 12:00:30 PM.
    Thus if anytime your job takes more than 10 seconds to run, it'll just miss those particular schedules overlapping with execution time. Otherwise you are good to go. 
    PS: A job is the best way to handle this, in your problem statement you don't need a job but that would be wrong. You have another way to do that, if you keep running your procedure all the time and the moment your timestamp hits a multiple of 10
    seconds you can run your logic and then returning to the timer. But this is extremely wrong for a system. Even if your requirement is extremely transactional and complex, I would not suggest this. If the job is taking more than 10seconds (which it might if
    your logics inside are complex), you should optimize your code and table architecture.
    Chaos isn’t a pit. Chaos is a ladder. Many who try to climb it fail and never get to try again. The fall breaks them. And some are given a chance to climb, but they refuse. They cling to the realm, or the gods, or love. Illusions. Only the ladder is real.
    The climb is all there is.

  • How to call matlab script? (it shows server error)

    hi all
    i am using original version of Labview 8.2 and Matlab 7 . but i can not call the matlab script in Labview. while doing the same it shows server error Active X control fails to connect the server. What can i do?
    suggestion please...
    thanks in advance...

    Hi adsafsaf,
    Can you provide an error number or more details about how you are trying to call your MatLab script? Until you can share those details, you might want to consult either this KnowledgeBase or this one.
    Regards,
    Hillary E
    National Instruments

Maybe you are looking for

  • I have a few questions about iCloud....

    1-Is the only way there is to save docuemnts is by using the proper version of say Pages, and save it to iCloud? There isn't a vistual hardisk such as iDisk where I cam store my docuemnts, or pictures, or whatever, and pull them down from anywhere? I

  • .mov file will not open in FCP X?! codec unavailable? help!

    I am trying to edit a short .mov file in FCP X. It was sent to me via YouSendIt. Once it has completed downloading, a message reads: " The document "S-T3RRA Video Heads by FLOOD(1)-2.mov" could not be opened. A required codec isn't available. To see

  • Why has CC app lost track of installed apps since an update today?

    I updated the CC app this morning. Since doing so it has lost track of all the installed apps and thinks I have non installed. From a different post I came across the following and it mentions following step 2 of this article which I did: "Unknown Se

  • How to install the OSM Administrator tool in Oracle Solaris 10?

    Hi all. I have a single question, I know that I can install the OSM in Oracle Solaris 10, but, can I install the OSM Administrator tool in the same Operating System "Oracle Solaris 10", or this must be installed in Windows? Thanks in advance. Lucas.

  • Can't open pages files since update

    I am unable to open my pages application or access any of my files.  This has occurred since the update I installed.  Help please - but give detailed instructions - I'm new to this.