How to make shift register init happens only once, so that the data can persist across multiple tracks of a loop?

Here's the situation:

We are repeatedly followed eight real-world signals and comparing them to a threshold value.  We do this via a loop For inside a While loop.  The loop For runs eight times per pass.  We have implemented a binary table 1 d and the use of the index of the loop For as the array index, by putting a Boolean result in the table using the function replace table subset.  We want to keep the data in the table to be 'sticky', in the sense that any True value is locked, so even if a fake comes later, this array element true.  However, since we initialize the array in order for the replacement to the work table, we see that whenever the loop For again, it resets the table and destroys the history.

I have attached a simple VI to illustrate the concept, using a random number generator as a stand-in for the real world signals.  How we change this VI do and entered real lock through multiples for loop runs, indefinitely?

In case it is not obvious, I am a relative beginner, so please keep count in your response.

Thank you

B

scottbbb wrote:

For B, although I love the simplicity of it, I have a question: it solves the problem of the re-initialization?  What the shift of the While loop register get initialized - only once during its launch?

Yep, the shift register Initializes only at the beginning.  You could say that every time the while loop is called (not each iteration) the shift register is reset with the wrong table.

And, Yes, GOLD will always keep a REAL when it is TRUE.

Usually, the simplest solution is the best.

Tags: NI Software

Similar Questions

  • Is - is no longer offers a basic remuneration for it and it's yours for as long as you want with no updates of Adobe?  All programs are now a subscription?  Is it really not possible more to pay only once and that the program without updates until what yo

    Is - is no longer offers a basic remuneration for it and it's yours for as long as you want with no updates of Adobe?  All programs are now a subscription?  Is it really not possible more to pay only once and the program without updates until you decide to improve?

    You can buy cs6, Creative Suite 6

  • How to combine real-time video with LabVIEW indicators so that the video can be displayed and saved with the overlay data

    Let's assume for the moment that I can find a device for which LabVIEW has the appropriate drivers.  Is it possible to combine the camera feed with digital indicator fields so that there is a video out showing the data superimposed on the live image?

    I'm talking about something like a screen of the camera where you see the camera settings are displayed on the image in the viewfinder.  Note I have one isn't about analysis of video data or somehow reading parameters of the camera to the camera.  Data would be temperatures, pressures, speeds, etc., acquired by different instruments at the same time the video is captured and processed somehow by LabVIEW.

    No problem Wildcatherder, don't let me give you an overview of the process.

    When you get a video acquisition method entry, it will be an image format. Essentially, it's a bunch of images that are updated at the speed of video capture, just like the material. There are screws express (wizard - like elements) that simplify the obtaining of images from your video source. With the drivers and measurement and Automation Explorer installed, you should be able to get at least the image.

    If you have IMAQ toolkit, I mentioned, you could just wire the reference image (a purple wire wavy) and a text input (say, a temperature that is converted to a string) in the text overlay VI and it would produce the desired effect. Without this, you will need to convert the Image into image (these are two different data types in LabVIEW) and use the image instead, editing tools (essentially replacing pixels in 2D image data). You would then update an indicator of the photo with your photo altered, if all goes well to the pace of the acquisition hardware. As I said this is less elegant and can take a certain amount of time processor. If you view these images at all and are just their routing, it should be slightly faster.

    I don't know about video production equipment, I mainly used entry Firewire or USB, the computer screen or the file data. However, if the driver exists, it should be possible, but a quick review of the functions doesn't seem to come with output functions. Cannot advise on hardware, but you can start with:http://sine.ni.com/np/app/main/p/bot/no/ap/vision/lang/en/pg/2/sn/n17:vision, n21:11600 /?

    Kind regards

    Mello

  • How to make a page QML figurentsur only the first launch

    How to make a qml page appears only on the first time the application is started?

    I need to create a tabbed pane and the number of tabs depends on n the input from the user to whom it provides the first launch. How to make this happen?

    You can use QSettings to store parameters.

    Create two main qmls (mainHasInput.qml and mainHasNoInput.qml). When the user runs your application for the first time, load mainHasNoInput.qml. If the user enters the input values correct, who writes in your QSettings. The next time that the launch of the app, you check if a setting has been stored in your QSettings. If not, show your mainHasNoInput.qml, if yes, see the mainHasInput.qml (which is your main 'normal' screen)

    for an example how to use QSettings, see https://developer.blackberry.com/native/sampleapps/ -> 'persistent objects '.

  • Happened only once...

    Hello

    How can I do something has happened only once, as a dialog box that will appear only on the first launch of the application.

    Thank you

    You can save a Boolean value in the persistent store, Yes.

  • How to store files in iCloud drive ONLY (do not use the space on my MACBOOK hard drive?

    How to store files in iCloud drive ONLY (do not use the space on my MACBOOK hard drive?)

    I want to save the file in my iCloud account, but free space in the hard drive of my MACBOOK

    I want to save the file in my iCloud account, but free space in the hard drive of my MACBOOK

    There is no practical way to do it.

    If you do not enable iCloud Drive on your Mac, you can upload files to iCloud by car via the web interface at https://www.icloud.com

    But you can access the files from the web interface and won't icloud drive as drive in the Finder.  You cannot use the Finder to access the files. You need to download it to use.

  • My new Publisher El 12 runs only once after restarting the PC - how to fix?

    My new publisher of 12 items, runs only once after restarting the PC and seems to work well. I did a "clean install" repeatedly (cleared Temp files, shut down all applications, including Norton Antivirus and then installed DVD after a clean reboot). I can launch organizer of 12 elements several times, but the photo that editor runs only once. After that, I have to restart the PC, and then I can run the Editor again, but once again, only once. I also first 12 items for video files - no problem, he launched several times. I see that Alfredo has a similar problem: How can I fix?... is it a bug of El 12?... Thanks for your help... k-paul

    Thank you very much Peru Bob... your statement works... of course, this stitching is 12 items of closing/out not really closes it (which is why I could not re - start it), so there's always a problem... I can live with that, but why would the program stops not when I close?... k-paul

  • How can I get my computer my external USB drive (portfolio) after that I repeatedly get the message that the device "can not be removed?

    Original title: I need a market to resolve the problem remove the instrument.

    How can I get my computer my external USB drive (portfolio) after that I repeatedly get the message that the device "can not be removed? I have closed all other programs and waited for varying amounts of time, and tried all of the fixes that have been proposed on this site. Nothing works. I don't want to turn off the computer whenever I have to remove the device.

    I can't know what "all patches" you've tried, but:

    Make sure that the system restore does not monitor the external drive.  SR does need to control the system drive and to the system drive, SR has only about 1 GB of space max.  Make a right click my computer and select properties then the System Restore tab to configure SR.

    Make sure that the Indexing Service is turned off (at least for the external drive).  To disable disk indexing completely, which will also speed up your computer a bit, see http://lifehacker.com/031440/turn-off-indexing-and-speed-up-windows-xp.  For the external drive, right-click on the drive icon in my computer, select properties and uncheck the indexing disc

    There are different workarounds short to shut down the computer, but you might want to try this third-party app first:
    http://safelyremove.com/index.html  Among other features:

    The device cannot be stopped now. Why? Never encountered the situation when Windows does not allow you to remove a device? Unlike Windows, USB remove will show you programs which prevent the device to be stopped and let you close these programs or just files that they opened on the device.

  • How to query the data of Contact with multiple fields

    How can I query the data of Contact with multiple fields?

    For example, I'll get contacts which are changed after a point at the specified time and whose country is US. How could I make the chain of research of the SOAP API "Query"?

    And I also want to know how to make a search term for RESTful API for contacts above.

    Any suggestions?

    Thank you.

    Hi Biao,

    The following document describes how query for multiple fields using the SOAP API: request a Contact from several fields.

    And you can search multiple fields using the REST API with the & operator. For example, to search for a Contact by e-mail address and date of creation:

    Hope this helps and please let us know if you need more information.

    Thank you

    Fred

  • The server has not completed the compliance audit of the licenses. If the server is joined to a domain, make sure that the server can connect to a domain controller.

    Hi all

    Can I confirm with expert from Microsoft, it's windows foundation server 2012 may not be the first domain controller (which means that the first AD in the forest)? It must be attached to the root of the forest as a domain controller. If I'm promoting it to be first DC in new forest, he invites you to "the server has not completed the compliance audit of the licenses. If the server is joined to a domain, make sure that the server can connect to a domain controller. If the license compliant check cannot be completed, the server will automatically close in 9 days...

    Thank you & best regards
    Andy

    Hi Andy,.

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en/category/WindowsServer

    Hope the helps of information.

  • How to program the shift register to play only when a new user is detected user?

    Hello

    I'm currently developing a program of position control in labview. The program is quite simple, in which case the user will enter the distance on which he wants the table in the labview program and labview will send the signal to move a motor that will turn a ball screw to move a table horizontally to the targeted position. The criterion is that the profile of the engine depends on the distance to move, if a biphase (acceleration and deceleration) or three phase (acceleration, steady speed, deceleration) to reach the position of the target.

    The problem occurs when the user wants to enter a new entry second position) for the table, as the input by the user is the position that the table should be, but the necessary input to determine what profile the engine follows depends on the distance that the table moves to the target position. Therefore, I need a function to save the entry by the user temporarily and reminds that when a new user input is detected. Hereby, I would be able to use the difference of the input (input [n + 1] [n] input) and animal feed to determine what profile the engine follows and the entry by the user can be kept in the position he wants to the table to get (to compare with encoder).

    I thought to use for shift registers do, but I am not able to perform the deduction ([n + 1] - [n]) only when it detects a new entry. When I try to use registry to offset, it moves to the target location, and we only reached it will go to the original position. For example, when a user entry 90, this means that the table must be moved to the point 90. The shift register is initialized to 0, it will move to the point 90 (90-0 = 90), but arriving at 90, the shift register sends a signal of 90 (90-90 = 0) and the table back to its original position.

    Is it possible that I can delay the reading of the shift register only when a new entry is detected or there at - it another way for me to achieve what I want?

    I tried searching the forum site and neither discussion but could not find similar problems. Thank you for your help in advance.

    As I understand it, the use of shift registers with a structure of the event (to detect a user event when the user enters a new value) should solve the problem. Do not forget to post your request (or a version of it that isolates the issue) when you arrive at the lab, if we can get a clear visual of the issue you are facing.

  • Satellite U940 - 12 c: how to make recovery USB pendrive having only 2 DVD

    Hello.

    I have a netbook Satellite U940 - 12 c, a software problem causing a HARD drive format and the SSD. Finally, I got the free Toshiba Recovery DVD (as it was not my fault, but a software one), two recovery DVDs.

    And that's all I've got: an own Satellite, without partition recovery or any data in HDD or SSD. and the recovery of two DVD. Since my laptop doesn't have a DVD player, and I don't have an external, my question is simple: How can I make a boot USB key recovery by using data stored in the recovery DVD?

    If anyone can help... Thank you!

    > How can I make a boot USB key recovery by using data stored in the recovery DVD?
    In my opinion this isn't possible.
    You cannot simply move the data from DVD 2 disks to USB. I think that this will not work.

    In your case, you will need to use an external USB CD/DVD drive in order to retrieve the laptop using both disks.

  • How to make my confidence one ways c# windows application that should not blocked by antivirus Applications and how to get the third-party certificate for that?

    Hello

    I built a windows c# application that accesses OS, printer information using WMI query, monitor keyboard strokes overall Win32 API and calls others our executables too.

    Whenever I try to deploy it to computers to our customers, it is getting blocked by antivirus applications.

    If I want to make my request as being approved, we mean that it shouldn't be blocked by antivirus applications.

    How to get the certificate of trustee for my application? Even I am ready to make my request as registered product.

    Kindly let me know the procedures, solutions.

    Thank you

    Senthilkumar AK


    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • How to make consolidation operator (~) instead of (+) by placing it in the rules of the load.

    Because by default it will make my child (+) values after build in the cube. I don't want one by one change the operator of consolidation in the values of the child to (~) in the outline. It must therefore be made in the rules of the load. For your information, for my build parameter dimension, I have defined this reference generation and in the dimension of the generation properties, I put as a generation like the field and field number 2. I can't find the setting to make all my child operator of consolidation so that it takes (~) in the rules of the load. Thank you

    What I have in my .txt file. that is open in the loading rules that have columns.

    Value1

    Value2

    Value3

    What I did after having built the loading rules in the cube.

    Stored MyDimensionName # Default # (3)

    Value1 (+)

    Value2 (+)

    Value3 (+)

    What I want to achieve.

    Stored MyDimensionName # Default # (3)

    Value1 (~)

    Value2 (~)

    Value3 (~)

    Hello, I did it before I saw your reply. I add a first column to help to create a field using text, and I type in ~. So total I now have two columns

    Field1 Field2

    Value1 ~.

    Value2 ~.

    Value3 ~.

    After that, for my dimension build setting, I put it as a reference of generation. In the generation of dimension properties, I put it Field1 as generation for the field and field2 as a property for the field. I have set as number2 Field1 and field2 as number2. I need to change my stored MyDimensionName # Default # (3) stored MyDimensionName # Default # (3) (Label only) If no, it will not work. That's how I did it. Haven yet tried your method. That means that u create using a field using text that is gen1 for column1, and ~ to Column3? In total it is therefore 3 columns?

  • The HP ENVY TS m7 laptop: how to make an HP Support Assistant icon to appear in the Notification area of the taskbar Windows 10?

    I am running Windows 10 (x 64) (build 10586) on my laptop HP ENVY TS of m7 with HP Support Assistant 8.1.40.3. I'm used to seeing the blue Support Assistant of circular background of question mark icon located on the right side of my taskbar Windows in the notification area, just to the right of the up-carat for 'display the icons '.

    However, about 2 days ago the Assistant to support automatically downloaded and installed the latest version of himself. The '? ' icon disappears from the notification area of the task bar and appeared to place on my desk. I clicked on the desktop, and then click icon on "PIN to Desktop". It pinned icon Assistant decision-making support on the left side of my taskbar with icons for Windows Store File Explorer and other icons open programs.

    I tried just dragging the icon Wizard help to the right of the Notification area of the taskbar, but that cannot be done. Please give me detailed instructions on how to get back the icon wizard helps to where I'm used to seeing.

    Thank you for your help.

    DavidPK wrote:

    Hello

    Another option, you may need to check is the following.

    Launch of HP Support Assistant.

    Click the gable of parameters to the upper right.

    In the following Panel, make sure the "show an icon in the taskbar" entry (see the option highlighted in the image below) is checked - if not, click in the box enter a tick, then click on the "Save" button.

    Kind regards

    DP - K

    Hello once again, David,

    Success at last! I uninstalled HP Support Assistant and reinstalled. After the installation, I found that the wizard help icon was now right of my bar Windows 10 tasks in the notification area, where I'm used to seeing. See the image below. If this topic is now closed.

    Thanks for all your suggestions and help, which helped my analysis of this problem and its possible solution.

    All the best wishes and cheers,

    Joel

Maybe you are looking for