data transmission between the General case and problems of timing instructions using daq devices

I'm currently developing a program using LabView 2012 SP1.  I am interfacing with an NI USB-6009 data acquisition using NOR-DAQmx 9.5.5f4.  I'm trying to get a voltage on the three analog inputs (AI0 and AI3 AI4) 1 second to start and 20 seconds of starting.  Three digital ports: P0.0, P0.1 and P0.2 are used to market the transistors for the signals in question and must remain high to the course of ~ 20 seconds the readings will take place.  After 20 seconds, I need to take the readings of each analog channel and the difference of the two to determine the delta at the start.  This delta will lead logic to implement later.  The attached VI has a while loop that runs on an interval of 1 second and a case statement that takes a reading DAQ at 1 second and 20 seconds (two separate trials).  The while loop stops after 21 seconds.  The question I have is how to manage the tensions of reading of the second 1 case and the second case 20.  I need to take the difference and the exit to the front after 20 seconds elapsed.  Please keep in mind when you answer that I am relatively new to LabView.  I have experience with several other languages (Matlab script, C, Java, Perl, etc.), but am still learning how to get concrete results in LabView.  That being said, guess I know nothing outside of what you see in this VI.  If you have any recommendations on how to implement more efficiently, I am open to suggestions. Thanks in advance for your help.

RJ

I would make the acquisition of 21 seconds of a value of data from data acquisition.  Then, you can index you want specific samples.  Have time to wire samples is much more reliable that Windows hope will be both properly 21 seconds.  It also simplifies the code in a bit.

Tags: NI Software

Similar Questions

  • In preferences, search option is missing between the general and the content.

    I use Firefox 40.0.3 on OSX and I tried to set the search parameters. When I go into Preferences, I don't see the search catgergory. If I remember correctly there used to be between the general and the content, but it just disappeared. I was wondering if there is a way to recover or if these options have been moved to another location in the new version.

    I restarted Firefox in safe mode to disable all addons. It is not yet here.

    You have disabled browser.search.showOneOffButtons [set this pref to false] in Subject: config?
    Enter about: config in the URL bar and press ENTER. then use the search box at top.

    Options > Search "tab" disappears when this pref is toggled to false. Search preferences back to the old system where the 'controls' are in the search bar - manage search... engines such as those used before Firefox 34.

  • Exchange of data between the main VI and sub - VI

    It is my first attempt to build a comprehensive program and hope you can help me.

    The idea is to load a set of data and to perform several calculations and operations on them, find themselves in the creation of a report file.

    What I want to do is to build a main VI which contains the data, and several sub - vi to do the math, dynamically loaded in a subgroup of experts (for the simple user interface). I thought about this architecture because I'm sure I'll have to change the calculation of VI, and I don't know how I'm going to need, so I can just add an another calc VI to the plugin dir and load it. The thing is, I have to keep moving data back from the main VI to the Subvi and maybe even between sub - vi. Is there an easy (or not so hard) how? I thought about queues, but sometimes the data is to be sent to more than a subvi, and I can't have a queue for each. The idea that I get is like a network producer-consumer mode BOX: the main VI produce some data and all those interested in this data use. Then they send the results back (as a "producer") and all stakeholders in the response it consumes.

    Attached, is a "skeleton" of what I intend to do.

    There are several ways you can accomplish this. First of all, you can use the Start Asychronous Call, which will provide a component of connector for you. So, it is easy to wire the reference to it. You could also implement a global functional (also known as a motor of action) to access the event reference. It is the approach we use for our shared events. If you have lines between the main VI and ths Subvi you to format a particular message reference. However, I don't think that this approach would correspond to what you are doing.

  • messages between the main thread and the FX application thread

    I run a thread of the Application of FX for a main thread using Application.launch [described here: {: identifier of the thread = 2530636}]

    I try to have the application thread return information on the main thread, but Application.launch returns void. Is there an easy way to communicate between the main thread and the thread of the Application?

    So far, I googled and found:
    -MOM (Message Oriented Middleware)
    -Sockets

    Thoughts/ideas/examples are appreciated--especially examples ;)--now I try to use Sockets to show/hide the application and data transmission.

    What is the preferred method? Are there others that I did not find (gasp) via Google?

    Dave.

    Published by: cr0ck3t on April 30, 2013 21:04

    Published by: cr0ck3t on April 30, 2013 21:05

    Is there an easy way to get a reference to these objects to both the main thread and the thread of Application FX - called via Application.launch () since the main thread? Or what I need to use Sockets or MOM?

    Not much to do with the concurrent programming is what I would call easy. It looks easy - but it's not.
    You can do kind of what you're describing using Java concurrency constructs without using sockets or a package of Message Oriented Middleware (MOM).
    With the Java concurrency stuff you really implement your own form or MOM light.
    If you have quite an application is complex with many messages of comes and goes, then a sort of package for MOM such as the camel and ActiveMQ (http://camel.apache.org) is useful.
    ---------
    You can find a sample of the various interactions of thread with JavaFX here:
    https://gist.github.com/jewelsea/5500981 "Simulation of dwarf dragons using multiple threads to eat."
    Related code is just demo-ware to try different competitive access facilities and not necessarily a recommended strategy.
    If your curiosity, you can take a look and try to work out what it is, what it does and how it does.
    The main reason followed is that of a blocking queue:
    http://docs.Oracle.com/javase/6/docs/API/Java/util/concurrent/BlockingQueue.html
    ---------
    Note that once you call launch of the main thread, no subsequent statement in the main method will be different until the JavaFX application terminates. If you can't start from the main thread and communicate with the main thread JavaFX application. Instead, you need to spawn another thread (or a set of threads) for communication with the JavaFX application.
    ---------
    But really, in most cases, the best solution with the simultaneity is not care at all (or at least as little as possible). Write everything in JavaFX, use the animation of JavaFX framework to time related things and the simultaneity of JavaFX utilities for when you really need multiple interaction of wire.
    http://docs.Oracle.com/JavaFX/2/threads/jfxpub-threads.htm
    ----------
    For additional assistance, you may be better off describing exactly (i.e. really specific) what you're trying to make in a new question, perhaps with a solution of the sample in a http://sscce.org NBS

  • Dropbox for bookmarks or downloads of the navigation bar adds space between the navigation bar and bar bookmarks.

    When I press the button edit bookmark or download the toolbar for navigation that a line of space appears between the navigation bar and the bookmarks toolbar. This problem is corrected when I start Firefox in safe mode, but not when I boot normally and disable all addons. Please tell us how to solve this problem. Reseting Firefox and install all add ons still causes too many problems, so I hope to be able to solve this problem without reset.

    [url =http://postimg.org/image/uwr2x6x21/] [img] http://S28.postimg.org/uwr2x6x21/space.jpg line / URL

    You can also try to delete the file localstore.rdf (resets the toolbar configuration) in the case of its corrupt.

  • U2415, around the gap between the Windows desktop and the edge of the monitor (bezel)

    Hello

    I have a Dell Ultrasharp U2415. I've read all the FAQS and I know I have to perform the SUBMISSION, but before doing so, I just want to know if it is normal to have a gap between the Windows desktop and the edge of the screen. If the Windows desktop is not covering or fill the entire screen. There all around the smaller than a 1/4 "gap between the edge of the windows desktop on the edge of the bezel of the monitor, and this model has almost no bezel. The graphics settings in Windows 10 are set to use the native resolution of 1920 x 1200 monitor. I tried with different computers (all windows 10), and the drivers are up to date. The monitor is connected via HDMI since I don't have portable computers not with DP interfaces. Laptop computers have Intel and ATI video cards. I have check the put option to scale on the video card software and it is set to 100%. So, is this gap normal? Is the edge Office Windows 10 supposed to touch the physical edge of monitors?  If the gap is not normal, I will perform the integrated test.

    TIA!

    Based on the YouTube comments, which seems to be normal. "But you must run the APPLICATION to see if the"smaller than 1/4"gap" appears. If Yes, then we can say that it is normal. If this is not the case, then some settings of the operating system is the culprit.

  • relationship between the active layer and enable layer

    I use AE CC 12.2.1. I think that is not specific to the AE version but something general.

    When I read my layer by extendscript property, it shows layer.enabled = true and layer.active = false. If I change layer.enabled from false to true, the active property seems to follow the enabled property also.  I don't know the meaning of 'active', because even layer.active = false, there is no problem to manage the layer in AE.

    I would like to know something.

    1. How do the status layer.active to AE UI even I check it in the source of the script?

    2. What is the difference between layer.active = false and true?

    3. What is the relationship between the layer active and active layer?

    Thanks in advance.

    [Moved to After Effects - moderator script forum]

    In general, a layer is activated if the eyeball is on in the timeline panel. It is active if the layer is activated and that the model currently is between the points layer and output. You can control the active state. The active state is determined by the active state, in and out of the points and the current time.

    There are some exceptions (audio layers, other layers prone, etc.), but that's about all.

    Dan

  • New window creates a gap between the Favorites (top) and tabs (bottom)

    19/12/14 bug Firefox began to occur:

    • When having only 1 window open and opening tabs behaves normally.
    • However, when you open a new window of the space between the bookmarks (top) and tabs (bottom) spans all windows. Its boring.

    So far only challenge is to just close and open 1 single window, or to use the module 'Classic theme restaurateur' and switch the tabs position from the bottom to the top, but all new windows will open the gap again.

    Image below.

    Unfortunately, none of these options works, so far, use 'CTR' and turn the legs up (default) allows the opening of new windows without gaps.
    Seems to be some sort of bug recently showing on CTR.

    You will need to find a way to contact the developer to let them know.

    EDIT: It seems to be resolved, seems a new version was released and the problem disappeared. Thank you very much for the help.

  • I can't transfer file via airdrop between the macbook pro and my iphone 6.

    Hello world

    just bought a new macbook pro 2015 and I can't transfer file via airdrop between the macbook pro and my iphone 6.

    Can someone please help me solve this problem?

    Thank you

    < re-titled by host >

    First check the steps to run the drop:

    Use AirDrop to send the contents of your Mac - Apple Support

    There are some work around to try airdrop work:

    1. Turn off Bluetooth on your Mac.
    2. Delete /Library/Preferences/com.apple.Bluetooth.plist
    3. Re-turn on Bluetooth

    You can find more info here:

    Transfer and AirDrop does not work in El Capitan

    If you do not see all of your device, it means that you are affected by the same problem, I have known, since the upgrade to OS X the air drop of Captain does not work.

  • How to share a variable between the Mathscript Windows and a Mathscript node

    Hello

    I'm trying to share (just) a variable between the Mathscript Windows and a Mathscript node. I don't know why, but the use of the "global" Matlab function makes the mathscript node output formats change.

    I'm looking for a "Mathscript RT V9.0.1 module" as it may seem, there is. French technical support have some difficulty to find...

    Hi patrick33,.

    The code that you have attached should not report an error, so it seems that something has gone wrong with your installation of MathScript. My best guess is that it is the problem that is described in this knowledge base article. Your signature says that you use f3 patch, which is a good start. But the KB lists some other steps to take when you see errors about MathScript, impossible to compile. Can you try the procedure described in the article and let us know if that fixes the problem?

    Thank you

    jattas

    LabVIEW MathScript R & D

  • Is it possible data passing between the screws running simultaneously in 2 separate teststand sequences?

    I have a vi that I want to run in a teststand sequence and then call another vi in a separate sequence, running in parallel. Is there a way of transmitting data dynamically between the two, the execution of vis?

    Just realised I can still use FVGs between the two sequences.

  • How to fix Windows 7 32 Bit error: the trust relationship between the th workstation and primary domain failed

    How to fix Windows 7 32 Bit error: the trust relationship between the th workstation and primary domain failed

    Hi João,.

    To help solve the problem, remove the PC from the domain and then connect the computer to the domain.

    Click the Microsoft KB Article below for troubleshooting steps.

    The trust relationship between this workstation and the primary domain failed

    Let us know how it goes.

    Thank you

  • What is the difference between the time cpu and cpu in AWR db?

    Hi, experts:

    What is the difference between the time cpu and cpu in AWR db?

    As a general rule, 'DC CPU', 'CPU Time' (and 'DB CPU of "TIME") are references to the same (i.e., a measure of the amount of time the instance of Oracle on the CPU), but to avoid any risk of misunderstanding, it is best to give us a little background labels - i.e. lines 6 or 7 containing an example of every use of one of your AWR reports

    Concerning

    Jonathan Lewis

  • How to check latency between the ESX host and SAN

    How to check latency between the ESXi host and SAN

    Hi friend

    Below KB will solve your need:

    VMware KB: Using esxtop to identify problems of performance of storage to ESX / ESXi (several versions)

    Under discussion can help you get more insight:

    Best values LVAD/cmd (ESXTOP)?

    Learn ESXTOP @ latency:

    vCenter and Esxtop to storage i/o bottlenecks to avoid

    Very detailed blog on ESXTOP:

    http://www.yellow-bricks.com/ESXTOP/

  • difference between the binding context and link container

    Hello experts

    can you please explain to me the difference between the binding context and link container.

    I searched on the net but unable to understand the concept.

    Hello

    the BindingContext represents the DataBindings.cpx file execution and is a record of BindingContainers and their mapping pages and views. In addition it contains information about the data used by an application controls. The link container is the representation of the execution of the file PageDef and gives you access to the collections, methods, and attributes of the data used by a page or view. Context binding is a house while the link container is a piece in.

    Frank

Maybe you are looking for