Questions about shift register

hello!When I use the shift register,A problem occur!what I want to use is the serial in shift register function,But found only use parallel shift register,someone can give me any suggestions?(The best way has an example of a serial shift register),thanks!!!
Solved!
Go to Solution.

I want to achieve :Each element of the array in the shift register Compare with 5,If less than 5, the output is 1, otherwise 0;but as you can see the vi is wrong ;Error reason is because of the shift register only for computing the entire array but not Single element,any suggestion?
Attachments:
the vi.png ‏8 KB
array.png ‏5 KB

Similar Messages

  • Problems about shift register

    i am using shift register to detect the change of state of my system. --- to detect when the temperature exist the limit, say 50 degree
    therefore, i want to set a constraint that when the past value is below the limit, and the present value is over the limit, the loop is runned and value, time is recoreded.
    My problem is that the system can't run well.
    here is my sample program
    Attachments:
    shift_regiter.vi ‏225 KB

    Hi,
    Yes I did see your eaxample.
    Your inner loop will only ever get one reading if it is inside your limits because it will never exit and therefore your outer loop will never take another reading. Your limit checking needs to be in a parallel loop for it to have a chance to work.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Question about CWP register

    Is it a per-thread register? When debugging an application, I found the CWP was changed after a
    "ld" instruction.

    Hi Chan,
    You don't need to mention the class file in provider.xml. Just need to mention the JSP in the <showPage> tag. Also make sure, that the JSP has imported the class file using the page import directive (something like <%@ page import="yourPackage.yourClass" > )
    Also the yourClass.class file should be at WEB-ING/lib (inside a jar) or at WEB-INF/classes folder (under the hierarchy yourPackage/yourClass)
    Might want to take a look at the eventform.jsp (under \htdocs\eventform). This uses a Java class EventFormCustomization
    Let me know if you still face any issues.
    Regards,
    Abhinav

  • Question about de-registering PS6 Ext

    I am selling my copy of Photoshop CS6 Extended.  How to I unregister it to me?

    Transfer an Adobe product license
    Mylenium

  • How to use Shift Register?

    Hi
    Today I spend hours to ficure out how to use a shift register with labview.
    I am going to calculate the acceleration of the wheels of an RC-car.
    I want to use the simple function to calculate the acceleration.
    a=(v1 -v0)/time
    From this it follows that I need two speed (ms) values. I was thinking about including a shiftregister that I made before (attached) into the SpeedAngle.vi
    But that doesn't work.
    Is there maybe an other way to store two following values of the calculated speed? So that I can use it for further calculations.
    Thank you!
    Attached the two program files.
    Bye
    Attachments:
    ShiftRegister1.vi ‏23 KB
    SpeedAngleAdvancedEDIT.vi ‏187 KB

    Hi
    Thank you very much. Now it works. Attached you will find the program. Now I need to adjust the car with the program. Hope this also works.
    One more question. Why isn't it possible to use a Numeric Control twice?
    Because I wanted to use the Numeric Control that I use for the time constant (time) also for the calculation of the acceleration.
    That doesn't work. Than I placed a Numeric Indicator to display the value of the time constant. But it just displayed the default value.
    Bye
    Attachments:
    SpeedAngleAdvancedEDIT.vi ‏214 KB

  • Reading spi shift register bit with NI 8451

    Hello
    we are proposing to use SPI communication with NI 8451.
    we would like to know as how we could find whether the SPI shift Register bit has been set and also is there any direct means of
    sending this bit result to DAQ without programming.
    Thanks
    Bhavani

    Hello Bhavani,
    The USB 8451 does have DIO lines available and can be programmed by the SPI output.  Please see the USB-8451 User Guide and Specifications for more information about that.  If you have any more specific questions, please let me know.
    Thanks,
    Meghan
    Applications Engineer

  • Uninitialize shift register

    Hallo,
    I would like to ask a question about the uninitialize shift register. I would like to use a uninitialize shift register in a subvi in order to pass data between subsequent calls of the subvi.
    The problem is that the data i would like to pass is a 2D array.
    The labview seems not to accept 2D array data type in uninitialized shift register.
    Can someone please help me?
    thank you.

    Hi achille,
    ok, but where is the problem, it shows only that the "insert into array" function don´t dictate the array size.
    Where do you need it?
    One solution is to insert a case structure inside the while loop. Insert your code into the true case and an array constant into the false case. Connect a true to your case structure and you have what you want. But remember use a boolean control or a shiftregister value! If you connect a constant, then labview know that this case will never be execute.
    Mike
    Message Edited by MikeS81 on 06-06-2008 01:01 PM
    Attachments:
    Unbenannt1.PNG ‏14 KB

  • Follow-up question about forms and SharePoint Online

    I asked a question about life after InfoPath earlier, and got a good answer:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/fb23b3d9-8a09-4267-aab5-09929f6a3082/life-after-infopath-seeking-advice
    After looking at all of the limitations of SharePoint Online, I'm wondering how developers are dealing with the limitations. Lets say you are asked to develop something that has complex logic, including fetching data from external web services, dynamically
    displaying parts of a process to people depending on role, and ending up with a printable document. In our on-premises environment, InfoPath is well suited to this task, with some code behind for some things. Or, if not using InfoPath, we would use application
    pages and workflow.
    Neither of those are available in SharePoint Online, so what would you do?

    Some things, such as the conditional display of content, can be done via JavaScript. More advanced items, such as integrating external web services would likely require a SharePoint "app". A SharePoint app is essentially a link to a separate site
    that is running an asp.net web app (or PHP, or whatever). This asp.net site can do anything it needs with any web services, or conditional formatting, or anything. Because it's registered as a SharePoint app, it can also call back into the SharePoint site
    and work with data. So, a SharePoint App could present the user with a robust form that simply sends the data back to a SharePoint list. The SharePoint app can also be surfaced on the SharePoint site itself in an iframe, so the user won't know that the form
    is hosted by another server.
    By the way, the ideas behind the app model permeate the entire SharePoint environment: instead of having the SharePoint server itself run all kinds of custom business logic, that workload is handled by other servers, so the SharePoint servers can be focused
    on running the core bits of SharePoint. InfoPath puts a large load on the servers, so it's out.  XSLT list views also put a load on the server, so they're also out. SSRS is an amazingly fantastic tool, but is not supported in the cloud (and there's no
    alternative). Timer jobs, event handlers, workflow, and many other things have been re-architected to take the load off the SharePoint servers.
    Mike G.

  • Is there a way to save state of shift register for initializing next time vi is started?

    Hello all,
    I've a quick question. I have right now....a numeric constant...starts with "1" intially when starting the vi.
    I use this as a shift register on my main while loop....as the counter to use when the user clicks various items on my vi.  This tracks the order the user wants things to happen later.
    It has now occured to me..that the user might not have selected all possible options, before quitting the vi....and might need to restart it...and begin to select other options...needing to keep place form when he left off last.
    Of course, with how I have it set up no...when the vi is started...the counter is reset to "1".  All the objects on the screen, are in the state it was when it was stopped...objects selected prior to quitting are still selected in the proper order...but if the user starts to select anything unselected..rather than starting at the next count..it starts at 1.
    Is there any way, upon quitting..to set the initialization counter to whatever number was last in the shift register..so that when the vi is started again...it will start up where it left off?
    Thank you in advance,
    cayenne

    I want to clarify. I'm assuming you have a config window or something that you open and close, but you don't actually stop the program? However, if this is your main window and you are stoppping the program then restarting, in reality you should have the program actually exit. The user should never have to press the run arrow in an executable to keep it consistent with other windows applications. It's (generally) confusing to an end user if they click the "x" and their program stays open. Then they have to click an arrow to make it start again. 
    CLA, LabVIEW Versions 2010-2013

  • Shift register versus comparison in while loop

    Hello,
    I have a question regarding the "proper" (i.e. cheaper in terms of system ressources, easier to read, etc)  way of testing the first entry in while loop. One way would be by using a shift register another by detecting if the loop iteration is zero (see the exemples attached here).   I am doing some calculations in this loop, typically 300 iterations or so.
    Which way is better ? Are there other (simpler) waysofdoing this ?
    Thanks
    N
    Attachments:
    while_loop1.png ‏54 KB
    while_loop2.png ‏53 KB

    Express vi's are not entirely evil. And the time delay express vi's are harmless. I have found express vi's to be very useful if I'm trying something new. Besides, once you get everything working the way you want it to you can always open the front panel and clean out any extraneous code that might slow things down. Once you have done that it will perform just like you wrote it yourself.
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

  • Question about swapping SIM cards on a Z10

    Hi, everyone, I am a non-Blackberry user who works in IT support.  One of my clients uses a Blackberry and has often asked me very complicated questions about how to do various unusual things with his device.  At the present time, he is considering switching to a Z10, which would be set up using ActiveSync.  He wants to know if he could swap the SIM card without having to go through the setup process again.   My client travels a lot, and wants to use a local SIM card on an upcoming trip to a very remote area.  
    I've not been able to find an answer to this anywhere. 
    This is his exact question: "I just got it from a friend (ATT version) and I am trying to see if I like it enough to switch to it as my primary phone.  Blackberry z10 asks you to sign in with your blackberry world ID when you first set up the phone.  Question: Would you have to do it again if you put a different simm into it?  With iPhone, it makes no difference so long as the device is unlocked—you can then exchange simm cards as often as you want.  Would it be the same with an unlocked blackberry z10 (I know it's not possible with the bold 9900 as System 7 ties your ID to the simm card).  In short, in blackberry z10, could you exchange the US simm for another country's simm without having to wipe the phone,  etc.  "
    If anyone can shed some light on this for me, I'd be very grateful.,  Thanks!

    Hi and Welcome to the Community!
    The key issues are thus:
    Ensuring that the device is truly carrier unlocked
    Ensuring that the specific device model is compatible with the radio frequencies/technologies that the desired carrier uses. There are 4 different Z10 models:
    http://www.bbin.in/en/2013/03/03/4-types-blackberry-z10-models-fits-better/?utm_campaign=4-types-of-...
    If both of those are OK (separate research of the desired carriers would of course be necessary), then it is indeed a simple matter to change carriers. For example, I changed from ATT to TMO by simply changing the SIM...no need to WIPE or anything, and my same BBID came along just fine. You should, however, always obtain a properly-sized SIM card from the carrier -- there are plenty of reports of folks trying to use "cut" SIM cards and experiencing errors.
    With BB10, it's actually simpler than with legacy BBs. Legacy BBs used the BIS service, which required receipt onto the device (from the carrier data network) of Service Books so as to activate the various services that the user subscribed to. When changing carriers, it often could be that a latent Service Book from the prior carrier causes issues when shifting to a different carrier...and that's where WIPING and such came into play, so as to cleanse the device so that the new carrier could deliver all of the proper Service Books to the device. With BB10, there is no BIS, and there are no Service Books...so all of that complication is eliminated.
    But, as always, YMMV.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Question about setup_MITE in the PCI-MIO-16E-1

    I have a quick question about setup_MITE in the PCI-MIO-16E-1. In one of the manuals, it states that if you're using Dell Optiplex GX series for our hardware configuration, is it true we need to re-write the MITE functions to correlate with the hardware? Please if you can clarify what this means, I would really appreciate it. Thank you in advance.

    National Instruments is starting a new newsgroup to provide a forum for customers to discuss register level programming issues and ask questions. This newsgroup is not a direct support channel for register level programming, but may be monitored by National Instruments engineers. Please post you question with additional detail in:
    natinst.public.daq.driver-development.general
    Christian
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Using a shift register to detect input...

    Hi guys,
    I'm creating a LabVIEW VI that needs to be able to detect when a user changes an input. I read a previous post that suggested using clusters and shift registers to compare previous data.
    My question is how do I use shift registers? I've created a shift register on a for loop, but I'm not sure when to compare the "previous" data to the "new" data. Do I need to add an element to the left side and compare it there? Is the right side the output? I'm just not sure how it works. An uploaded example would be nice. Thanks.
    -Mike

    Shift registers are very powerful but difficult to use for the first time.
    The shift register you just created has two "arrows", one on either side of the structure. The arrow to the left is the value from the previous (i:th) iteration and the arrow to the right you have to feed with the (i+1)th value.
    Now, if you want to compare values and look for a change you can compare your old value (the one coming out from the left) with the new value in your for loop. The feed your new value to the right arrow so that it becomes the old value for the next iteration.
    If you have many parameters to compare, clusters are very useful since they make things very compact. If you are comparing clusters, do not forget to change the setting on the comparison to compare aggregates (r
    ight click on it and select that option).
    Also, in most cases you need to set the initial (start) value for your shift register. This is done by feeding the left arrow with the default value from the outside of your loop.
    I attached a simple example, CompareSettings.vi, that shows how it works. Hope this helps. /Mikael"
    Attachments:
    comparesettings.vi ‏32 KB

  • How do i read the Shift register value of a vi which is written in the teststand sequence from labview exe

    Dear All..
    My Qusetion is ... I have a VI in which I can writ the data to shift register and I can read( Differenent cases). I am Running the VI in write mode to write SAY '100' in the shiftreg( VI will be In teststand Sequence) . And I am reading the VI in read mode using Labview. I am getting the data in labview.
    When i conver my Reading Vi which is having that Read/Write vi in to EXE even then the test stand is writing the data to VI is Unable to reflect in labview.
    Please Help me out with some solution.
    Thanks
    bhargav

    I'm confused by your question:
    Are you trying to transfer data from an Exe to TestStand and vice versa?
    Or are you changing existing, working VIs into EXEs and then wondering why they won't behave the same?
    Can you clarify some what your goal is?
    There may be a better way to do what you want.
    Thanks,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Any way to save data in loop without using shift register or feedback loop

    Hello all
    I was thinking, is it possible to save data in a loop to next iteration without the use of a shift register or a feedback loop?
    I need the possibility to reload data within a loop from a lvm file, but I want to use the same data until i load some new ones.
    The reason why I don't want to use the shift register or feedback node is due to speed, even though I am not sure if the shift register
    actually moves all the data from one register to another, or if it is stationary until a change in the data occur.
    The data I want to reuse is medium-large (6 force measurements, 2 pressure, 1 flow channels)of about 10sec data in each file with samplingsrate of 2kHz..
    In my analysis program I have many CPU demanding calculations and 3D graphs, so I just want to minimize the CPU load as much as I can for each part of the
    software..
    I have attached a small VI to explain what I am talking about.
    I now I shouldn't use the express VI, and I am going to change that as well - this is just a proof of concept! 
    Hope you guys can help me understand this shift register better...
    Thanks!
    - Tommy 
    Running LabVIEW 2009 32bit SP1 on Windows 7 64Bit
    Solved!
    Go to Solution.
    Attachments:
    visual.vi ‏34 KB

    tombech wrote:
    [...]The reason why I don't want to use the shift register or feedback node is due to speed[...]
     Tommy,
    shift register are the fastest you can ever get...........
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

Maybe you are looking for

  • Not sure of what cable

    Hi, I have a Intel iMac. I want to use this old Gateway LCD monitor to extend, but I am not sure of what adapter to use. The model number is Gateway FPD 1500, does anyone have any idea what adapter I need? Any help would be apprectiated. Thanks. ~Kai

  • Exchange Server 2013 Standard User CALS

    Hi there we have exchange server 2013 Standard with 300 User CALS installed on Windows Server 2012 R2 Standard. We bought 300 User CALS for Exchange Server 2013 Standard  , do I need to Buy the same amount (300) user CALS for Windows Server 2012 r2 t

  • Error in notification

    hi there, In  trying to design company specific notification,in 1/0tab01-notification 1 ,not able to see the reference object i.e functional location,equipment etc in notification though in screen area   have assigned reference object -005 hope to ge

  • DKU-2 Driver Removal Problem

    Sir, Madame, Comrade I cannot install PC Suite 6.83 over the 6.6 version due to the system's inability to uninstall the DKU-2 cable driver. I have tried several times, but this is all the same. The PC Suite installation process aborts, and the messag

  • FME crashes when using my DV but ok with webcom...

    I'm trying to encode for Ustream.tv some music interviews and concerts and all goes well with the built-in webcam but as soon as I use my DV via Firewire (Canon XH A1s) it lags and crashes. I'm using a brand spanking new HP HDX laptop with dual core