Update Variables in a Structure of business

Hey guys,.

So a little background first. I try to control the speed of an actuator with a controller with LabVIEW. It is much more complicated that I'll explain, so I'm not going to my zip code. If you need more information, please let me know.

Right now, I have current speed output in my system. I have this comparison at a desired speed. What I wanted to do was to say if the current speed is less than the desired speed, inflating the current operation of the actuator. If it is greater than the desired speed, lower the current. The idea here is to get the current supplied to an equilbrium point that will cause the actuator to move to the desired speed.

My original thought was to use a structure of case with shift registers to update the power supplied... until I discovered that you can not use shift with a structure in case registers. So my question for those of you who are much more experienced with LabVIEW is what is the best way to achieve this effect?

Thanks in advance!

Shift registers on this structure has the diagram in which lives the structure box.

Or a driving force for this control action.

Tags: NI Software

Similar Questions

  • Retrieve a variable from within a structure of business

    Hello! I am fairly new to the wonderful world of Labview. I started with the reading of most of the tutorials here and found a few basics. However, I simply don't know how to fix my latest:

    This VI is reading values from the pressure of two different instruments (labeled GPT and DPG). The first one (TPG) cannot be read, the value of the DPG is used to control the State of an event in the intake system. The idea is, that the wind opens if the pressure GET too high (P > P_max): if it's the tiny structure is 'real' and the "open wind" command is sent ('[...] box on '). The case of 'false' is empty, so the vent remains open until the GET pressure too low (in uppercase selection): If P

    This is the part that works!

    However: I want to get the time it takes from the command 'close the event' until the command "open wind" (hence the structure of tiny becoming 'real' until the upper structure is "true") and record the time spent in a file. The problem is twofold:

    (1) two cases 'true' are 'true' for more of a tick. It usually takes like ticks 4 and 5 until the vent open/closed led to a change in pressure that makes the 'false' condition once again, if I get the timestamps of 4-5 every time that one of the cases is 'true '. What I actually need is tantamount to a ' lock when you press on "initialize the timestamps, so I get a timestamp for 'close' and the other for the command 'open' for each cycle. This is also true for the order to open/close the vent system: he really needs only to send ocne, not 4 - 5 times in a row, although it does not hurt the system.

    (2) I do not really get to use timestamps to subtract and thus get the time between the two: I tunnel the timestamp of the upper structure in the bass (with ' use default if unwired ") to subtract, but since the upper case is always 'false' when the lower"true"I always get a '0' of the capital letter. I think the main question is: How can I retrieve a variable (timestamp) go in a case to use it for the most part while loop?

    I would be grateful any advice I could get on it. I also realize that this is probably a very inelegant way of doing this in labview, so if you have any suggestions on the 'better' do, I'd be happy to also implement those!

    Thank you very much!

    You must keep the two Boolean values of the case in a register to shift, in this way, you can compare the value of the new and final. If they are different, you have a signal change and use Get millisecond (in one case) to record a start time. You can also combine Boolean both in a table and use the table to the number. This way you can have a case structure that differs between Raising flank, flank Falling, high and low, and start and finish on time, calculate the difference and write to a log file, if any.

    /Y

  • Event structure vs business structure?

    I'm developing an application that can be fairly entered user based... a lot of command buttons Boolean to do different things.

    In the past, I was able to avoid the event structures "change value" and went instead with a while loop, stacked sequence and series of structures of the case. After, I decided that it was a terrible idea. This time, I intend to build an array from a Boolean, convert it to a number and feed it in to a unique business structure. This will give me the ability to add cases for different combinations of the Boolean being pressed.

    I guess the question is: what is the best way to do something like that?  Does have advantages over the other?

    Edit: I was not clear.  I would like to a comparison between the method of structure of event 'change of value', and just feeding into a table-> structure of the case.  I also fear that with the bool-> structure table affair I'll run problems where I find myself with too much control variable and the value of the resultant becomes ugly number very quickly. The application has several buttons... then, finally, save, load, several different configure configuration buttons etc.

    Thank you!

    Aalenox wrote:

    I guess I could do two separate loops running simultaneously.

    ^ ^ ^ THIS!

    Search for architecture producer consumer

  • manipulation of refreshment of the variables within a structure of the event?

    Hi all

    Here I have my problem: I implemented in a data visualization tool, a button to get the updated file.

    But as the mail application provides new files every 2-5 seconds, I wanted to also apply a function to auto-refresh, so that the file is retrieved every XX seconds.

    I've tried several, solution workaround naïve perhaps, but the problem is that when I start the "auto-refresh", I can't handle anything else in the Control Panel, and I can't change the value of the "automatic update control ' because no doubt... He's waiting. Please find attached the photo.

    What Miss me?

    Thanks in advance,

    Edo

    Hey Edo,

    You can use the event to wait for it. Do not use a wait within a structure of the event function.

    Mike

  • Cannot auto index from a for loop through a structure of business output

    I have a loop nested in a case structure, and outside the case, the structure is written to measure Vi. at each iteration of the loop for, I am trying to send data to writing custom Vi by using a tunnel with automatic indexing enabled. But writing custom Vi saw the release of the latest iteration of the loop. Is happening because I try automatic indexing on thanks to a structure of matter? How do you set up business structures to automatic alow to indexing?

    The loop passed out all the data in the form of a table (a row/iteration) 2D and add it to the file. However, your scalar indicator 'Output average SM' will not show the value of the last inner iteration. If you want to see all sequence values, move the indicator in the innermost loop.

    Also erase you the previous errors in each iteration, so you won't see any errors.

    As a general rule, you have far too much code duplication. For example, your inner loops share a huge amount of code. Everything that needs to be in the structure of case is code that is different. Here's how you could simplify it. (it of just a project and probably has errors).

    There are also 'model boom' that you can use to simplify things a lot more.

  • Cannot use Global Variable in the Structure of the event

    I'm using LabVIEW 2009.

    In my LabView project, I have a global Boolean variable called EStop. I can read and write the global variable. If I double click on the global variable, it takes me to EStop.vi which includes a text button. EStop.vi is part of my project.

    In one of my report, I have a Structure of the event. If I go to one of the event handlers in this case Structure and right click and select Add event, I get a list of possible events. But this list does not EStop or an EStop events.

    I would like to add an event to EStop case: changed value.

    Why I can not add to a case of events events that include events on Global Variables as value changed?

    How can I add EStop: event changed my structure of the event value.


  • While the loop does not stop within a structure of business

    Hi all

    I have a business structure that works an engine to a certain PWM when my metal detector does not give an amount greater than the threshold that is ' false '. The motor is controlled by a PI controller so a while loop is used inside the false state. When my metal detector exceeds the threshold I want the "true state" to perform but which does not occur. the entire program is a while loop which aims essentially to maintain the operation of the metal detector. How can I make the State of the switch works.

    Once you get the code is trapped inside the inside while loop, it will never be a Boolean wire change because change is outside. All you need is a loop that contains a structure of housing. Run your program with execution highlighting to get a better understanding of the flow of data.

  • Changing Variables in the Structure of the case?

    Hi all

    I have a box structure. Depending on whether the case is t/f I would change the value of two variables. If I put two variables in the real part of the strcture case that they may not be in the wrong part. How would assign values outside the structure of matter? Could I refer to the time of their numeorus in different cases? Thank you.

    So, something like that?

  • When I try to update my applications I get a busy cursor

    When I start the CC application on my laptop or desktop all I get is a busy cursor so I can't update my applications

    I am running Mac on Yosemite

    Any ideas?

    Chris

    Hi Chris,

    Please update the creative cloud applications:

    https://helpx.Adobe.com/creative-cloud/help/manage-apps-services-desktop.html

    I hope this helps.

    Concerning

    Megha Rawat

  • Update variable essbase whose date of the BONE

    Hi all

    Is it possible to update my substitution variables according to the date of the operating system? I try to avoid some of the manual processes involved in maintaining the application. I'm looking for solutions from Hyperion.

    Any help is appreciated.

    Thank you
    KK

    It's not a way to do this within the Hyperion, but it's pretty simple to write an external process (korn or bash for Unix, bat or vba for windows) to read the date system, then appropirately set a with a call from shell maxl subvar.

    Robert

  • Update with Decode and Dates of business statement

    Hi all

    I need to write a statement of up to DATE using the date of business rule. In general, the due date is 30 days from the date of payment. If the due date falls on a Saturday or Sunday then the term of the loan is 32 days.
    I know that to test a day of week, I would need to use the function to_char in Oracle with the format of a '. I did some research and found that to test what the week falls on November 12, 2007, I would need to use the expression to_char('12-NOV-2007','D'). This function returns a number between 1 and 7. 1 represents Sunday, 2 Monday,..., 7 Saturday.

    What I really would need to do, is to write a single UPDATE statement using an expression with the Decode function and to_Char function:
    UPDATE book_trans SET due_dte = expression

    These are operations that will need to be updated:
    ISBN 0-07-225790-3 retrieved on November 15, 2007 per employee 101 (book_trans_id = 1)
    ISBN 0-07-225790-3 retrieved on November 12, 2007 by employee 151 (book_trans_id = 2)
    ISBN 0-201-69471-9 retrieved on 14 November 2007 by employee 175 (book_trans_id = 3)
    ISBN 0-12-369379-9 checked on November 16, 2007 by employee 201(book_trans_id=4)

    Manually, I calculated the maturity dte and writes the update to each book_trans_id statement:

    UPDATE book_trans SET due_dte is 17-dec-07' WHERE book_trans_id = 1;.
    UPDATE book_trans SET due_dte is 12-dec-07' WHERE book_trans_id = 2;.
    UPDATE book_trans SET due_dte is 14-dec-07' WHERE book_trans_id = 3;.
    UPDATE book_trans SET due_dte is 18-dec-07' WHERE book_trans_id = 4;.

    As you can see, it is very heavy and I just want to know how to integrate everything into a single Update statement:
    UPDATE book_trans SET due_dte = expression
    So if a due date falls on Saturday or Sunday, the loan period 32 days; day of week, length of the loan is 30 days.

    Advice or assistance will be greatly appreciated. Thank you!
    due_date := checkout_date + 30 + decode(to_char(checkout_date + 30,'DY'),'SAT',2,'SUN',1,0)
    

    Concerning

    Etbin

  • to select a structure from business lines, I had 4 ranges IE 0 to 1000, 1001 to 5000,5001 to 15000,15001 to 30000. Here, my Question is how can I write code to select a range of them rendomly

    Hi please answer my question...

    GERD is the best way to go.  To clearify, you can create a range for a case in a case Structure using "..".  Then "0.1000" run this case for all numbers from 0 to 1000 inclusive.  But also note that the structure of the case does not exactly work with floating point numbers.  It works with integers.  When wire you a floating point for the case selector, it converts it to an integer.  It's just something to keep in mind.

  • Problem with a structure of business

    I have the following problem:

    I want the structure of the REAL of the largest structure case case to start only when I go through the button and activate the TRUE position. I have observed with the tool probe as the structure is always run in backgroun even if a case is false. I want to start from the first position (the default case) the structure of cases each time I'll go through the button. I hope I made myself clear. Thank you

    Here's what I had in mind.

  • Automatic update of Windows for my Vista Business hung on Jan 6, 10. He tried to uninstall automatically... now says that I have to reinstall Windows. Cannot access the Internet, cannot restore, can't do anything

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: How to restore?

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    http://Windows.Microsoft.com/en-us/Windows/help/install-reinstall-uninstall

    FYI
    http://Windows.Microsoft.com/en-us/Windows-Vista/installing-and-reinstalling-Windows-Vista#section_3
    Reinstall Windows Vista when you want to restore the default Windows settings or when you are having problems with Windows and that you need to reinstall it by performing a clean installation. TaurArian [MVP] 2005-2010 - Update Services

  • I want to download an update of Vists Home Premium to business/professional Suggestions and 'How-to' would be appreciated

    I am computer illiterate, where the help required

    Vista Home Premium to Vista Business is NOT an upgrade path.

    You will need to purchase a FULL version / license of Vista professional and do a clean install of it.

    How to do a clean install:

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    Save all data, because it will be lost during a clean installation.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • Laptop Adapter warranty

    Adapter PC laptop covers the same period of the guarantee that the laptop?

  • Pavillion g6: installation of Windows 7 Home Premium

    Hello. I want to install Windows 7, but Windows 10 won't let me not go back. I can not find anywhere the ISO. On the Microsoft Web site, when I enter the product key that I have download the ISO, it says I have an OEM and I need to contact the manufa

  • System File Checker does not seem to fix corrupt files.

    I ran sfc/scannow and at the end he said he found and repair corrupt files. However if I run a second or third or 4th time it always says the same thing as if corrupted files were not repaired.

  • HP Pavilion Volume Touch-Pad don't DO NOT WORK. NO SOUND

    HP Pavilion Volume Touch-Pad don't DO NOT WORK I have a HP Pavilion dv3t - 2000, Windows Vista-based computer. Touchpad volume above, that the keyboard does not work properly (it there is no sound coming out of the speakers or the headphones), if you

  • Problems with the software download Cloud on 2nd computer.

    HelloI told to the cloud (Studnet package). I use all the software that I downloaded in my office iMAC. However, when I try to use the same software on my laptop, I am only able to install Photoshop and Lightroom. All others are permitted only on a t