Querry: caaling c code thru labview

Plz guide me regarding this problem....
i have called a c program using call library function node...that c
program reads some data from a file ....on doing so i encounter an
error during run time which says..debug assertion failed
program:\c:\program files\NI\labview7.1\lv.exe
File Fclose.c
line 58
expression : stream != NULL
then i get a message to retry cancel or abort
on retrying it shows send error message to microsoft
after all this when i try running my c file simply it shows file
cannot be opened
and now i cant open any file through a c program even those which were
running smoothly earlier...
why is this happening and how can this be resolved.....
thanks.........aparna

Duplicate post

Similar Messages

  • How to implement this code in labview?

    How do implement this pseudo code in labview? Please keep in mind "a" and "c" in the code below ARE VARIABLES
    for i =0 to i=maxvalue
           if i <= a 
               output = output2
           else if i > a AND i<=c
               output = output2
           else if i < c 
               output = output3
           else i = d
               output = output4
    I understance i can use a case structures and modify the label, but i do not know how to make the label dependent on a variable value. 
    Thanks 

    Try an array of boudaries and use threshold array. See this old example:
    Now just iterate over an array of values using a FOR loop.
    LabVIEW Champion . Do more with less code and in less time .

  • Can i see the macro code in labview?

    i want to know how to make the macro in labview in order to be able to modify them in labview, so i don't want to write the named of macro made in excel or word and saved there, executing it with Run Macro where i call the macro with name.xls!macro, i would like to view the basic code of the macro.
    please, don´t say me, that the solution it´s easymacro.com, there i can´t see the diagram and i am a student, i need to learn.

    Hello,
    If you want to view the macro code in LabVIEW, there is a description at www.easymacro.com that will show you...
    Just kidding...
    To my knowledge, there is no way to view the code of an existing macro in LabVIEW. I could be wrong about this, however. The best way for you to find out what functionality is available is to obtain information from Microsoft on what specific macro functionality is available through ActiveX.
    I hope this suggestion gets you pointed in the right direction. Also, I recommend that in the future you only post your question to the Developer Exchange once...there is no need to post the same question multiple times.
    Have a nice day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Best way to implement this code in labview

    Hi
    What is the best way to implement this code in labview programming.
    I have an analogue input which triggers a boolean light when it reaches a certain voltage. but at the same time i would like it to enable two other outputs one for a set period of time and the other stay on until another statement becomes true.
    For example
    case 1:
    Set output high
    Delay(2000ms)
    Set output low
    Case 2:
    Set output high
    If statement 2 is true
    then set out put low
    if not then repeat until statement is true
    Thanks for your help

    Hi David,
    The code you posted will work, although note that the front panel becomes 'unresponsive' - as changes in the controls are only read once per iteration.  The wait function is an example of an execution timing VI, however if we want to do software timing (like a 2 hour wait) - we should use software timing VIs.
    Check out the following example (note we can stop execution during run-time):
    Regards,
    Peter D
    Attachments:
    SoftwareTiming.vi ‏26 KB

  • How i can generat VHDL or Verilog code from labview code

    how i can generat VHDL or Verilog code from labview code ( i have a labview code and i want to convert it to VHDL or Verilog code how i can do that )

    Mouath,
    There is no feature in LabVIEW to export your VIs as VHDL files. You are able to include your own HDL in your LabVIEW VI (using the HDL node). I encourage you to provide your feedback related to this issue at ni.com/contact. The product suggestion submitted are taken seriously and reviewed by National Instruments.
    Cheers,
    Jonah
    Applications Engineer
    National Instruments
    Jonah Paul
    Marketing Manager, Embedded Software
    Evaluate the LabVIEW RIO Platform! - ni.com/rioeval

  • 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 .

  • 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 we can import and run the matlab codes in labview using xmath script.

    hello,
    i have some GUI code in MATLAB and i want to process that codes in labview . tell me about the procedure how we can done this task.
    thanks in advance
    rachana
    Er. (Instrumentation)

    Hello,
    The title of your post asks about using Xmath script.  Is this what you intended?  You can use the Xmath script node in LabVIEW if you have MATRIXx 7.x or earlier installed.  However, the syntax is slightly different from the syntax of The MathWorks, Inc. MATLAB® software.
    In LabVIEW 8.0, we introduced LabVIEW MathScript.  The LabVIEW MathScript syntax is similar to the MATLAB language syntax.  In LabVIEW MathScript, you generally can execute scripts written in the MATLAB language syntax.  However, the MathScript engine executes the scripts, and the MathScript engine does not support some functions that the MATLAB software supports.  In order to reuse code that you have written, open the MathScript Window by going to Tools >> MathScript Window.  You can also use the MathScript node as part of a VI you are writing.  You can find the node on the Programming >> Structures palette.  You can import an existing script by right-clicking the node and selecting "Import..."  You can create inputs and outputs for the script by right-clicking on the node and selecting the appropriate option.  If you wish to call any functions you have written, put them in the MathScript search path.  By default, this is your "My Documents\LabVIEW Data" folder.  In LabVIEW 8.5, you can change the default search path for the main application instance by going to Tools >> Options.
    LabVIEW MathScript does not contain very many GUI functions at this time.  You can use the VI's front panel as your GUI, though, and interact with your program that way.  Let me know if you have other questions about moving your code or about specific functions.
    MATLAB® is a registered trademark of The MathWorks, Inc.
    Grant M.
    Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

  • 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

  • Convert code from LabVIEW 2009 to LabVIEW 8.6

    Hi Everyone,
    Could a kind person with LabVIEW 2009 please save the attached code in LabVIEW 8.6.
    The code is of the Creating an Office 2007-like Ribbon in LabVIEW community page. 
    It would be very helpful!
    PS. Will reward kudos.  
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!
    Solved!
    Go to Solution.
    Attachments:
    LabVIEW Ribbon.zip ‏306 KB

    Any problems let me know and I will look at again
    David
    www.controlsoftwaresolutions.com
    Attachments:
    New Folder (2).zip ‏108 KB

  • Converting HP-BASIC code into Labview or Labwindows

    I need some insight on as to whether I can use all my HP-Basic code in labview or labwindows and how? Can I create dlls and call them into labview or use the code itselg in LabWindows?
    Any information will be appreciated.

    A very long time ago, there was a BASIC version of LabWindows.  You could not convert a Rocky Mountain BASIC program directly, but it was a fairly simple fit.  You could then translate that into C code automatically through LabWindows.  That was one of its selling points; you didn't have to lose all of that old BASIC code.  About 10 years ago, they decided to go with only a C version of LabWindows and renamed it LabWindows/CVI.  This change was made because most people who were converting from BASIC to C already had and supporting two languages and a translator was very expensive (cost, memory, processing power, complexity, - expensive in every way). 
    If someone has an old version, you might have an upgrade path with your old code (no, I don't have any that old).  Otherwise, you could build DLLs and call them with either LabVIEW or LabWindows/CVI.  You could also recreate the code with the newer language.
    Hope that this helps,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Can i run visual c++ code under labview?

    I have two instruments, one is controlled by labview and the other one is controlled by visual c++ code. is there any ways so i can run the c++ code in the labview environment. in other words, can i control the instrument which is only controllable by c++ code, with labview? does labview recognize .cpp files or .exe which is the compiled form of my c++ file ?
    thanks

    Check http://www.ni.com/devzone/idnet/library/instrument_driver_guidelines.htm. Another quick and dirty way to add instrument control is to use the Instrument I/O Assistant. This is not nearly as flexible as a full driver but might be enough for you. Before attempting either, you should get familiar with the instrument's remote control commands by using the interactive control feature in MAX (right click on instrument and select "Communicate with Instrument").

  • Tutorial on integrating C/C++ code into LabVIEW (6.0 through 7.0)?

    Where can I get a tutorial that will show me how to integrate C or C++ code into LabVIEW?

    I would also check the Using External Code in LabVIEW manual, found here
    Bilal Durrani
    NI
    Bilal Durrani
    NI

  • M Series code for Labview

    I am using the PXI-6230 on Linux.  I downloaded the MHDDK for NI-Visa, and the code uses C, along with some examples that are in C.  There are some good examples, but I need working code that will work in Labview.  Are there some examples that people have for the PXI-6230?  Or is there some way I can use the C code for Labview?  Any help is appreciated.
    Thanks,
    Thomas Pham

    Hi Thomas,
    The DDK is a set of reference examples for writing a device driver from scratch. Since most write-it-yourselfers expect to be running in an uncommon environment (where LabVIEW cannot run) or need to undergo some kind of final validation or peer review (where not everyone may have LabVIEW available), a text-based implementation provides them a faster "see how it works" starting point for those purposes.
    When programming for the 6230 from LabVIEW, you have a few options available.
    You can use the existing C++ chip objects in the DDK but manipulate them into a shared library (a .so) so that you can call the Library Function Node in LabVIEW [1].
    You can use the register I/O palette [2] in VISA and transcribe the C++ chip objects into LabVIEW.
    Expand the DAQmx Base driver [3] to make the extra RLP calls for the 623x (explained below).
    All three are somewhat challenging, and you will also need some additional information about the specifics of programming for the 623x sub-family. Since they have isolated IO, some of the registers are re-purposed for enabling and disabling the isolators. There are several threads in this forum [4] about the 623x-specific calls that need to be made.
    If you choose to exapand the DAQmx Base driver, you will find that a bug in the code will make the system think your 6230 is a 6222 [5]. In addition the 623x-specific RLP calls, you'll need to correct and differentiate the 6230 from the other M Series boards.
    [1] Call Library Function Node -- LabVIEW Help
    http://zone.ni.com/reference/en-XX/help/371361G-01​/glang/call_library_function/
    [2] Register Access Functions -- VISA Help
    http://zone.ni.com/reference/en-XX/help/371361G-01​/lvinstio/high_level_reg_acc_func/
    [3] DAQmx Base 3.4 for Linux
    http://joule.ni.com/nidu/cds/view/p/id/2128/lang/e​n
    [4] 623x RLP Considerations
    http://forums.ni.com/t5/forums/searchpage/tab/mess​age?location=Node%3A90&q=623x#message-list
    [5] DAQmx Base 3.4 incorrectly attaches to the 6230
    http://decibel.ni.com/content/message/20827#20827
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)

  • How can i find 8451 & I2C example code.(Labview 7.1)

    How can i find 8451 & I2C example code.(Labview 7.1)
    ! will have to commuicate Data Read and Write
    (USB-8451 &  I2C(ST24C16) direct connection status)
    I want to Detail text and VI Example.
    Thank you.
    [ps] [email protected]

    If you installed the NI-845x driver, it should have installed in LabVIEW examples in the Example Finder. These will be configured for the 8451 but not necessarily your specific I2C device. The examples are located in the Hardware Input and Output»I2C and SPI folder in the Browse view of the Example Finder. I hope this helps!
    Regards,
    Missy S.
    Calibration Engineer
    National Instruments

Maybe you are looking for

  • Contabilização Subcontratação para Pedido de Compra

    Boa tarde Temos o processo de Subcontratação Standard do SAP para Pedido de Compra. Feito o envio pela ME2O. Retorno com Pedido de Compra tipo L para Pedido de Compra, MIGO com baixa de Componentes e MIRO (processo normal). Porém minha duvida está co

  • Issue in Kit to Stock

    Hi,       I have configured the system for Kit to Stock. When I created an order, it has created one Inbound & Outbound delivery in EWM as expected. The deliveries should be also created in ECC. I checked the ECC system and I see the inbound delivery

  • Mac OS 8.6 and Mac OS 7.6 - Older Game Software - Need Help!

    I am new owner of an iMac OS X 10.4.8 system and have children who are wanting some educational games software games for Christmas- I have found some on E-Bay (ie. Where In the World is Carmen San Diego) however, the requirements are OS 8.6–9.2, OS X

  • Best place for Contacts

    What have people found is the best place to use as their master contact list?  I use Outlook 2010 with gSyncit for Gmail. I really don't care about having my Facebook contacts in my Droid since I don't use Facebook that much. I've turned that out. Is

  • Creating Web Service (version2)

    Hi I am new to SAP. I have created a web service using the Web Service Creation Wizard. I noticed that when I view the web service using WSADMIN, there are 2 web services, one with the original name and the other suffixed with /version2. Does anyone