Can I use C code in labview?

Hello, I've got a fairly complicated program I've written in C that
requires two doubles to be passed to it and it spits out two integers
as a result of a very detailed calculation. Is there a way to have
labview call this C function? I've tried searching the NI.com website
but all I could find were examples where labview was being compared to
C in an attempt to show how they are equal. Any advice/links to
relevant information or tutorials would be greatly appreciated.

You have two possibilities:
Compile your C code into a DLL and call it with "Call Library Function Node".
Use the "Code Interface Node".
The LabVIEW Bookshelf (under help) contains a PDF document name "Using external code in LabVIEW". It will probably answer all your questions. Good luck
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Can i use C Code at Compact Vision or Compact Rio?

    hi,
    i have a very important question!!
    can i use the C code that the Vision Assistant generates, in the compact vision system, even in DLL form??? if yes, how can i download it to the compact vison?
    can i use C code at the compact rio?
    greets,
    gerald

    You can use C-Code on Realtime targets (Such as C-Rio or a Compact Vision system) as long as you compile a DLL out of it, and call this DLL from LabView. Take care that no Windows-Specific things are in the dll (MFC, ActiveX, Windows SDK etc.).
    As you always need LabView, to use the dll, it would be better to create a LabView VI from the Vision Assistant, and download this VI to your Compact Vision System.

  • Can we Use T Code MIRA instead of MIRO for posting incoming invoice?

    Hi All,
    Can we Use T Code MIRA instead of MIRO for posting incoming invoice?
    While trying to post a incoming invoice using MIRO, I am getting a error "HKONT is EMPTY". But when using MIRA i could get the invoice posted.
    And in which situations we use MIRA?
    Thanks in Advance
    Gopi Krishna

    Hello
    MIRA is for Invoice Verification in the Background
    Purpose
    This process is suitable for the following transactions:
    Posting invoices with mass amounts of data for which no item check is required
    Posting invoices referring to transactions not yet entered in the system
    Entering Invoices for Verification in the Background (Without Item List)
    When verifying invoices in the background, you enter only a small set of document header data, such as the invoice amount, the currency and the tax information. You also allocate the incoming invoice to a purchasing document or a vendor. The system saves the data and allocation criteria you enter.
    At a later point, the system verifies the invoice in the background. It uses the allocation criteria you entered to determine the item list. It then calculates the net total from the item list.
    If the net total = gross amount invoiced - tax amount (+/- tolerance), the system posts the invoice in the background.
    If the net total ¹ gross amount invoiced - tax amount (+/- tolerance), the system does not post the invoice in the background. It saves the document header data and the items determined in the background; the saved document then has to be processed manually in Invoice Verification.
    With Invoice Verification in the background, the system does not check for any quantity or price differences at item level. Since you do not enter any actual invoice item data, the system uses the default data for comparison.
    Regards
    Gregory Mathews

  • How can i use jquery code in ExtendedRenderKitService?

    i'm try to using jquery like this way,but cause js error.
    so,can i use jqeury code in ExtendedRenderKitService? how?
    private String jsFunction() {
    StringBuilder sb = new StringBuilder();
    sb.append("$(document).ready(function(){");
    sb.append("var spans = $('span');");
    sb.append("alert(spans.length);");
    sb.append(" });");
    return sb.toString();
    public void searchTree(ActionEvent actionEvent) {
    favoriteTreeManager.searchTree(searchCriterium);
    FacesContext context = FacesContext.getCurrentInstance();
    ExtendedRenderKitService extRenderKitSrvc =
    Service.getRenderKitService(context, ExtendedRenderKitService.class);
    extRenderKitSrvc.addScript(context,
    jsFunction());
    }

    Hi,
    $('span') is invoked when the page renders if I remember correctly. Since using JavaScript from a managed bean invokes a function, the use of JQuery does not work. You can run a little test. If you get JQuery working from a URL browser typing javascript:... command ... then the same probably works from a managed bean
    Frank

  • How can i use activeX Control in labview?

    how can i use activeX Control in labview?
    please describe me step by step.
    thanks.

    Well..that was quite helpful..but now I'm encountering certain problems. I've attached the VI I've made.
    I don't need sound at the moment so I dropped it. (Although I tried to play it..but all I could hear was a very annoying sound.) Secondly I don't want to display any date or time..so i dropped that property too.
    Now when I run this Vi...the webcam turns on, the screen of videocapx pops up..then the webcam light goes off..and another pop up appears saying..labview is not responding..and i have to close it reluctantly.
    I haven't placed the stop capture property in this vi. i checked it by placing it too..but that doesn't work.
    I would like to notify that my actual task is to acquire image and then compare it with another one already present on my pc. I want you to please help me out..solve my first query then I'll proceed with the latter part.
    Attachments:
    activexvideocaps.vi ‏20 KB

  • Can't use Daq Assistant in Labview 7.1

    hi! I have Labview 7.1 installed and an AT-MIO-16E-10 NI board. I can see the board in MAX\devices&Interfaces\traditional NI-DAQ but i can't run any tests(Test panels). I don't know if this is normal for this NI-DAQ model. anyway my main conceirn is that i can not use DAQ Assistant in LabView(when i double click on it or right click->Properties nothing happends). So i can't use my board in LabView. please help! thanks a lot

    You can use your board in LabVIEW but you can't use it with DAQmx. In the DAQ Quick Start Guide, the supported devices are listed and the AT E series is only supported with traditional DAQ.

  • Can I use IF-RIO with LabVIEW 8.20

    I am going to upgrade my LabVIEW to 8.20 but I am not sure whether the driver of IF-RIO can work with it properly.
    Does anybody know this?

    Hi,
           My customer get problems when using PCI-5640R in LabVIEW 8.2, but they could work in LabVIEW 8.0. Is there any latest NI-5640R driver support LabVIEW 8.2? Or PCI-5640R only works in LabVIEW 8.0? 
    Operation system and environment:
    LV 8.2
    LV FPGA 8.2
    NI-5640R 1.1
    NI-RIO 2.1.3
    Display error message in LV 8.2 FPGA complier server.
    An internal software error has occurred. Please contact National Instruments
    technical support at ni.com/support with the following information:
    Error 1003 occurred at Open VI Reference in
    nirviGetModInfo___nirviEIOImplementation_modGen.vi​->nirviGetModInfo___nirviE
    IOImplementation_modGen.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  The VI is not executable. Most likely the VI is broken or one of
    its subVIs cannot be located.  Open the VI in LabVIEW using File>>Open and
    verify that it is runnable.
    VI Path: C:\Program Files\National Instruments\LabVIEW
    8.2\resource\RVI\StockIO\private\StockFPGA_io_modG​en\nirviGetModInfo_StockFP
    GA_io_modGen.vi
    Please refer the attached reproducable example code.
    Best Regards
    NITW AE
    Gary
    Attachments:
    UsingFilterCore.vi ‏550 KB
    filt20070509104003.zip ‏255 KB

  • Using Matlab code in LabVIEW

    Hi,
    I have never used LabVIEW and I am wondering if there is a way to run Matlab code in LabVIEW. If so, how would I do it and are there any special instructions or tips I should know about?

    What is your LabVIEW version?
    Do you have matlab installed on your computer?
    In older LabVIEW versions, you can only use the matlab script node, which requires that you have a copy of matlab installed.
    In newer versions, you have two more alternatives that don't require the purchase of Matlab:
    Use a mathscript node.
    Use a scilab script node.
    Information on mathscript: http://zone.ni.com/devzone/cda/tut/p/id/3502
    Information on scilab: http://zone.ni.com/devzone/cda/epd/p/id/657
    There is even a mathscript forum here: http://forums.ni.com/ni/board?board.id=MathScript
    LabVIEW Champion . Do more with less code and in less time .

  • How to use matlab code in Labview without having MATLAB software. I tried to convert .m files into .dll files. But i could not do. Please help me out..

    Please help me out...
    Solved!
    Go to Solution.

    bombay wrote:
    Yes. It can be done. But Math script can not evaluate all functions in .m files (There are some exceptions).
    And those can perhaps easily be ported to LabVIEW/MathScript?
    It is not sufficient to disregard running your Matlab code in LabVIEW based on a few exceptions without first thoroughly evaluating the impact they have.
    If you want to stick with Matlab in your implementation, then there are other avenues than hypotethizing about the limited portability issues of using MathScript in your project?
    Br,
    /Roger

  • How can i use a code for an app in venezuela that was sent to me from the states?

    Please my cousin sent me an app as a gift but when i try to download it pops a message that says that my code will work just for store in the us, does anybody knows how change that code or any other way to use it here in Venezuela? thanks a lot

    As stated, that code will only work in the US App Store.  Ask your cousin to contact iTunes support, explain your situation and see if they can issue him a code that will work in the Venezuela store.
    http://www.apple.com/support/contact/

  • Can I use PHP code in BC

    Yes, that is basically my question. Can I use php coding in Business Catalyst? And does BC us mysql database?
    Thank you

    Hi there, Please do a quick forum search before posting. This is asked a lot - You can even see a post in the frequently asked questions panel on the main page of this forum section.
    BC is a SAAS - Software as a service and a .Net based SQL system - It does not use PHP or mysql and you can not access the server side code.
    So to your question - that is a no I am affraid.

  • Can I use this code to self Generate month ? ie Jan, Feb, Mar

    Hi can some one tell me is this possible to do.
    I am making a Date Of Birth using combo box�s this is the code I am using to generate the date.
    My question is can I use this for the month i.e. Jan, Feb, Mar etc
    private void DayOfTheMonth(int highNumber,JComboBox comboBox){
    comboBox.addItem(" ");
    for (int index = 1; index < highNumber; index++) {
    comboBox.addItem(String.valueOf(index));
    private void DaySpecificComboBox()
    //Day is stopat 32 as there is 31 days in the month
    DayOfTheMonth( 32, DayjComboBox);
    }

    Hi,
    This can be done with the help of your abaoer, you can have the required texts from the table T009C, otherwise the programmer can hard code the months as you given.
    Regards,
    Vasu.

  • How can i use ADF code in Trinidad

    Hi,
    I'm having an small Application which is Implemented to some extent using oracle ADF faces components But now, as the Trinidad is an open source i would like to do it in trinidad.
    If i replace the libraries to trinidad does my implement code in ADF Faces components needs to be Change,
    Please Suggest me how can use my ADF code in Trinidad.
    Thanks.

    Hi,
    Thanks for the Information a lot,it will helps me a lot.
    i am unable to navigate to down load the libraries given in oracle site in "How-to configure Apache Trinidad components in Oracle JDeveloper " can u help me,
    how can i get libraries to use in Oracle Jdeveloper for Trinidad.
    Can i use the libraries given on the Apache MyFaces Trinidad site (http://myfaces.apache.org/trinidad/download.html) but the libraries are different than the oracle given.
    Please Help me what libraries to used in Oracle jdeveloper 10g for trinidad.
    Thank You.

  • How can i use NXT toolbox in labview?

    Hi i am newbie in labview and trying to get Lego RFID communicate with labview.
    But i couldnt get it done. because i could not understand how to connect each other toolboxes. 
    there is no describtions for newbie, but words what i cannt understand, like buffurs thing. T.T
    attached file is the .vi file what i messed up and plus, somebody's RFID circuit which i can not use.
    please save me.... T.T
    Attachments:
    RFID2_NXT.vi ‏37 KB

    Please post to the Mindstorms board - http://forums.ni.com/t5/LabVIEW-for-LEGO-MINDSTORMS-and/bd-p/460
    You can click on Options and request the moderator to move this.

  • How can I use USB interface in Labview?

    Hi.
    Does labview allow to USB interface?
    I have been seen allowing GPIB and RS232.
    I'm beginer at Labview and wanna use USB interface for my target system and pc.
    I wanna know how to labview interfaces from target system to pc.
    And if Labview doesn't provide USB interface module, how can I use USB?
    Is using a USB at Labview hard to beginer?
    Plz, answer to my quetion.
    sorry, my English is very poor.
    thx for reading my article.

    You can access devices connected to the USB port, but not in the same way as you would a GPIB or RS232 device. There are no USB drivers like there is VISA for GPIB or serial. Rather devices that plug into the USB appear to the systen as some sort of standard resource like a printer, disk drive or IO board. LabVIEW then interacts with these devices as it would any other device of the same type.Look at it this way, if you have a USB daq device you will access it through MAX the same as if it were a plugin card. Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Maybe you are looking for

  • How can I export a stylesheet (either CSS or XSLT) with XML from indesign?

    Hi, I am using indesign CS4. I want to export style sheet whether it is CSS or XSLT file with xml. I try to get it but can't. Also the XML i am exporting does not styles that has been applied by me while creating the file in Indesign. Please help me

  • LMS4.1 user tracking not sortable

    in LMS 4.1, under Monitor->Identity Dashboard, i have "user tracking summary" as a portlet, which tells me i have ~ 17,000 users.  when i click the report, it pops up a screen that shows mac address, ip address, hostname, subnet, etc. If i try to do

  • When will Apple TV2 finally be available in belgium?

    or does anyone know why it still isn't available in most of Europe? With iOS 5 I'd buy it even without movie purchase availability.

  • Can not import ACE module to ANM

    Hello, Good day. I recently facing an interesting problem. We are running ANM 5.1.0 to manage our LB contexts, those contexts are configured on ACE20-MOD-K9 module which installed in Catalyst6500 switch. Our installation is like this, two ACE20-MOD-K

  • Deactivate Lightroom 3

    When I type deactivate in the Lightroom help window NOTHING happens. What Do I do Now?