The speed of the flat sequence?

Hello

What I want to do: read a map OR 6 analog voltages and provide a few analog/digital outputs from another card of NEITHER.

Here's what I do: I use the DAQ assistant to acquire 6 different analogue voltages on a simulated map of NI 9205. I tried to run at the same time all 6 data acquisition assistant acquires (which did not), but I read that since there is only a single clock on the map, so I can not use multiple acquires at the same time because of timing issues (right?). Then, I put my DAQ assistants in their own images in a flat sequence then they would be operated sequentially. This works fine, but each frame/acquire takes 1 second to complete. Which means that my program lasts 6 seconds to do everything acquires it, before my other code outside the plate sequence. Outside platform sequence are my trips (some digital and analog a bit on a slider). Because my flat sequence lasts 6 seconds to compete, my outputs are updated only once every the 6 seconds, where as before the flat sequence has been inserted that they have been updated little almost instantly.

Here are the questions: can I do the flat sequence run faster? Or is there a way to simultaneously acquire several analog voltage using the DAQ assistant. I feel that I shouldn't need to the apartment of sequences, but do not know a better way to go about it.

I hope that makes sense and I'm pretty new to labview so feel free to add many details.

Thank you!

PS: If you try my Vi, notice how slowly the 3 top entries in the page update, if I remove the huge flat sequence, they run very quickly and smoothly, which is what I would like.

e g m e n i wrote:

Here's what I do: I use the DAQ assistant to acquire 6 different analogue voltages on a simulated map of NI 9205. I tried to run at the same time all 6 data acquisition assistant acquires (which did not), but I read that since there is only a single clock on the map, so I can not use multiple acquires at the same time because of timing issues (right?).

Instead of trying to run 6 assistants for the acquisition of data in parallel (or sequential), use one assistant DAQ who reads all channels simultaneously.

Tags: NI Software

Similar Questions

  • Replace the flat sequence Structure?

    I read a bit in the forum and a lot of people discouraged to use the structures of the sequence. Here's the situation: I have a tick count at the beginning for the iteration (and another at the end). I want to force them to count before (and after) anything else. The code I'm working on leash all data through structures flat sequences that contain only tick counts. Is there a different way that you can do without the structures of the sequence?

    Thans

    The recommendation not to use structures of sequence applies to most of the cases where people use.  State machines are the preferred (and best) method.  However, this does not mean that there is never a good use for a sequence structure.  In your case, when you both want something, it is perfectly acceptable.  An example is shown in the first snippet below.

    There is an alternative however.  You can use a timed loop to time your code.  Someone posted here once an example.  I forgot who he was and who puts in.  It went something like the snippet of the second.

    I would like to know why there is a difference in speed between these two methods:

  • Scripting - reference control Replace inside the flat sequence

    Hello

    Just in the process of upgrading our software from 8.6 to 2011. A question that we have is references appear to be different to the old code. Example - if we create a new control reference, put it next to the old one, put a probe on the two, references do not match when we run the vi.

    This causes havoc with our very large amounts of code. We contacted OR that our support subscription and they required an example which we can really give.

    In any case...

    I thought that I would write a vi script to replace all old references of our code with new references.

    Problem is that I can't replace a control easily reference which is inside any kind of structure.

    I need a way to get a reference to a parent structure, I can then add to the structure.

    This will take place on large amounts of complex code, so there need to be versatile. Please see the attached Vi

    Thank you

    Joe

    I would like to make the following changes:

    • You'll want to use the 'Move' method, which allows you to specify an owner.  In this case, the owner is the schema that belongs to the original control reference.

    • You want to get the original order wire and get all its wells (i.e. not null index into the array of terminals), so that you know what to wire the new benchmark in control of.  That is why the Connect wire method is in a loop For... the original control reference may have wired to several objects.

    Let me know if you have any other questions.  As far as I know, all properties/methods that I am using the code above are available in LabVIEW 8.6.

  • on the flat sequence and time elapse

    My goal is to make the second picture of work after 1 second. I used two different methods in the attachment first and second. The first was performed well while the other fails. I don't see why the difference exists. Everything that I have done is to justify the delay time is greater than 1.

    He turns to 1. However, I strongly recommend that you stay away from the dyanamic data. As you can see, it is converted to a digital and Boolean. The result of a superior function, must be a Boolean, and that would be something that you could not connect directly to a digital. You can connect dynamic data what either, and the result of that, I think can be a little unpredictable.

  • Store values in the flat order

    Hi all,

    I have the problem as I would like to ask for help from the community.

    I currently use the flat sequence to run two blocks of different functions for my VI. Therefore, there are two frames in the sequence of plate.

    For the first image, I'd like to store the previously calculated value so that when I come back to the first frame again, I can use this value to calculate the next value. It's like the iteration. I am currently using registry to offset this.

    The problem I have enconter is that when my VI goes to the second image, the values in the first image that is stored in shift registers have disappeared.

    I didn't really need to use the shift registers. I want to just store the previous value so that I can use it again in the next round.

    This is the VI to better illustrate my problem.

    Thank you very much.

    Keith Tan

    Hi Keith,

    the values in the shiftregister are only in the one frame. If you need also in two, then you must connect the wire of the output of shiftregister for the second image. If you need values of frame two Connectionwithsuchprocedures one, then put a loop around the sequence and also a shiftregister.

    Mike

  • Scripts (connect a Terminal to a flat sequence Structure)

    (script)

    Is it possible to connect a terminal to a flat Structure of the sequence?  (in my case, with a single frame)

    (with the "Connect Wire" method)

    Ouadji wrote:

    but the main question is... Why the flat sequence structure does not inherit from node?
    Why the developers chose this?
    What is the main idea of this choice?

    Flat sequence Structure introduced in LabVIEW 7.0, provides a semantic schema object that no other object has. It is a structure of multi-frame (like a case structure or a stacked sequence), but it is the only structure where data can be wired between frames through normal tunnels. It is the only structure which may have tunnels in places other than its external borders. It is the only structure that can have subdiagrams of different sizes in different positions. It also introduces scenarios of strange wiring that you won't find elsewhere:

    At the same time that the flat Structure of the sequence was introduced, there was enough of these bizarre scenarios with scripts (which was an internal feature NOR at the time), it was easier on the developer to make his own script class to try to find a way to support it under an existing class. We had no idea that script would become a public service someday, so the burden was relatively low and limited within the walls of NOR. Looking back, there have been enough problems with the FlatSequence class in the script than most of us agree that it would be better to have it in class Node (or more precisely, the class MultiFrameStructure) from the beginning.

  • How to turn on the flat Structure of sequence based on a Boolean value?

    Hello

    I try to write a (attached) VI who enjoy an analog voltage that crosses one analog multiplexer. I am using a flat sequence structure to change the output of select signals to change the channel to be sampled. I wonder if I can turn on the structure when my Boolean input of the sample is TRUE?

    Based on the image (I can't watch the VI himself), he doesn't seem to be a necessity for the sequence at all. There is data connections Wizard DAQ to two scalar indicators, which implies that you are taking a single sample. No need to acquire multiple samples and throw all but one. The second sequence is certainly unnecessary.

  • Delay the time of flat sequence Structure?

    How to delay the moment of execution for flat sequence Structure?

    Your question is a little vague.

    You want to delay in a certain amount of time? Until something happens?

    You can add a primitive frame with a wait.

    It might be useful to you could reach a simplified example so that we can better see what you're doing.

  • In the case of flat sequence LED

    Hello

    I have 2 flat sequence event with 1 LED in each event. How can I turn on the LED when the start of the event and the OFF when the event ended before he will move to the next event.

    Help, please.

    Thank you

    Those who are not in the sequence of events. These are individual images. Events in LabVIEW are something completely different. Based on your question it seems that you are not completely understand dataflow. A function/VI will run when all data on the cables connected to it is present. Stream can be used to enforce the execution order, but executives of sequence can also be used.

    In your first picture if you wire a real constant for the Boolean value, you can control when the Boolean value is updated because there is no dependenct data between the numerical calculations and writing of the LED. So, if you want to turn on the front LED the first image, then you must add a frame before the first person where you set the indicator and the same thing at the end.

  • Is there anything I can recognize what image runs in the plate sequence?

    Hi all

    I would like to know if there is a way I can recognize what image is running in the plate sequence?

    If I have five images in the sequence of flat, I want to keep track of each image in the façade visually. I use LV8.2

    Thanks in advance for your answer.

    Yoon

    You could put a local variable in each image and update that with a constant. Of course, it is really bad application and I highly recommend to develop a state machine architecture given that what you are doing are NOT the right way to program in LabVIEW. For a model, go to file-> New... and take a look on the State Standard computer in the directory of design patterns.

  • How to detect the correct sequence of Boolean switches pushed

    Hello

    My program is all what I want too. However, I need to have the Boolean switches (digital inputs when wired to the equipment) be detected in the right sequence. There are 16 switches on a Board of material. The test subject is displayed 3 colors before hand and the sequence of buttons to push when prompted on the screen with one of the colors, each color pertains to a specific sequence of 4 switches pushed on 16 as quickly as possible. The sequence of buttons remains always the same according to the three colors red, yellow, blue.

    In the program, which is 99% working properly I tried to use a sequence of plate. It will give me a real if I hit the switches correctly - but will also give a real if I hit them back etc... I thought that a flat sequence is read from left to right?

    Then I messed around by using a structured event - the array of switches, pushed index and compare it to a table of values control. I understand how it works, but the correct code is elusive.

    I have attached a picture of program I did but it lacks the proper sequence. (Flat sequence)

    I have included the code for the structured event that I messed with. Don't laugh - I was just making experiences - I've never used a structured sequence before configuration.

    Hope someone can help me.

    Ned

    Hi Ned,.

    Your producer-consumer model is actually very close to work.  In the original version of screenshot, it seems you are trying to use the structure of sequence to capture the order, but in reality you will capture only the AND logical of all the 4 buttons with no information about the order in which they were pressed.  The structure of sequence does not by itself is waiting for an event to happen inside the frame, it which means that all 4 frames read as fast as the processor moves to their reading - which will be very fast.

    I've made a few changes to your VI and renamed him Rev 1.  See if it makes a little more sense with the notes I made on the front panel.  I also did a different version with a loop simple and some added functionality (-Ko), just in case Your ' e interested in another way to look at it.

    Kurt

  • Get the elapsed time in the frame of the specific sequence

    Hello

    I'm running a flat sequence in one of my programs and read time elapsed in a picture in a form vi. I don't want to have the elapsed time for the entire program, just the elapsed time whenever this specific image runs, from scratch whenever that image in the sequence begins. The formula is just a linear equation which is dependent on time, so his criticism that it resets each time in order to provide a line that progresses from t = 0 each time. I tried to use in the context of the time, but I don't know how to set up properly to give the elapsed time, I'm looking for.

    I don't know how long the framework works because I just need a way to input what time her (ms or s) to a given point during execution, from t = 0 each execution.

    First of all, your formula.vi should be outside the framework of the sequence.  You can determine the run-time WHEN the framework is completed.  Place a County vi check before and after the image and subtract. (delta t is in milliseconds)

  • the song sequence

    Hello

    Since this update for a given title, 'CD', song or 'track' selection is no longer moves in the regular sequence, i.e.track 1 to 2 to 3 and so on. The automatic progression is random, going to randomly say 1 to 3 to 5 or 1 to 7 or 9 or 8, then sometimes back to 1, even skip a track in a title to another title, then another title. In other words totally unmanageable, without the possibility to fill in a piece of music, for example a symphony or other.

    Is there a solution to this, any ideas?

    Thank you.

    Hi Roedael,

    I understand that iTunes seems to be unexpectedly scramble the order of albums when you try to play the songs on the album in order. In 12.5 iTunes the shuffle button appears at the top in the center of the iTunes window.



    • Turn shuffle or disable: Click the shuffle button.

    Shuffle is on when a grayed out box appears.

    • Shuffle albums or groupings: Choose commands > Shuffle > Albums (or groupings). iTunes plays the songs in the order in which they appear on the album or group, and then selects another album or grouping at random.

    • Shuffle the songs in an album: Click Shuffle below the album cover.

    Help - play iTunes songs
    https://help.Apple.com/iTunes/Mac/12.5/index.html?localePath=en.lproj#/itns2989

    Alternatively, you can access the settings of shuffle in the command menu > shuffle.

    Concerning

  • In a sequence of CTF, is it possible to obtain a text file of sequence clips display? There is a display of text file for clips (cmd-9). Zoom the timeline cancels the ability to see the whole sequence of the time line.

    In a sequence of CTF, is it possible to obtain a text file of clips in sequences display (name and duration)? There is a display of text file for clips (cmd-9). Zoom the timeline makes this visible annotation for shorts, cancels but the ability to see the whole sequence of the time line. Of course, it would help my editing.

    TIA

    In Final Cut Pro 7, you can use editing > find command to search on used clips in the sequence. See if there is an equivalent command in FCE. Unfortunately, I can't determine that at first hand on my system. (In addition, if you are still interested whereas FCP X, there the so-called Timeline index which provides quick access to a list of markers, clips, effects, etc..)

    Good luck.

    Russ

  • Can an HP Photosmart Premium copy to printing on paper of the flat bed scanner?

    Hello

    Whenever I press the copy on my printer HP Protosmart Premium C410, it will attempt to load to the top of the ADF and won't copy of the flat bed scanner. Is this normal? Can I copy starting from the plateau that I would with books, etc. that does not fit into the ADF.

    Thank you

    Phil

    This is not normal. However, if you have something in the ADF, it takes care of the ADF. He must travel from the glass if ADF is not loaded.

Maybe you are looking for

  • Satellite P100-487: problem with audio drivers for Windows XP Home 3.11.0.51 - entered

    Hello I have problem with this audio drivers 3.11.0.51. The problem is that the output works perfectly but there is no entry. When can I expect from the good work on Toshiba support drivers? My way to have entry and exit works well is: first install

  • Office Jet 6500: Office jet 6500

    My printer stop working, I bought a new track and a charger.  Light to the plug, but whenever I press the power button it lights up for work a little while and then stop.

  • Windows 8 will not send email w / photo fixing

    Windows 8...   For now, I've got 3 emails blocked in "Outbox" with less accessories full screen (800 Pixel or less). Impossible to do a right click to make a move as in easy to maneuver the XP versions.   I see in the older versions of MSN you can de

  • the Touchpad button - mechanical failure

    Hello, I have a dv7 - 2277cl 17.3 in laptop, produced none. VM193UA #ABA and my left button touchpad has failed mechanically. It feels like the springs that hold it upward and away from the Central trigger broke. I spent a lot of time trying to find

  • Error code 51A 00?

    Whenever I try to build my project on a blank DVD I get this error code to halfway through saying (meaning Code 51 A 00). Does anyone have an idea as to what is happening?