Labview program interface

Dear all, 
I have a some problem in running my labview program.
I intention is to generate an output voltage by using my machine (by Nanonis), thus I am using their program in Nanoinis program interface. However, I might have make some connection wrongly somehow as it is not working. I want to try controlling the duration of the output voltage, maybe like 10 seconds. However, I must have made an error somewhere in the program as no voltage is generated 
I would appreciate if anyone can advice me on this matter.
Thank you.
Regards,
uranus999
Attachments:
RelayOutput(Analog output) (trial).vi ‏19 KB

Dear Lynn, 
I understand that it might be difficult to understand with looking at the Nanonis sub vi's. Sorry about that. If I upload a PDF of the block diagram, would it help at all?
Anyway, I should clarify one thing about the program. Actually, previously, I have use the similar block diagram but I have tried to generate the voltage by using a DAQ. This time, since I intend to use the Nanonis programming interface (replacing the wire lines) from the relay output to the programming interface-Open App ref instead of the NI daq. I expected that it should work but unfortunately, although the program work for the NI DAQ, it doesn't for the Nanonis programming interface. Thus, I am seeking advice on what might had happen and what I should do. I am still a new in writing Labview programs, thus I really do appreciate to get all the advice that I can get.
Thank you.
Regards,
uranus999

Similar Messages

  • Interface labview program with real appliances

    How do i interface labview program with real life appliances. For example: interface with light bulb

    I suppose you could also find some kind of adapter to turn it into an IP based appliance and you could control it through the ethernet.  Or you could wait a few decades and interface LabVIEW 2059 with your cranial implant to directly control your light bulb. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How to use Labview 7.0 to make program interface?

    Hellow!
    Will Labview 7.0 be able to make the program interface? just like some application software made by VC++,VB?
    The program interface should have the menu,button,...
    Thanks!

    You can use LV to create a fully working program with an interface of your design, just like you would in any other compiler. LV actually serves as a compiler for a graphical language called G, which is based on dataflow instead of text based execution (the data "flows" through wires from one function to the next, controlling execution order and filling the role of variables).
    Since LV is multiplatform (and not MS), its default controls are not identical to those in VC and VB, but those can be accessed to. Actually, in many ways, it's much easier to build an interface in LV, because building the interface actually defines your "variables" and your interaction with the code.
    An interface would be no good without a program, so you will have to know how to use LV. It's much faster to learn than other languages, but you will still need some experience to write good programs.
    To learn more, I suggest you start by reading the LabVIEW user manual. Also, try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide.
    If your question was only about MS buttons, like in VB and VC, you can find them in the Dialog Controls palette, or you can use ActiveX to embed them into your program.
    Try to take over the world!

  • How to create a labview program and use it as a compiled prgram

    I am a mechanical engineer, and I have some formulas and equations that I used to obtain maximum thickness of pipelines and also in the design of steel structures, what I need now is to use Labview to put these huge number of formulas in one program. I can do that, but the problem after I make the program I want it to be used by anybody on  any PC which is not installed Labview on it, and that is the problem, I don't know if I can make an excel  sheet or something to be the interface that can be used by the user, and if I can, I hope that I can have the details of who to execute that.

    LabVIEW interacts with Microsoft Excel using its Active X hooks. Anything Microsoft has exposed in the Active X API, LabVIEW can do. This includes opening Excel, reading values, writing values, etc. Doing this can be tricky for a novice programmer and NI has created the Report Generation Toolkit for Microsoft Office that plugs into LabVIEW for a more streamlined experience. 
    The Developer Zone is a good place to start a search looking for Active X Excel examples: http://zone.ni.com/devzone/fn/p/sn/n16:en/sb/navsRel?q=microsoft+excel+labview&x=0&y=0
    As well as the Forum: http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=2391 
    Reading and writing to an open Excel file could become quite cumbersome however. If the Excel file is open and the user is interacting with it, writing to that same file will return an error saying that the file is currently open. It would have to end up like this: User opens file, modifies some fields, saves file and closes excel. LabVIEW program opens file, reads fields and writes a result, then opens Excel to display to the user the result.
    Is there any specific reason you want to use Excel as your user interface? You can use the front panel of a LabVIEW application to enter the data and display the results, all while writing this data to an Excel file for logging/reference in the future. 
    Message Edited by Stephen B on 11-17-2008 01:26 PM
    Stephen B

  • Case study: "Large?" labview programs flooded with different VIT's

    Case study: "Large?" labview programs flooded
    with different VIT's
    Type of application:
    Computer with loads of individual hardware connected or other software (either
    onsite (different buses) or offsite (Satelite/GSM/GPRS/radio etc.).
    Hardware
    description: little data "RPM" but communications to all devices are intact.
    More "RPM" when many VITs are involved.
    Size: 1000+
    VITS in memory (goal). Total software has been tested and simulated with 400.
    I'm posting
    this post after reading this thread (and actually I cant sleep and am bored as
    hell).
    Note: I do
    not use LVOOP (but sure post OOP examples, am starting to learn more and more
    by the day.)
    Things I
    will discuss are:
    Case 1: Memory usage using a plugin
    architecture
    CASE 2: memory usage using VITs (!)
    CASE 3: updating datastructures:
    CASE 4: shutdown of the whole system
    CASE 5: stability & heath monitoring
    CASE 6: Inifiles
    CASE 7: When the hardware is getting crappy
    Total
    application overview:
    We have a
    main application. This main application is mainly empty as hell, and only holds
    a plugin functionality (to register and administer plugins) and holds an
    architecture that holds the following items:
    Queue state
    machine for main application error handling
    Queue state
    machine for status messages
    Queue state
    machine for updating virtual variables
    Event state
    machine for GUI
    Some other
    stuff
    Other
    global functionality is:
    User
    logins, user configurations and unique access levels
    Different
    nice tools like the good old BootP and other juicy stuff
    Supervision
    of variables (like the NI tag engine, but here we have our own datastructures)
    Generation
    of virtual variables (so that the user can configure easy mathematical
    functions and combining existing tags)
    Licensing
    of plugins (hell we free-lance programmers need some money to don't we?)
    Handles
    all communication between plugins themselves, or directly to a plugin or vice
    versus.
    And now we don't
    talk about that (or marketing) the main application .
    Message Edited by Corny on 01-20-2010 08:52 AM

    CASE 3: updating datastructures:
     As we do NOT use clusters here (that would
    just be consuming) we only use an 1D array of data that needs to be updated in
    different functional globals. If the the number of VITS exceeds so that the
    updating of this datastructures becomes the bottleneck, this would cause
    delays. And since in this example we use 250 serial interfaces (lol) we do not
    want to disrupt that by any delays. When this happends, does anyone know a good
    solution to transfer data?
    A thought:
    perhaps sending it down to the plugin and let the plugin handle it, this should
    save some time, but then again if more VITs are added again this would become a
    bottleneck and the queue would fill up after a while unable to process it fast
    enough. Any opinions?
    CASE 4: shutdown of the whole system
    Lets say we
    want to close it all down, but the VITs need perhaps to do some shutdown
    procedure towards the hardware, that can be heavy.
    If we ask
    them to shutdown all together we can use an natofier or userevent to do this
    job. Well, what happends next is that the CPU will jump to the roof, and well
    that can only cause dataloss and trouble. The solution here was to let the
    plugin shut them all down one by one, when one has been shutdown, begin at the
    next. Pro; CPU will not jump to the moon. Con's: shutdown is going to take a
    while. Be ready with a cup of coffee.
    Also we
    want the main application not to exit before we exit. The solution above solved
    this as the plugin knows when all have been shut down, and can then shut itself
    down. When all plugins are shutdown - the application ends.
    Another
    solution is to use rendovous (arg cant spell it) and only shut the system down
    when all rendezvous have met.
    CASE 5: stability & heath monitoring
    This IS
    using a lot of memory. How to get it down. And has anyone experienced any
    difficulties with labview using A LOT of memory? I want to know if something
    gets corrupt. The VITs send out error information in case, but what if
    something weird happens, how can I surveillance all the VIT's in memory to know
    one is malfunctioning in an effective way/code (as backup
    solution  so the application knows
    something is wrong?
    CASE 6: Inifiles
    Well, we
    all like them. Even if XML is perhaps more fahionally. Now Ive runned some
    tests on large inifiles. And the labview Inifile functions use ages to parsing
    all this information. Perhaps an own file structure in binary format or
    something would be better? (and rather create an configuration program)?
    CASE 7: When the hardware is getting crappy:
    Now what if
    the system is hitting the limit and gradually exceeds the hardware req. of the
    software. What to do then (thinking mostly of memory usage)? Needing to install
    it on more servers or something and splitting configurations? Is that the best
    way to solve this? Any opinions?
    Wow.  Time for a coffee cup. Impressive if someone
    actually read all of this. My goal is to reach the 1000 VIT mark.. someday.. so
    any opinions, and just ask if something unclear or other stuff, Im open for all
    stuff, since I see the software will hit a memory barrier someday if I want to
    reach that 1000 mark hehe

  • Livonia, Michigan LABVIEW PROGRAMMING POSITION

    Livonia, Michigan LABVIEW
    PROGRAMMING POSITION
    Revolutionary Engineering,
    Inc. is dynamometer testing systems integrator and service corporation.  We provide systems and services for the
    automotive industry as well as in-house dynamometer testing.  We currently have a position open for an LABVIEW
    Programmer.  A brief description of the
    positions responsibilities and benefits are summarized below.  If you are interested please e-mail us at [email protected].
    Position Available
    Controls Engineer /
    Programmer
    Requirements
    Bachelors Degree in
    Electrical Engineering or Computer Science
    LABVIEW programming experience
    a most
    CAD Experience a plus
    Experience with Microsoft
    Office Software
    General knowledge of shop
    procedures and tool usage
    Ability to work with other
    technicians and engineers
    Ability to communicate
    technical information both verbal and written
    Responsibilities Include (but not limited too)
    Develop control and data acquisition software for
    dynamometer testing using National Instruments LabVIEW.
    Develop third-party software drivers and
    interfaces for industry-standard software such as ETAS INCA, and MATLAB
    Simulink.
    Setup control modes for in-house and customer
    test cell operation.
    Assist test engineers in designing control
    strategies for various testing scenarios.
    Recommend new ideas and processes where needed to
    improve software and testing operation.
    Commission and troubleshoot dynamometer test cell
    software and instrumentation issues.
    Evaluate project quotations, and develop project
    requirements and development scheduling for automated test cells.
    Maintain customer relationship throughout project
    development and warranty periods.
    Evaluate problem resolution and development
    progress patterns.
    Coordinate with suppliers on issues with development
    platforms as they arise.
    Coordinate technical information and items under
    development among team members.
    Maintain software releases using Source Code
    Control databases.

    Must have authorization to work in the United States on a full-time basis for any employer

  • How to link third party software with labview program ?

    I have designed a labview  
    program to analyse and make  
    graph and save the datas  
    from the photon counter using  
    ni USB DAQ 6008. And the  
    photon counter is controlled  
    by the third party software with  
    itself. both programs are  
    executing successfully. But  
    my task is run both the  
    program at the same time. i.e.  
    link the third party software  
    with my labview program.  
    How to i do this?

    Your question is too vague since you give no information as to this third party application. Is it an application you wrote? Is it an application that you cannot change? Does it have a programming interface? Can you eliminate this third-party application and control the photon counter yourself? Have you tried to do a search, as this question has come up before many times. For example:
    http://forums.ni.com/t5/LabVIEW/how-do-I-use-labview-to-control-other-programs/m-p/424765
    http://forums.ni.com/t5/LabVIEW/How-to-operate-another-application-s-GUI-from-LV/m-p/668088

  • Can I use LabVIEW program to train OCR character set?

    Hi everybody,
    I know that I can use the OCR training interface in Vision Builder AI to train the character set. But this is very inconvenient that I do this manually every time. Are there ways to do this in LabVIEW program that the character set will be trained automatically?
    Bill

    I can not answer directly but,
    Check-out Ammons Engineering. I beleive I read that Bruce developed some robust OCR code that may be useful.
    Just guessing,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Running labview program as system service

    I was wondering if anyone has done this before.  I need a compiled Labview program to start up as a system service with windows XP. I'm using Labview 8.6.1. How do I do it? Thanks!

    Sorry, I think I wasn't clear in my last post.
    I'm
    developing a program in LabVIEW that run continuosly without user
    interface, so I want to convert this program to a windows service. I
    took a look at http://zone.ni.com/devzone/cda/tut/p/id/3185 but I think
    this method does not provide a gracefully stop. Instead, I'm trying to
    follow the Kuan Chen's method, about to "create a Windows Service with
    LabVIEW" (http://members.cox.net/kuanchen/lvservice/index.html).
    At
    the end of step 1 says "Build all the server code into a DLL". I did
    this: creating a "Shared Library" in "Build Specifications" Project
    Manager menu on LabVIEW. This procedure create a dll (LabVIEW.dll) with
    2 functions BeginService and EndService.
    In Step 2 Chen
    says "...Link
    AnyService.dll to the LabVIEW dll created in Step 1. Be sure to also
    link to labview.lib as it is very likely the LabVIEW DLL will use it.".
    I think it means link a dll to dll (AnyService.dll to LabVIEW.dll).
    Where do I do that? Is It posible link AnyService.dll to LabVIEW.dll in
    LabVIEW? or, Do I need do it from Visual C++?. And How to link
    labview.lib?
    I
    know that if the "link dll to dll" procedure must be done in Visual
    C++, then I've been searching in the wrong forum, so let me know.

  • High frequency Labview-Simulink Interface

    Hi,
    I am building a Simulink and Labview model to work with each other using SIT. However, before I even begin, I would like to know whether this Labview-Simulink interface will or will not be able to run at a relatively high frequency - possibly around 80 Hz? Also, if there is any tips or hints on how to make the program run faster, such as run Simulink and Labview on different computers which are connected via LAN, etc., they are highly appreciated. And if this is of any help, I am using a P4 2.0 GHz with 256 MB of RAM computer.
    Thanks and have a nice day!

    Lan,
    A large part of the speed will depend on the size of the model. The CPU would need to be divided between simulating the model and doing the updates, but since you are looking for a high speed it is probably a simple model. I ran a very simple model and tested to see how often I could receive values from the NI Sink in the model as well as write to a parameter of the model. In this simple setup, I recieved updates from the NI Sink at a rate faster then 1000 Hz (less then 1 ms per update on average), and writing to the parameter happened a bit slower at about every 25 ms. Since it is windows these numbers are only averages and individual iterations will vary.
    If you want to provide the model with a stimulus as it is running from an external input (like a DAQ
    card) then you will want to use a real-time system. This functionality is also part of SIT, where you use Real-time Workshop to build a dll and example VIs for running the model on a LabVIEW Real-Time target. Building a DLL in this way you can still use the same user interface to view the parameters and values in the model, but the inports and outports of the model will be connected to hardware. In this type of simulation the rates can be significantly faster.
    Carl L
    National Instruments
    www.ni.com/ask

  • Labview/ matlab interface

    I have a LabVIEW program which has a subVI which calls a MatLab program to read some files and perform some calculations (screenshot attached). I want to make some changes in the program such that when a button is switched on in LabVIEW the MatLab code reads file (a) and when it is off, it reads file (b). How do I such an interface between LabVIEW and MatLab? 

    %electricity price
    Eprice_72per = xlsread('price.csv','D273')/1000; 
    [num,EpricePeriod1,raw] = xlsread('price.csv','A2:A73'); 
    [num,EpricePeriod2,raw] = xlsread('price.csv','B2:B73'); 
    This is the original part of the program. But I want something like this:
    %electricity price
    if (Boolean_fromLabVIEW = true)
    Eprice_72per = xlsread('sameprice.csv','D273')/1000; 
    [num,EpricePeriod1,raw] = xlsread('sameprice.csv','A2:A73'); 
    [num,EpricePeriod2,raw] = xlsread('sameprice.csv','B2:B73'); 
    else
    Eprice_72per = xlsread('price.csv','D273')/1000; 
    [num,EpricePeriod1,raw] = xlsread('price.csv','A2:A73'); 
    [num,EpricePeriod2,raw] = xlsread('price.csv','B2:B73'); 
    I tried adding nodes to the MathScript on the LabVIEW program, but it shows the following error:
    So what you're saying is wire the boolean to a case structure or select function and pass the path of the files through the node depending on boolean value? 

  • Controlling stages- labview program enough?

    Hi ,
    I'm putting together a new setup with XYZ stage, rotational and tilt(goniometer) stages. I have a ESP7000 controller unit.
    If I purchase the labview program (only the basic, without any add-ons) Can I control my stages and do some closed loop control ?
    Thank you.
    Ozan.

    Hi Ozan,
    I checked out a couple other Newport ESPXXXX Motion Controller/Drives on Newport's website and it looks like they have a library of drivers for working with their motion controllers through LabVIEW.  I wasn't able to find a product page for the ESP7000, but I found one for the ESP6000, and from there it looks like Newport provides "A complete library of LabVIEW™ drivers covering all ESP6000 commands and extensive DLL’s" for the ESP6000.  You will need something like this for interfacing with the ESP7000 and controlling your system. 
    Beyond that, you should be able to use the drivers from Newport with LabVIEW Base Development System to control your system (no other add-on packages are necessary). 
    Thanks,
    Sherrie R
    Applications Engineer
    National Instruments

  • How do I use directional PDA buttons in LabVIEW programs?

    Hi all,
    I've been assigned to get a LabVIEW program to work on a Palm PDA with LabVIEW 7.0 and palm PDA module 7.0.  I am basically totally new to LabVIEW, and my possibly very simple problem is, the PC program requires input from a serially connected number pad for the 8, 4, 5, 6, and 2 keys which are used as four directions (8, 4, 6, and 2) and an enter (5). 
    I am trying to rewrite the input vi to use the directional buttons and middle enter button on the PDA itself but am having trouble figuring out what to use.  I am using a PDA simulator because of the PALM OS5 we own.  The input demo vi example provided will not build for PDA because of size so I am unsure of how to approach this.  Another thing is, we have LabVIEW and PDA module for pocket PC 8.0, and a Dell Axim PDA on order.  From what I understand off of this website, the latest PDA module has example button vi's.  I would still like to figure out the way to do this on 7.0 so I can have a better understanding of LabVIEW.  Eventually the program's endgoal is to be used on a PDA and inputting with a bluetooth keyboard, but we are going step by step right now.
    I guess my biggest questions are, how do I assign the directional buttons on the PDA in my program, and will this differ greatly when we switch to 8.0 and pocketPC.
    Oh and I did try to look at the example asteroid.vi but from looking at the input subvi, still couldn't figure out how they assigned the buttons.
    Thanks,
    Stephen

    I can't help with any specifics (no access to the PDA module at the moment and I didn't use the buttons anyway), but I would like to say that it probably would make a big difference if you used LV 8. 7.0 was the first version of the PDA module and was extemely limited and problematic (it didn't even have a tab control). 7.1 was somewhat better and I understand that 8 is even better (although still very limited and buggy).
    I also remember reading about several differences between Palm and PocketPC and I think you will generally be better off with the PocketPC as it's related to windows and will probably support more stuff.
    Try to take over the world!

  • How to open labview program with Quit Labview function inside?

    Hi Any idea how to open labview program with  Quit Labview function inside?
    I forgot to add and set the condition of the type for this program.
    If the program is an application, it would close straight away.
    If it is still labview work, it will go straight to editing program without closing.
    So I need to recover, open it and make some changes.
    Clement
    Solved!
    Go to Solution.

    Put the VI in a project and open it from there, then it shouldn't autorun. You can use App.kind property of application to decide whether to close or not.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Can multiple LabVIEW programs simultaneously access the same NI-DAQmx hardware?

    I am developing a test station system that, in essence, runs several
    seperate LabVIEW programs simultaneously on the same computer, each
    controlling a different set of I/O channels on one shared set of NI
    DAQ hardware (analog and digital I/O PCI boards with external signal
    conditioning).
    I have already gotten a system like this running almost flawlessly
    using LabVIEW 6.1, NI-DAQmx 7.1 with traditional channels, and older
    E-series DAQ hardware. So long as two programs do not try to write to
    the same output channel simultaneously, everything works exactly as
    expected--I can even read from the same (named) channel simultaneously
    from more than one program. The only issue I have had is that if
    one
    of the compiled applications is closed (not just stopped, but closed)
    while others are still running, Windows XP (SP1) will bluescreen on a
    driver error. This is undesireable, but acceptable (though if there's
    a fix/workaround, I'd love to hear it).
    I am now building a similar system using mostly the same software
    (with an upgrade to LabVIEW 7.1), and I've noticed that the new
    M-series DAQ hardware seems to offer much more bang for the buck than
    old E-series hardware and its kin.
    My question is this: It appears that I/O on M-series hardware must be
    performed with new mx channels, with traditional channels not being an
    option. I am therefore wondering if I will be able to do this kind of
    multiple simultaneous access with mx channels, or if I must purchase
    the classic hardware and use traditional channels for this somewhat
    unorthodox application.
    (Incidentally, the multiple simultaneous program thing is a
    requirement for this system, as it is the only clean way to run
    multiple
    identical copies of the same complete program that only
    operate on different I/O channels, and re-doing the program from
    scratch is not an option.)

    Dear Anonymous,
    Thank you for contacting National Instruments.
    To address your question, I don't know if multiple simultaneous access with mx channels is possible, but I do not see why it wouldn't be. The best way to find out would be to test it. I don't have your program or hardware, so I'm pointing you to some Compatibility VIs. These are VIs that look exactly like Traditional DAQ VIs except that underneath they call the DAQmx driver instead of the Traditional DAQ driver. If your device works when you substitute these Compatibility VIs in for the Traditional DAQ VIs, then you'll know the M Series boards will work for you.
    Here is the link for information about the Compatibility VIs:
    http://digital.ni.com/softlib.nsf/954feaeea92d90918625674b00658b
    83/9d67f671bcc6850586256e630059308b?OpenDocument
    Let me know if you have any further questions or if this does not resolve your issue.
    Thanks again and have a great day!
    Chad AE
    Applications Engineer - National Instruments

Maybe you are looking for