Using LabVIEW to create a simple datalogger.

Hello,
Can someone show me how to create a simple data logger.
Here's an example, Using a for loop can I keep track of the loop number in an array?
In the first loop ,first array would have 1, in the second loop,second array would have 1,2. And in the last loop array N, would have 1,2,3...N.
First loop =>      1
Second loop => 1 2
Third Loop =>    1 2 3
N loop =>           1 2  3 4 . . . N.
Thanks

Building arrays are pretty simple. If you want the array outside the for loop, you just have to wire iteration terminal to the edge of the the for loop. The auto-indexing feature of a for loop will automatically create the array. If you need the array inside the for loop, you can use the build array function and a shift register.
Attachments:
Build Array.JPG ‏7 KB

Similar Messages

  • Using LabView to create a GUI for Delta PLC

    Hi,
    I'm currently using a Delta PLC, programmed with the Delta WPL software, and I'd like to use LabView to create a very simple GUI which would allow the user to communicate with the PLC (basically, the PLC would be running but doing nothing til the user writes data in one of the coils). I don't know how to do that, and I don't even know if it's possible ?
    The PLC I'm using supports Modbus. I tried to use the Modbus library from LabView but I'm not sure it's useful for what I'm trying to do.
    Any idea ?
    Regards,
    Coline

    The Modbus library can certainly be used to read and write registers and coils. You just need to know the relevant details for your PLC (address, coil addresses, ASCII/RTU, etc.) and to make sure the PLC is configured to accept these commands.
    The Modbus library should have a couple of examples showing how to act as a Modbus master, which is what you want.
    Try to take over the world!

  • How to use labview to create a Menu?

    Hi I would like to use labview 8.0 to create a Menu interface, anyone can tell me how to do it?
    Thanks,
    Mike

    Click on the Edit>>Run time menu button, and this will open up a menu editor for you.
    In your code, you can use an event structure with the "Menu Selection User Event" to handle the menu selection.
    Open up the Example Finder in LabVIEW and search for Menu.  There are 6 or 7 examples there that will get you started.
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor

  • JPanel which uses reflection to create a simple property editor

    Hi everyone,
    Here's what I'd like: a custom JPanel, let's call it DesiredJPanel, which can be passed an object as an argument, and which then detects all the public getters and setters on that object, and then creates a simple property editor, with default behavior for numbers, booleans, Strings, etc. It might be used like this:
    JDialog dialog = new JDialog(new DesiredJPanel(someObjectWithSettersAndGetters)));
    dialog.setVisible(true);
    Then we'd get a dialog populated with the current values of all relevant properties. The panel could have a button bar, with an ok button. When you press it, all the properties of someObjectWithSettersAndGetters are set according to what the user has entered in the fields of the panel.
    This seems like a pervasive, standard use case. It also seems like javabeans is intended for this. E.g. quoting wikipedia: "JavaBeans are reusable software components for Java that can be manipulated visually in a builder tool." Moreover, there is the java.beans.PropertyEditor interface.
    And yet I can't find anything that seems to do this, so I end up writing the same boilerplate style code over and over. I found some commercial thing (this is for an open source project), and netbeans does what I'm after but it's netbeans. I want something that can be used in any swing app.
    Apologies if I've overlooked something obvious or posted this to the wrong forum (if either, please let me know!).
    All best and happy new year!
    - Jeff

    Not exactly what you asked for, but reasonably close. You can use my [Bean Table Model|http://www.camick.com/java/blog.html?name=bean-table-model] to create a JTable which will display all the properties in a single row of a table. The appropriate renderer/editor is used for each property.
    Play with the commented out code in JButtonTableModel class to see what you get for your particular bean.

  • How can I use Labview to create a graph of digital voltage signal vs. Time?

    I am measuring a digital voltage signal and I need to generate a graph vs. Time and be able to add user controls to start/stop the graphing and be able to export the graph to other programs such as MS Excel. Any help you could give would be much appreciated. Thank you.

    You probably want to use a chart. Place it inside a while loop that runs continuously. The chart should be in a case structure so it is bypassed depending on the boolean pause/continue switch.
    To save the data, get the "history data" of the chart via a propery node and save it to a file. It is probably easiest to save it to an ASCII file. Most other programs will be able to read it.
    See how far you get. If you get stuck, post your VI and we'll help you.
    LabVIEW Champion . Do more with less code and in less time .

  • How to create a dataplugin for DataFinder using LabVIEW

    We want to use LabVIEW to create a dataplugin that will be used by DataFinder (My DataFinder). We have found on the NI web site the LabVIEW DataPlugin SDK - , a SDK that allow us to create a dataplugin. The SDK is for LabVIEW 8.6.
    The dataplugin example code of the SDK work very well in the “For testing” section of the development project. We are also able to register it to use it through DataFinder. The dataplugin is available in the “Configure ...” window of DataFinder.The problem is that the dataplugin doesn’t work with DataFinder. We didn’t receive any kind of error message or code. We only get the value “eIndexedFailure” in the “Index status” property. After expectation, it seems those input parameters are different between a LV and a VBS dataplugin. And we think that can be the source of the problem. There is someone that can help us about that?
    We also want to use LabVIEW 2009. The SDK example work under 2009, but we get the same problem with DataFinder.
    Thanks
    Solved!
    Go to Solution.

    Dear Kelly R, you're right I can’t open the file in DIAdem. The RegisterLabVIEWDataPlugin.ini file is correct. But I’ve just tried to rebuild the project and then use the Installer instead of just using the Deploy. Now it works, even with my own code. Now I can open the file in DIAdem without problem. The installer uses the “NI LabVIEW Dataplugin 1.0” package. It seems that the SDK installer has never install this package.I thank you all for your help. 

  • Can I create a survey questionnaire using labview

    I would like to create a survey questionnaire to be run in a PDA. can I do the same using labview?
    I am using a windows 2000 OS.
    I want to use labview for creating such a questioannaire and then run it in a PDA

    Yes, you could easily create a questionaire application for a PDA with the LabVIEW PDA Module. The programming techniques used are the same as LabVIEW for Windows.
    One thing to note is that a license is required to deploy the applications built with the LabVIEW PDA module on to each PDA. The modules come with one license to deploy applications on to one PDA and additional licenses can be purchased.
    Regards,
    JR A.
    Application Engineer
    National Instruments

  • Controlling pxi 7350 using labview software

    Hi,
    So i am a complete newbie when it comes to labview having only used it to control virtual instruments before and now i am the point where i want it to interact with real world items. Ok so here goes..... i have the latest labview development software and have also purchased a pxi1033 with a pxi4065 digital multimeter and a pxi 7350 motion controller integrated within.
    my problem however is that i want to be able to control my motors via the umi7772 interface but cannot seem to find the correct symbols on the labview software to utilise them, i would like to use labview to create a program that will turn the stepper and evaluate what is on the dmm and then turn accordingly this is way above my level on labview currently but if anyone has any ideas then any information is greatly appreciated.
    cheers
    james

    Hello Jamest6, 
    I have found some useful documentation that will help you get started with you 7350 and LabVIEW. 
    First of all here is a community example that you can take a look at. It is possible to download the example itself from the bottom of the page.
    Read Analog Input (AI) values from NI-Motion device 73xx : https://decibel.ni.com/content/docs/DOC-5617
    Then you can access these knowledge base articles for some more guidance : 
    How Do I Use the Digital Input/Output Lines on my 7330, 7340, or 7350 Motion Controller Card? : http://digital.ni.com/public.nsf/allkb/2D238C3BF101620C862573A60081BFFE?OpenDocument
    How do I control the analog ouputs from an NI PCI motion controller in Measurement & Automation Explorer?: http://digital.ni.com/public.nsf/allkb/04B940903BDD987C862579320083C6FF?OpenDocument
    Also using these manuals for both prducts will be of help to you : 
    NI 7330/7340/7350 Motion Controllers and
    P7000 Series Stepper Drives: 
    http://www.ni.com/pdf/manuals/372324d.pdf
    NI UMI-7774/7772 : http://www.ni.com/pdf/manuals/373359c.pdf
    Another great source for looking at or using example VIs is the  LabVIEW's Example Finder.  Go to Help » Find Examples... When that window pops ups, double-click Toolkits & Modules in the folder list, then double-click NI Motion Assistant.  I'm guessing the "Straight Line Move.vi" or "Blended Move.vi" would be most helpful to you, but you could read the descriptions of each example listed for a little bit more information about what the examples are doing.
    Hope these are useful! 

  • Creating a NT service using LabVIEW

    Hi,
    last week I followed the instructions from the NI tutorial " Creating
    a Windows NT Service Using LabVIEW" from http://zone.ni.com/devzone/cda/tut/p/id/3185.
    It worked, I was happy.
    Today I tried again and something strange happens: When i start the
    new created service it does not start as a service but as an
    application with it's Frontpanel open!
    So what did I do?
    1.) Created a very simple TestService.vi
    Just a while loop with 1s Timer inside and counting up a shift
    register, nothing more.
    2.) Create Application TestService.exe (No special actions required in
    AppBuilder, right?)
    3.) Testing Application: FP shows up, ok
    4.) Copy TestService.exe, srvany.exe and instsrv.exe to d:\TestService
    5.) Open a command prompt, typed:
    instsrv TestService d:\TestService\srvany.exe
    "CreateService SUCCESS" appears, Service was installed, I can see
    it in the Services applet
    6.) Changed "LogInAs" from Admin to local System (DataExchange
    Allowed)
    7.) Added new Key in the Registry for the new service and there added
    a
    new String "Application", set it's value to "D:\TestService
    \TestService.exe"
    8.) i can start the Service manually and it can be started at system
    startup.
    But when the service i started the frontpanel opens and I see
    TestService in the Taskbar!
    What am I doing wrong?!
    I already read the tutorial almost for the 10th time now in search of
    things I forgot. Any ideas would be great.
    I'm using LV8.2 ProfDevSys with AppBuilder
    Thank You,
    Stefan

    Ok, when i search here for "windows service" i read that NI has a tutorial page (http://zone.ni.com/devzone/cda/tut/p/id/3185). So i read it to learn how to make a service, but in the step "Creating the client" it said:
    Run your CookieService.exe application. The front
    panel appears because you have not actually changed the application
    into a service, yet. (it's OK)
    Create the cookiefile.txt file in the
    same directory as the CookieService.exe file. Add a few lines of
    message text to the file and save it. (it's OK)
    Run the GetCookieClient VI a few times. It displays a random text line from cookiefile.txt each time you run it. (LabVIEW sends an error code, saying that the VI isn't in memory)
    Quit the CookieService.exe application by closing the front panel with the Close button.

  • I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different p

    I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different place than where it is on frame 2. Confused!

    Hi Melissa - thanks for your interest. Here's the first frame, the second frame and the tween frame. I don't understand why the tween is changing the position of the object in frame 2, was expecting it to just fade from one frame to the next.

  • How to create a simple app using the MVC approach?

    Hello gurus i'm trying to learn the SAPUI5 and i'm trying to create a simple app using the MVC i created the app and trying to add a lable to the view but there is nothing appear when i run it the code for the HTML page
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
      <script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m"
      data-sap-ui-theme="sap_bluecrystal">
      </script>
      <!-- only load the mobile lib "sap.m" and the "sap_mvi" theme -->
      <script>
      sap.ui.localResources("mytestapp");
      var view = sap.ui.view({id:"idshell1", viewName:"mytestapp.shell", type:sap.ui.core.mvc.ViewType.JS});
      view.placeAt("content");
      </script>
      </head>
      <body class="sapUiBody" role="application">
      <div id="content"></div>
      </body>
    </html>
    the code for the view
    sap.ui.jsview("mytestapp.shell", {
      /** Specifies the Controller belonging to this View.
      * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
      * @memberOf mytestapp.shell
      getControllerName : function() {
      return "mytestapp.shell";
      /** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
      * Since the Controller is given to this method, its event handlers can be attached right away.
      * @memberOf mytestapp.shell
      createContent : function(oController) {
      var oLabel = new sap.ui.commons.Label("l1");
      oLabel.setText("Test label");
      oLabel.placeAt("content");
    i dont know what is wrong or if i should use a container to display my controls
    any help will be appreciated
    thanks in advance

    Hi,
    Instead of   oLabel.placeAt("content"); use return oLabel;
    so it will as below,
    createContent : function(oController) {
      var oLabel = new sap.ui.commons.Label("l1");
      oLabel.setText("Test label");
      return oLable;
    Regards,
    Chandra

  • How can you create a test plan generator using labview

    I am looking to create a testplan generator using labview to help RF Engineers translate test requirements into test parameters and wanted to know how i can go about it.

    Have you considered to use Teststand? Teststand organizes all the tests and allows to parameterize them.
    Creating a tool with a similar functionality will be more expensive than buying Teststand and modifing the operator interface.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Is it possible to create a schedule in Labview . Example: i want to off the lights at 7pm and want it on at 8am. If there is can anyone teach, its for a school project. Im using labview 2011

    Is it possible to create a schedule in Labview . Example: i want to off the lights at 7pm and want it on at 8am. If there is can anyone teach, its for a school project. Im using labview 2011...thx

    Since this is a school project I recommend you do the work yourself. You will not learn asking others to do it for you. In addition, folks here will not do your homework for you. We are however more than wiling to answer specific questions for you. Post what you have done or tried and ask specific questions. I am confident you will get assistance.
    And to answer your question, yes LabVIEW can be used to implement a scheduling program.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How to create longtext or blob data types in SQL using labview

    Hello,
    I am fairly new to SQL, and I'm using the labview database connectivity toolset.  Using labview 6.1
    I am using the DB Tools Create Table vi to create my tables.  I want the tables to hold 1000 character strings.  But the longest string that I can insert seem to be 255 characters.  I think It is a limitation of the "String" data type in SQL so I need to use text or blob types.  The problem is I created a control for the "Column Information" field and I see the following selections for the data type. (String, Long, Single, Double, date/time, binary).  I dont see any selection for text or blobs.  How do I define another data type that is not part of the selection in the control?
    Thanks for any help.

    I don't know about defining long text, but the equivalent of a BLOB should be the binary data type, which just holds the data you put into it without formatting it.
    Try to take over the world!

  • How to create an SQL Database using LabVIEW??

    Hi all,
    I have been using LabVIEW for quite a long time but now I am doing something which I am totally new to. I have a VI which gives out a table as output. What I am trying to do is, I want to create an SQL databse and save this table in the database and I want to pass the value of this table to the SQL Database once in  every 24 hours. As I dont have any knowledge of My SQL I am totally stuck.
    Can anyone help me by telling me how to do this.?? An example code will be well appreciated.
    Regards,
    Nitz..

    Hi Nitzz,
    what have you done and where do you have problems? Did you make a search here in the forum?
    http://forums.ni.com/t5/forums/searchpage/tab/message?q=create+database#message-list
    Mike

Maybe you are looking for

  • IMessage doesn't function properly after iOS 8 update

    Looked everywhere for somebody with a similar problem but only came to find issues with group messaging, so here is my issue: I have an iPhone 5C, 16GB with the brand new iOS 8 update. Before iOS 8, I was able to use all the features of my phone to t

  • Is it possible to run an operating system from an external hard drive?

    Really weird question here, but I've always wanted to know this. I have a MBP 13" mid-2012 and I installed a 256GB SSD. I currently have OSX 10.9 and Windows 8.1 installed on the drive, but is it possible to actually run an operating system from an e

  • Error in running oc4j application server

    Hi, i have problem when i want to run my web project using JDeveloper10.1.3.3.0.4157. i got this error code: 09/08/2011 10:49:19 ص com.evermind.server.XMLDataSourcesConfig parseRootNode INFO: Legacy datasource detected...attempting to convert to new

  • How to place the generated index topic

    I have a requirement to create index pages from a catalog that is generated completely (using javascript) from a xml data source dynamically using placeXML functionality of InDesign. I created a place holder (a separate page with a textFrame) in my t

  • Opening maximized window from embedded flash movie

    Hi! I need your help! I have a html file with a flash movie-menu embedded into it. I'd like one of the buttons to open an external html page strictly in a new maximized window. It does not matter if the new window has toolbar or not. I want it to ope