How to get LabVIEW to use library created in Xcode using a library node?

I have written C++ code in the Xcode IDE on Mac OS X. This code controls a camera driver to tell it to take a picture and save it. I want to call this code in LabVIEW. I am trying to use a library node, but when I tell it the location of the Xcode project it doesn't recognize that anything is there. How can I get LabVIEW to recognize this? (Xcode used to be called Project Builder in earlier versions). In the documentation it says to link against libvlexports.a. I have included this file in my Xcode project, but does "link against" mean something more than that?

To create a framework in XCode that you can reference in LabVIEW for Mac OS:
Open XCode.
Select File»New Project.
Select Framework»Carbon Framework as the project type.
Name the framework when prompted. Click Finish.
The XCode browser will now appear. Click on main.c to open the file. This is where you will create your functions. For an example open the file main.c in the Call Library Function Node on Mac with XCode zip file.
After adding your functions, compile the framework. The compiler settings should all be left at default.
Access your functions via a Call Library Function Node in LabVIEW.
To access the functions in a framework using the Call Library Function Node in LabVIEW:
Place a Call Library Function Node on the block diagram by going to All Functions»Advanced»Call Library Function Node.
Apple-Click on the Call Library Function Node and select "Configue..."
Click on the Browse button and browse to your .framework file and click Select to select the framework.
Type the name of the function you want to access in the Function Name field.
NOTE: Unlike LabVIEW 7.x for Windows, once your framework is selected, the Function Name field DOES NOT autopopulate a list of functions in the framework.  You must type in the name of the function you want to access.
Specify the return type of the function.
Add the number of parameters in the function and specify their types.
The function prototype will appear in the Function Prototype field according to how you have specified the function parameters.
Click the OK button.
Your Call Library Function Node will appear with the number of inputs you selected as well as the output. If LabVIEW cannot find the function you specified within the framework, it will show a broken Run arrow.
The "Call Library Function Node on Mac with XCode.zip" file (attached) contains a simple framework created in XCode along with its source code in main.c.  main.c simply contains two functions both of which multiply two numbers. One function accepts integers and the other doubles. The zip file also contains a VI that references this framework using a Call Library Function Node.  This VI was created in LabVIEW 7.1 for Mac OS.
Kind Regards,
Message Edited by AESulzer on 07-08-2005 06:11 PM
E. Sulzer
Applications Engineer
National Instruments
Attachments:
Call Library Function Node on Mac with XCode.zip ‏33 KB

Similar Messages

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • My husband wiped out the library on his itunes account and replaced it with mine.  Any ideas on how to get it back?  Our laptop does not have his library either.  only mine.

    My husband wiped out the library on his itunes account and replaced it with mine.  Any ideas on how to get it back?  Our laptop does not have his library either.  only mine. 

    How exactly did this happen? Were you using separate iTunes libraries on separate user accounts on the laptop?
    B-rock

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • How to get rid of ask toolbar on a mac using chrome browser

    how to get rid of ask toolbar on a mac using chrome browser

    How to remove Ask toolbar?
    You may find this helpful.
    http://support.mindspark.com/link/portal/30028/30031/Article/1543/Toolbar-Remova l-Instructions-for-Mac-OSx-Users

  • How to get labVIEW to recognize DaqBOOK 2000A from Iotech

    I've just setp my hardware and software. Does anybody now how to get LabView to start "talking" with this IOTech product, DaqBook 2000A or similiar IOTech hardware?

    You can get the Agilent drivers from Agilent - where else?
    Once you have installed the drivers, in MAX you have to enable tulip support for the non-NI controller to be recognized. Expand the software listing, select NI-VISA, select the VISA Options tab, select General Setting>Passports. Check the box for NI-VISA Support for Tulip.
    p.s. It's not a 'cord' or 'wire'. It's a GPIB controller. There are numerous GPIB tutorials available on the web. You should google that before you start doing any LabVIEW programming.

  • What is the use of creating proxy services using WSDL.

    Hi
    Am a beginner in ALSB and i have a basic question. Business services are created using WSDL,thats sounds logical as we need to invoke the actual backend services .
    Proxy services are connected to business services and what is the need that it can be e created using WSDL.
    What is the use of creating proxy services using WSDL.

    Hi,
    I beleive you are confused because of the apparent inclusion of transport information in WSDL (that is the host:port/endpoint where the service is hosted). However, if you refer to the w3c specification of WSDL1.0 ([url http://www.w3.org/TR/wsdl]www.w3.org/TR/wsdl), you will find that WSDL has three separate sections:
    1. The schema information that describes data element(s): specified in types
    2. The message information ie message and port sections that specify the parameters and the operations
    3. The service section that specify the actual protocol and endpoint binding.
    Ideally, a WSDL can be broken down into these three separate components. Any WSDL containing the first two is called an abstract WSDL and is used for a top-down approcah for web services, and if the third part is used, then you get a concrete WSDL, containing invocation end-point also.
    Comming back to your question one can typically use an Abstract WSDL for creating proxy service. This way, the service requester and integration can go on two separate threads where the common denominator or agreement between these two parties in terms of operation name and data element are imposed using the WSDL.
    Thanks and Regards
    Vivek Nandey
    BEA Certified Developer for Integration Solutions

  • How to get selected record details when single selection is used in a table

    Hi All,
    Inside a query region I have created a table using region wizard,for this table I have added a singleSelection Item. What I want is , on selection of a particular record i want to update or view that record in a new page , for this I have added update and view icons in each row.
    But I am unable to get the particular selected record
    OATableBean tableBean = (OATableBean)webBean.findChildRecursive("ResultTableRN");
    OASingleSelectionBean singleSelection = (OASingleSelectionBean)tableBean.getTableSelection();
    For this singleSelection object I was unable to find any method which will give the value of the view attribute associated with it.
    Anybody any suggestions regarding it ?
    Thanks in advance,
    Anant NImbalkar.

    Hi Anant,
    here is how you have to do it
    1) you need to enable PPR on that Singl selection , by changining the Action type =fireAction.
    2) define the envent , EVENT
    3) define paramters for that event. This is place that gives you handle to the Attribute of VO.
    So you can define paremters such
    Name = PARAM1
    value =${oa.EqxContactPrivEOVO1.ContactPrivilegeId}
    You can define as many paramters as you can for the vo field that u wanted to have.
    Now in the procesformRequest() , all you do it handle the event EVENT and get the parameters
    if ("EVENT".equals(pageContext.getParameter(EVENT_PARAM)))
    String accountid= pageContext.getParameter("PARAM1");
    You can refer developer guide for further details.

  • How to get message in realtime sent by another user using FM TH_POPUP?

    I want to program a chat function between two SAP users by using ABAP.
    1.User A send a message to user B by using TH_POPUP,
      At the same time, the message is showed in screen as 
      'Send message'
    2.User B get the message
    ->My problem is how to get the message in realtime which I want to show it in screen as 'Received message'.
    Can anybody tell me how to get the message sent by using FM TH_POPUP in realtime?
    Edited by: Jing Yu Huang on Feb 6, 2008 2:11 AM

    Hi there
    This really isn't a "conversation" type program
    1) What does the original user do after sending the message -- I'm not sure if there's a WAIT_FOR_REPLY and even if there were I'm not sure  you'd want the original user to have a suspended session waiting for a reply.
    2) What does the 2nd user do after receiving the message --if it's just thrown up on his screen  then there isn't any mechanism to return a reply from USER A'S SESSION.
    You need somehow to have a continually running process which will send a message for example to user B and create an event or do somethimg so that User B is bound to the same session that sends the original message.
    2 different users running the same abap don't actually have any common link between them even on remote function calls.
    You need to have a central process here that shares a message space between the users (i.e a kernel type module).
    Classical Abap won't do (nor is it designed for) these types of processes.
    You might be able to find something in some of the  'C' coded kernel calls but as I previously posted before you are far better off using Windows for this type of stuff. (Windows Messenger for example).
    ABAP unfortunately is not designed as a multi user  "re-entrant"  programming language - nor was it intended to be.
    Another possible get around is to use the workflow system. User A sends a message which raises an event. This then starts a workflow which transmits say message to user B and notifies him of a message waiting for him. User B can reply which again raises an event and triggers workflow routing the message / reply back to user A.
    The response time won't be very good but at least it will work without tying up 2 user dialog sessions - but seriously guys I'd give up on this and just use Windows Messenger or equivalent system.
    These type of programs depend on a central server for the message handling - you'd have to replicate this in ABAP -- and Im 120% sure it can't be done.
    Cheers
    Cheers

  • How to design LabVIEW programmin​g for temperatur​e monitoring using 4 thermocoup​les

    Hi all.
    Sorry if this seems a simple question but I really sorry for the troubles. I'm a new user with LabVIEW and currently using LabVIEW 8.6 for a final year project of mine. I’m trying to monitor the temperature reading in 4 different depth of pavement for every 1 hour interval continuously for 1 month duration. Basically I’ll be using 4 separate thermocouples type J and NI 9219 device. My problems are:
    I’m not sure how to design the LabVIEW programming for my application.
    How to get the temperature reading data in Excel spread sheet.
    How to set the min, max and average daily temperature for each thermocouple.
     Thank You.
    Regards,
    Amanus
    Thermocouples Layout:
    Solved!
    Go to Solution.

    Introduction to LabVIEW
    Follow that link to some getting started tutorials. There should be all you need in there to get you going with both the software and hardware
    - Cheers, Ed

  • How to get labview test executive

    Dear all,
    i have known the labview test executive recently, but i don't know how to get it. would you please tell me?
    Thanks!
    Jimmy
    Best regards 

    Hello,
    i just got to know the information from the ni site. i am very interesting in it. i review its manual downloaded from the ni site. i think its library is very helpful to our system which was developed by labview. How can i got the library? i have TestStand. Can i get it from the TestStand? Thanks!
    B.R
    Jimmy

  • How do get your applications that you create in x code to you iphone

    How do you get your applications that you create in x code to your iphone so it can be tested?

    Use the resources you paid for in the iOS Dev Center...
    Xcode Overview
         Run Your App

  • How to get opening balance of a g/l account using query ?

    Dear all,
    I'm developing consolidated g/l accounts debit,credit totals month wise with opening & closing balances thru query based report,
    i'have got expected results except opening balance g/l account,
    How to get opening balance of a g/l account based on date as conditonal parameter ?
    Any one throw light on this ?
    Jeyakanthan

    Hi ,
    Please kindly help me on this.I don't know how to calculate opening bal and closing bal over a period of time by Quarter, and how to generate the reprot using crystal reports and please suggest me on this how to go ahead with this report.
    Here you can go through the reprot requirement , and also an attachment of my Report template.
    we have "Category of Investment" , "Income On Investment" ,"Gross yield" and "Net yield" are  report fields.
    1)"Category Of Investment " is Hardcoded.
    2)In this we have to get  "Investment" column from VTBFHAPO(BZBETR Field) table Database based on
    Flow type(SFHAZBA) in VTBFHAPO table ='0100' for bonds category.
    3)"Income on Investment" also we will get from DB using the following formula.
      Income On Investment= "Interest IncomeAmortizationCapitalgain"
    4)With the Date field(Making Date dimension based on date(DCRDAT) field in VTBFAHPO table.
    By Current Quarter,Year to Date,Last year)
    5)Opening bal---Investment
    Purchase--Flowtype=0100
    Meturity/Sales--Flowtype=0200
    Closing balance=Opening bal+(Investment or Purchase)-(Meturity or Sales)
                                      '0100'                 '0200'
    Here '0100' and '0200' are Flow types based on this i need to get value from the same Field.
    we need to Calculate "Gross yield" .
    The bellow are formulas  to evaluate "Gross yield "
    Ist Qtr  .Gross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balance+June closing balance)/2))/3)
    Ist qtr. Year to date   Gross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balance+June closing balance)/2))/3)
    Investment income=interest incomeamortisationcapital gain
    Iind Qtr.Gross yield=Investment income/(((July opening balanceJuly closing balance)/2)((Aug opening balanceAug Closing Balance)/2)((Sept. opening balance+Sept. closing balance)/2))/3)
    Iind Qtr. Year todateGross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balanceJune closing balance)/2))((July opening balanceJuly closing balance)/2)((Aug opening balanceAug Closing Balance)/2)((Sept. opening balance+Sept. closing balance)/2))/6
    This data should display over a period of time. based on "Current Quarter","YearToDate" and "Last year"
    The quarter starts from April,i,e FY,  I Like this i need to generate the report.
    Thanks in advance.

  • How to get pics from old phone to new phone using iCloud.

    I just got the iPhone 5s and I used to have a 4. I backed up my pictures and contacts but the only thing that's on my new phone is my contacts. My old phone won't come back on. I need my pictures off of my old phone. My new phone says I don't have enough iCloud storage to backup. When I go to settings, iCloud, storage and backup, it lists my old phone and my new one. I don't know how to get my pictures back.

    You have to use the other account or turn on sharing.

  • How to Get and Update properties values from XML tag Using Xquery or PL Sql

    Hi
    I have this tag
    <Solicitud Pais = "1">
    How i can get Pais value?
    How i can update Pais Value?
    Y can use Xquery funtions or PL SQL for this?
    Thak's
    Angel

    How i can get Pais value? ExtractValue
    How i can update Pais Value?UpdateXML
    Y can use Xquery funtions or PL SQL for this?Yes
    Without knowing more about your requirements, where information resides, or even a version of Oracle, that is the best I'll do.

Maybe you are looking for

  • Using javascript on multiple file html

    I am having a folder with 1000 html files. I have to remove certain nodes which is easy using xpath for each html. SO i have made the javascript. I cant open each html file in firefox and run the javascript through firebug console. I m using linux, s

  • Release a Request with inactive enhancements

    Hi, I am having a transport request which contains 6 enhancements of WebUI. Out of these 6, there are 2 enhancements which are inactive and they are not required. So while releasing the request the system gives an error as "Enhancement   is not activ

  • TV Episodes Appearing Under Movies

    Ever since I upgraded to Snow Leopard, TV episodes I've ripped from DVDs I own that I add to iTunes have been appearing in the movies category of Front Row. It is driving me bananas, because I have a lot of media in my library, and I enjoyed accessin

  • Checks the complete date (mm/dd/yyyy) against another compelete date (mm/dd/yyyy)

    Hi, Is there a cold fusion function that checks the complete date (mm/dd/yyyy) against another compelete date (mm/dd/yyyy)? I have used the DateCompare but it only checks the month, day or year depending on the precision being used. Thanks, Mike

  • File Save Problem

    Hi Experts, I am using MAC OSX 10.8.3 My script is : #target indesign var myDocument=app.activeDocument; myDocument.save(File("/var/Untitled-1.indd")); It give error can not save "Untitled-1.indd" under a new name While this script run successfully o