Can I put a READ function in a structure of matter TRUE or FALSE?

Hello

I have a vi that operates as a controller for a mechanical system of engines.  There are several sensors of various types, make its contribution to the vi, including encoders, whose period is measured.  The attached vi is the period of encoder part of measure. It measures 15 periods and tells me that the average of the 15 with each iteration of the loop.

In my application, the encoder measurement period is useless unless the vi knows ALL OTHER sensors in the hardware configuration to measure values in the desired interval.  For example, the sensors A, B and C must all measure between 5 and 10.  If they are all shows values between 5-10, then we want the value to encode it to read and display.  If only one of the sensors, say, is action 12, then, we don't want the value of period for READING or further processed.  So, it is easy to set up the sensors A, B, C, to give a TRUE or FALSE based on what they are handy or not, and if all 3 are TRUE, then, this value can easily be passed to the structure of case that holds my function of READING for the period.  What is a good way to do this?  The goal is to eliminate some unnecessary runtime that would consume the period READ function, as well as all the calculations that are performed on the period collected value.  The data period are of no use if one of the other sensors is not in the correct range.

If one of the other sensors is out of reach, we want to skip reading encoder altogether.  So, it is easy to structure a Boolean in my vi as indicated in the attachment.  If I do it this way, it throws an error, or just skip READING until the BOOLEAN value is true once again?  Is there a better way to prevent PLAYBACK to occur if one of my other values of the sensor is not in the correct range?

Thank you

Dave

Of course, you can put a reading within a box structure. For your application, simply check that your sensors are all at the beach (palette of comparisons), AND the T/F and use the result of this for the structure of your business. (If you already have the cheque to its scope, I can't see here because you have 5 subVIs that I can not open here.

Cameron

Tags: NI Software

Similar Questions

  • How can I put a 'Read' option in the 'Registration' section on windows 7?

    How to put a "reading of-> speakers ' in my region 'Record' to play music via windows media player, through my registration line, without the actual microphone sound recording?

    example:

    If I joined a Skype call and changed my registration on the "speakers" they hear my music, but not me

    There is a program called Audacity: Free Audio Editor and recorder that has a setting to record directly from check her into speakers without a microphone.

    I have Windows 7 Professional 64 bit
    Reference Dell
    Intel (r) Core (TM) 2 Duo CPU 3.00 GHz 2.99 GHz
    RAM: 4 GB

    Not really sure what you're trying to do.

    You want to listen to music while recording a separate source? You can't with the establishment you currently have.
    Or do you want to listen to music while on Skype, but without other Skypists hear what you play? You can't with the establishment you currently have.
    In both cases, the audio device can only deal with a stream at the same time. Everything you put into it will come out, we cannot dissociate the sources. If you have 2 choices:
    -purchase and install a second audio device
    -Download and install a virtual audio device (Google and you'll find them, some are free)
    I may have misunderstood, if this is a re post and be more specific.
    See you soon,.
    Jerry
  • My id app for the App Store reads an old email so I can't put to day of applications nor sign in iTunes

    My id app for the App Store reads an old email so I can't put to day of applications nor sign in iTunes

    You may need to sign out of the App store with the old ID

    Then, restart the computer and log in to the with the new ID credentials

  • I installed JZip and now I can not put my homepage of everything except the jzip search page. How to disable the functionality of jzip?

    I installed JZip and now I can not put my homepage of everything except the jzip search page. How to disable the functionality of jzip?

    See:

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

  • Can I put the Satellite P100-240 with internal fingerprint reader

    I have a Satellite P100-240.
    Although he did not come equipped with material to print finger scanning, it has clogged the hole in the box where he would go.
    So I wonder, can I get the hardware scanning separately and adapt it to the laptop?

    I don't see any option for the material to be sold separately on the Tosh site and I'm not even sure who makes the hardware for them so I can source it independently.

    Can we offer here advice or information on this operation?

    Hello

    You are right. Some P100 units support the fingerprint, and some units have been delivered without this feature.
    As I m not wrong not these fingerprints can be upgraded

    But to be 100% sure you should ask the local ASP (authorized service provider) for details.
    But in my opinion you can not put the laptop with fingerprint reader.

    Good bye

  • What is READ the array returned by the DAQmx meter? How can I know the two functions DAQmx READ data stream in the same WHILE loop?

    I have a question about the order of execution.  In the WHILE loop, I have two things to measure, period and tension using the DAQmx READ functions for voltage and the meter.  In the end, I want to collect these data as points almost simultaneously as possible, as a pair and then send them together to another piece of code (not shown here) which them will result in some sort of command for an engine.  It would be run, and then I want to perceive the tension and the period at a time later and do the same thing.

    (1.) I'm a little confused on what the meter of the READ function is back because it's a table.  What is a picture of?  I thought that it was up to the value of the individual periods between rising edges.  The output of the counter 1 DBL d's a table. How many elements in this table, and what determines the size of this table?  Are the elements of the array the individual delays between the edges?  How many values are stored in the array by executing?   We take the AVERAGE of the last 15 items, but do not know if we are throwing some of the data or what.  How to understand the composition of this painting?  How can I change the composition of this painting?  Is it possible to measure only one period at a time, for example the time between TWO edges?

    2.) Will this WHILE loop execute as it gathers tension and a "period table ' (remains to be understood by me) by TIME running in a loop?  In particular, we want that the value of the tension associated with the value of the AVERAGE of the period "array", so we can use two data items to create orders of next control every time that the two values are reported.  The structure for the delivery of vi will be attached data in pairs like this?  I understand that one of the READING functions run not before the other function of READING in the WHILE loop.  I want that the period "means" and "strain (Volt) collected at the same pace. This vi will he?

    Thank you

    Dave

    Hi David,

    I suggest including the DAQmx Start Task function. If it does not start before the loop, it starts the loop and work very well, but it is not as fast and efficient. In the model of task status, task wiill go to run the checked each iteration of the loop and then back the time checked running when it restarts.

    The status of the task model: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/taskstatemodel/

    Kind regards

    Jason D

    Technical sales engineer

    National Instruments

  • the adobe reader of adobe purchased but installed standard first pro. now, the 'pro' trial has expired and I can't use the "standard" functions

    I bought the adobe reader from adobe but installed standard first pro. now, the 'pro' trial has expired and I can't use the "standard" functions How can I solve this in order to use Adobe Standard - one that I bought?

    Hi Jodie,

    There is no standard to pro versions of Adobe Reader.

    You have downloaded the Acrobat version which is paid instead of Adobe Reader software.

    As the trial has expired, then you won't be able to use it unless you have purchased the product.

    However, you can download Adobe Reader for free using this link Adobe Acrobat Reader DC install for all versions.

    Kind regards

    Nicos

  • I upgraded my windows and I want to restore Adobe Reader XI (I think that's what I paid). How can I put this back on my computer?

    I upgraded my windows and I want to restore Adobe Reader XI (I think that's what I paid). How can I put this back on my computer?

    The reader is free, so I hope that you don't worry about it. You can download and install from here: http://get.adobe.com/reader/

  • How can we put a database in read-only mode?

    DB version: 11.2.0.2
    Platform: AIX 6.1

    How can we put a database in read-only mode?

    Please read http://docs.oracle.com/cd/E11882_01/server.112/e25494/start002.htm#i1006490.

  • Can we put procedure in a function?

    Can we put procedure in a function?

    Hello

    If you mant to say have a procedural code in a function, you can do it, you can have a block of code in a function or if you want to call a procedure in a function you can call it.
    Have you tried to create a Package?

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/packages.htm

    Thank you

  • What can I put the RAM and the hard drive of a Macbook Pro 13 "2014 in a Macbook Pro 13" 2016?

    The main logic of my Macbook Pro 13 "2014 card is broken, and it turns out that it will be much easier and just slightly more expensive, buying a new Macbook Pro that, in order to replace. I would like to set up my new Macbook Pro 13 "online in a way such that it is as cheap as possible, while always respecting the level of my former. So, if I could order one with the minimum of RAM and disk space hard and then put these pieces of my old in the new, this would be ideal. I don't know so much about it, and the question is: is it possible?

    my old Mackbook Pro 13 ":"

    -purchased new August 2014

    -3.0 GHz dual-core Intel Core i7, Turbo Boost up to 3.5

    -DDR3L 16 GB 1600 MHz SDRAM

    -Storage flash 512 GB PCIe

    -Intel Iris graphics card

    I'll get to buy e new generation Mackbook Pro 13 "with:"

    -2.9 GHz i5 or i7 3.1 (I've not yet decided)

    -RAM: Here I want to configure it with as little as possible, if I can just put the chips of the old in the new. Is this possible?

    -Hard drive: same thing: if possible, I want to get the cheapest option and simply put the old in the new. Possible?

    Thank you in advance to anyone who might take a few minutes to help out me! It would be much appreciated!

    The RAM is not transferable, and the reader will be not as fast as the original of the newest computer; In addition, change it the warranty of the news of the computer.

    (143318)

  • How can I put ONLY 9 tabs, NO 15, on the new tab Page?

    How can I put ONLY 9 tabs, NO 15, on the new tab Page?
    (First OFF... Please do not read this as being written by an angry person.) I'm just frustrated with the browser that I liked for years. I hope someone can help me)
    For a long time, I had my Firefox (version 33.0.2 - even if I don't remember getting mentions "update") defined so that every time I clicked on the tab new symbol '+' to create a new tab (which has the "new tab Page" on that), the NINE inch nails would be shown for my SELECTION and PIN sites. I LOVED!
    Yesterday, I opened Firefox and NOW when I click on the '+' to open the new tab Page... FIFTEEN thumbnails appear, 5wide x 3down, (and to be honest I probably would have the habit of 15! ha).
    Here's the PROBLEM: NONE of the thumbnails are "compressed". They ALL have "liberated" up yellow icon to the left and clicking on does nothing to remedy this of course. Other that THAT, everything else behaves normally. (that is to say moving the thumbnails, deleting, swap... I just can't pin THEM!)
    FINALLY, I prefer my 9-repositionable decals on the new tab Page.
    I went through ALL the options on the side, upside down and backwards, and I just get more frustrated.
    Can someone help me?

    Hello

    If you can see all your tiles, you can change your settings in settings page:

    1. In the address bar, type Subject: config and press enter. The subject: config "this might void your warranty!" warning page may appear.
    2. Click on I'll be careful, I promise! to keep the comments: config page.
    3. Search for browser.newtabpage.columns and change it to 3, or however many columns you like
      • Note: browser.newtabpage.rows allows you to change the number of desired lines as well

    You can also set a fixed number of tiles with the following extensions:

  • How can I put shortcuts to websites in a bar (?) tool bar/browser... dunno what it's called. With IE, I can just drag the tab of the site to the area I want.

    How can I put shortcuts to websites in a bar (?) tool bar/browser... dunno what it's called. With IE, I can just drag the tab of the site to the area I want

    Near the right end of the address bar is a White Star which can be hard to see, but look closely. When you want to add a shortcut to the toolbar, double-click the star. A window opens with the name of the Web page. Under this is the area of folder which will probably read "Unsorted Bookmarks". Click on the drop down arrow and change it to "Bookmarks Toolbar", then click done.

    I have several folders on my toolbar such as music, Mail, etc. in which I add several Web sites. If you want to add a folder, click on the second drop-down arrow next to "Bookmark Toolbar" and click on "New folder" and give it a name.

    To add a bookmark to a folder, once again double click on the star, make sure you're in the bookmarks bar and click one of the fall of two arrows to find the name of the folder.

    For other bookmarks use Menu bookmark. What is added here are accessible through bookmarks in the menu bar. If your Menu bar with bookmark, file, display, etc. is not visible, click the ALT key and they will become visible. To keep the menu bar, click view, toolbars and check the menu bar.

  • How fast can get a TCP read?

    LV 2009 + WIN 7 with 6 GB of Ram.

    I acquire two analog channels as a word of 16 bits each and adding a CRLF at the end example: 1234 567 \r\n

    These data are acquired to 50ms intervals and sent over a link WiFi for my notebook running code LV.

    I know not how fast the "TCP - Read" function can work and which mode (it has four options) to choose if I do not miss any incoming data...

    Now I get some data in French - initially rather quickly and after a few seconds, it slows down the consdierably. I'm running the TCP-read inside a timed loop and I tried various intervals from 10 ms to 500ms. The largest value works OK, but I need the fastest possible. Tips how to handle this?

    My code is attached. (The passage DIO works very well)

    Even if the passage DIO works, it doesn't make sense to use a sequence structure.  It would be better to change the Standard mode and the 100ms Timeout value instead of "wait for next"millisecond"Multiple" as leading to uneven wait times.

    TCP Read should run very quickly, subject to any waiting period that you set.  You should never lose data in any mode, although there is a possibility to receive a partial when you use Standard mode or immediate (unlikely in your case since you read so little data).  The operating system will be buffering of data not read for you.  If you want the fastest possible exchange, divide your code in two while loops, one for EID and the other for the series.  Serial communication can be simply a normal life while loop, with the reading of TCP dictate the timing.  Set a long timeout in buffer mode and the loop will run as quickly as it receives data.

    Also, when the loop ends, you must close TCP connections, not just one of them.

  • Can I put a reminder on a line on a canvas print?

    Can I put a reminder on a line on a canvas print? How can I do? A few examples?

    I want to click on the line and a sign to appear, but I don't know how this thing of a reminder for the line of code.

    My canvas:

    Test_2 = NewCtrl (panelHandle, CTRL_CANVAS, ' ', o, 0);
    Status = SetCtrlAttribute (panelHandle, Test_2, ATTR_HEIGHT, 693);
    Status = SetCtrlAttribute (panelHandle, Test_2, ATTR_WIDTH, 693);
    Status is SetCtrlAttribute (panelHandle, Test_2, ATTR_PICT_BGCOLOR, VAL_TRANSPARENT);.

    Draw line on the canvas:
    Status = SetCtrlAttribute (panelHandle, Test_2, ATTR_PEN_WIDTH, 2);
    Status is SetCtrlAttribute (panelHandle, Test_2, ATTR_PEN_COLOR, VAL_RED);.
    Status = CanvasDrawLine (panelHandle, Test_2, MakePoint (489,75), (235, 620) MakePoint);

    If you use a canvas, you can use GetRelativeMouseState to detect the position of the mouse on the canvas. Take a look at the example of the Web (\userint\canvas.prj), more precisely the ScratchPad () and DrawToCanvas () functions in which GetRelativeMouseState is used to allow the drawing freehand on canvas.

    The next step is to figure out if the mouse is on the line: the line drawn to the user's hand or is it drawn programmatically? In the second case, I guess you know the function it generates, so it is easy to check if the mouse is over the line or not.

Maybe you are looking for