Control the Structure of the event with text file

I'm new relativaly in LabVIEW (experience only about 2 weeks). I am currently control a stepper motor using a structure of the event. Similar to the sample code given by LIFA, I entered my settings how the engine not move away, then press a button on the windows before, and it works this way. I also have other equipment that works as well in LabVIEW, as a transnational step; all components operate individually.

Now, I'm trying to make the more automated system and to ensure that all the different equipment work in the same code. So, I tried to implement a structure of the event using a text as an input file to try to control events. The text file has a table 1 d of numbers going down vertically (only the line numbers change). So, I used a table of index function to take the numbers one by one, use a loop (while loop in this example) to go to the bottom of the column of numbers. However, the event not register the change, even if the indicator shows the value is changing.

Attached, it's my test code and the text file that I use to try to control the structure of the event. Please let me know what I am doing wrong. Thank you.

Oh, now I understand what you tried to say. I'm using a loop and a case structure to activate different events with the entries in the table. I thought case structures and event were the same, but you taught me the event structures are used just for the façade stuff. Thank you all!

Tags: NI Software

Similar Questions

  • Control the event with two controls

    Here's what I have.

    I have two separate loops of time. Inside of each timed loop, I have a structure of the event. Each structure is the trigger by pressing a button each. It works very well.

    However, I would like to add a third button that runs the two structures of the event. I want to do this without creating additional events in each structure. Is it possible to somehow this third button wire to the other two and to trigger both based on the action of the third? I have problems it works.

    Thank you

    Small example

  • How can I add a video iPhone portrait on the right with text on the left?

    Hello

    I'm new to the premier pro and I have had a look online but can't find the instructions on adding a video portrait on the right with text on the left. I found information on add a title on top and using blending modes, but how can I move the iPhone video portrait to the right of the screen to maintain the proportion of the landscape?

    Thank you

    Jess

    Basically, you use the motion in the effect controls panel effect, specifically the balance and Position. The next page has links to video tutorials both on photo in photo workflows:

    Adobe Premiere Pro help. Create common results

  • Controlling the timeline with Touch

    Hello! I use edge animated in adobe dps. I tried to control the timeline with the key (or scrolling) in the forum. Even some alternatives were considered, I have not found the perfect one. It can open so many possibilities as slideshows, Parallax, diagonal textscroll etc.

    I would like to build an extensive animation and control the scenario of scrub/shot with my finger.

    I found something that works, but it seems that directions works in adobe edge host plus. Anyone know how to fix this? Demofiles would be great.

    Here is the solution I found, which does not work on the last leg.

    http://codehandyman.blogspot.de/2011/12/Adobe-edge-animation-controlled-by.html

    And here is the result. Work on ipads in indesign dps:

    http://www.northeastmagic.com/adobeEdge/scrollbar_scrubber/test7.html

    Thank you

    Klaus

    Hey Klaus.

    Oddly, the example of codehandyman you posted don't use no events button at all, but rather slyly relies on the scroll event to control the timeline.

    I've referenced the link codehandyman, and the only change I had to do was to replace each occurrence of "this.element" with "e.currentTarget", in the Stage.scroll event. Thus, on Stage.scroll, this is the code I have (I tweaked a bit to make it more readable):

    var MonCalc = e.currentTarget.scrollLeft/(e.currentTarget.scrollWidth-e.currentTarget.clientWidth);

    var pos = Math.round (calc * sym.getDuration ());

    SYM. Stop (POS);

    The above code essentially the numbers on the scroll position, then figures this ratio depending on the length of the root timeline. This tells us when to jump to the timeline.

    You are referencing your blog link - to stop the scrolling, I had to open "xxx_edge.js" and delete this line:

    ['style', 'overflow', 'auto']

    and replace it with this:

    ['style', 'overflow-y', 'hidden'],

    ['style', 'overflow-x', 'auto']

    Example:

    www.timjaramillo.com/code/Edge/scroll_timeline

    Source:

    www.timjaramillo.com/code/Edge/_source/scroll_timeline.zip

  • Controlling the timeline with Touch and ScrollTop: the combination of the two?

    Hello!

    We try to combine the two scrolling on the edge features:

    (1) scrub the timeline with scrolling (to create Parallax), and

    (2) scroll to the bottom of the page with buttons, using scrollTop

    For cleaning of the timeline, we used excellent control calendar of Tim Jaramillo with key code (found here: http://forums.adobe.com/message/5058756#5058756)

    To scroll to the bottom of the page with buttons, we found excellent Heathrowe scrollTop code (here: http://forums.adobe.com/message/4733382#4733382).

    We do not seem to combine these two methods in a way that works. In my example below, the control, the Timeline with Touch code works fine, but the scrollTop button code does not work.

    Does anyone know how to make a scrub of the timeline, combined with navigation buttons?

    Example: http://www.bartmclaughlin.com/scrollTop/stage-scroll_with_scrollTop_v1.html

    Edge project: https://www.yousendit.com/download/elNLcXl0NEhJMHVFTmNUQw

    Any help much appreciated!

    Bart mclaughlin

    I think in the btn1 and btn2 click Manager you have to scroll the scene rather than the HTML and body

    as

    SYM. $('Stage') .animate ({scrollTop: element.offset () .top}, '800'); in btn1

    and

    SYM. $('Stage') .animate ({scrollTop: element.offset () .top}, '800'); in btn2

    Hope this is useful

  • Change the background color of a region, I can only change the box with text

    Hello. First of all, sorry for my English.

    I created a new model of the region in my application and I want to change the entire background to silver color.
    After reading the forum, I tried this:

    body = background-color: Silver;

    in "attributes in Table form.

    It works, but only the area with text are silver. I want the entire region with a background silver, (like a scratch on the screen, with black labels).

    My region are copied from the region of breadcrump and there the next CEB code:

    < div class = 'wire of Ariane-region' id = "' #REGION_STATIC_ID # ' #REGION_ATTRIBUTES # > #BODY # < / div >"

    I also tried putting < body bgcolor = "gray" > in several places, but never with the same results.

    Another question. I created a theme in my themes of the workspace to play with it, but... where are the files of ccs? they are not in "/ i/themes"... .and as part of the apex I don't see a way to change the footer, and an other things I want to do.

    Published by: Andres Vilallave on February 15, 2012 16:14

    Andres Vilallave wrote:
    Yes!, it works...
    Well, I think I have more visual changes now... (God thank you...)

    Good.

    But I want to learn more about the themes...
    I would like to change the theme 4, "Topaz".
    As you say, I created a copy of the file ' i/themes/theme_4"as"i/themes/my_theme_4 ".

    I have said "+ are not... create new files there as these can be changed by future updates APEX. Create your own theme folder. + ", i.e. to use a different physical location, which is referenced by another virtual folder (depending on the architecture of the Web server used).

    Then I created a new theme based on theme4 in my workspace as "my"Topaz". "" My Topaz"" theme is now available in the repository of the theme in "custom themes.
    Now I can change the templates, etc., but the css files what, image files, etc., are My_Topaz to help? Are ¿where?.
    Guess as you say I need to link "" My Topaz"" theme in the my_theme_4 folder, by assigning files in the models of the apex, how can I I do this?

    The definition of header for each page template in the theme contains elements of binding that reference the URL of the CSS as style sheets:

      
      
      
      
    

    These must be changed to refer to the new URL CSS files:

      
    

    Notice that the page templates use conditional comments to provide additional style sheets with CSS hacks and fixes for broken Microsoft browsers.

    Some other models can also reference image etc. of localities in theme files (although this is less common in the APEX 4.0 + themes).

  • Windows Media player on my machine does not run some AVI files. How can I check what the problem with AVI files. Files are running in other utilities of free ware

    Windows Media player on my machine does not run some AVI files. How can I check what the problem with AVI files. Files are running in other utilities free ware. Also, windows Explorer does not display dimension and other video related information for the file. Y at - it a tool that can indicate what exactly is the problem with the file.

    Ritu

    Hello

    1. you get any error message?

    2. don't you make changes to the computer before the show?

    Please follow the steps from the link below.

    http://support.Microsoft.com/kb/279242

  • Try to download an update of the firmware with a file extension ROM Vista says it's an unrecognized file type

    Title: download original ROM files on Vista

    Try to download an update of the firmware with a file extension ROM Vista says it's an unrecognized file type. Patches?

    You must get the update of the firmware that can handle the type of file the same place ROMA, you got the firmware file.  From what I see, they seem specific to the product updated. http://www.FileInfo.com/extension/ROM if they don't have it, talk to their technical support staff and ask them what type of program is required to install the firmware provided in ROM format and where you can get it.  Vista doesn't have the ability to read a file ROM type  Some software must be added to give this capability.

    Here is an article I read: "various hardware upgrades and emulators use the ROM file extension." A user needs a flash program usually available on the website of the manufacturer of the motherboard. The user must not flashing BIOS unless the user knows that he has the image of his mother. An error or the computer may be turned off when the wrong BIOS image is flashed. "So be very careful here, or you can completely disable your system.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Structure of the event with gray and disabled controls

    I'm working on a data acquisition program that uses the structure of the event to manage the graphic user interface.  I have a 'start logging' button that raises an event when the value changes and starts to collect data.  While collecting data, the program disables and gray on all controls on the front panel except the button "stop logging" that ends a while loop with in the event of data logging.  If this event is active only when you press "stop recording."  There are other events that are triggered by a mouse up/down, action others controls disabled on the front panel.  The problem is that, while the program collect data if you click on one controls disabled and gray that has a mouse up/down, event, the program seems to hang and will not push the button ' stop logging.  I don't know if his attempts to run another event, but he continues to logging data, I just can't stop it.  I have to use the Cancel button to stop the program.

    The real problem is that a control, even when disabled and grayed out, can still trigger a mouse to the high-low event - controlled, it true?  Also, what happens if an event is raised during execution, another event my understanding was that a single event can run at a time.

    Thank you

    Doug

    Doug,

    By reading between the lines, here a bit...  Looks like you have your data collection and logging code in the box to Start Logging event.  If so, this is part of the problem.  No other case of event cannot run until this one is over.  Move data collection and the registration code to a parallel loop.  Have this loop to sit in an inactive state until you press the Start Logging button.  Then, in case for the button change send a command via a queue to the loop of logging and out the case of the event.  The event loop is then immediately ready to respond to the next event.

    Generally the code within a case of event should run quickly, no more than 10s of milliseconds for maybe 100 ms to avoid slow response to another event.

    Look at the producer/consumer (events) design pattern which comes with LV for an example.

    Lynn

  • Can I activate a structure of the event with an another VI control

    I need activate an event structure in a VI with a change of value with an another VI control event. The code is included in the pictures, you can see in this post, and the variable stop is the control that should activate the structure of the event since another VI.

    .

    The code is on other forums of discurssion and is made by Randall Pursley (rpursley8).

    See the link: http://forums.ni.com/ni/board/message?board.id=250&thread.id=43960

    kiftren wrote:

    Hi to determine,

    Sorry, I can´t to open your archives because I use LabVIEW 8.2 and LabVIEW 8.5. Can you give me the image of the code in your screen in one archive .jpeg?

    Thank your for your help to determine.

  • How to manage the structure of the event with two loops

    I have a question about the structure of the user event with 2 buttons?

    key 1: START LOGGING DATA

    key 2: STOP LOGGING DATA

    How do I control my

    structure of the event so that it will work? because now that the loop is save data... I can't stop the loop, when I clicked on buttons.

    super_saiyans wrote:

    the problem with moving it is that I don't have control of the DATA RECORD STARTING?

    Of course, you do.  When you get your press conference button, you say your state machine to move to the State of logging.  You must also make sure that you return to visit the State to wait for the event to check out the events of the stop button.

  • Instead of using the structure of the event with the producer consumer?

    I used the architecture of producer-consumer in the past to control a state machine with the structures of the event.  I'm working now with the basic version of LV that does not include the structure of the event.  Can anyone recommend alternatives to the use of the same architecture in this case?  Thank you, David

    Before the introduction of the structure of the event, the only option was the election.  Control terminals are in a time loop (the producer) with shift registers and a wait, usually about 100ms.  At each iteration of the loop, the control's current value is compared to the previous value.  If it has changed, and then take appropriate action.  Andrey suggested, queues are a good way to pass information between the loops.

    It works for the equivalent of the value change events.  Things like mouse to top or filter events were much more difficult or not possible.

    Lynn

  • Can I use Ctlref in a structure of the event with a mouse to an event?

    I have a large number of controls on a front panel. I use a structure of the event that triggers the movement of a given motor when you press the corresponding button. However, I would like to avoid creating events for identical most of N, so I relied on the use of a mouse down on the front panel event, then retrieve the reference command using the Ctlref node (with gives 'Reference to the control on which the event occurred', according to manual labview) and analyze an array of references to know which engine is supposed to move. However, it seems that this node is not (contrary to what the manual said).

    I found other ways to do what I need (I thought using a table containing details of my controls and the coords in the structure of the event node), but I wanted to know why I can't find this node (that is displayed for the event "value change" for example). I'm using Labview 2013.

    No luck for you. Mouse down on the Panel does not have the refnum control because it does not work on a control. Mouse down on a control has it, and since you can configure the mouse down events on multiple controls in the same case of event, it also provides a refnum of control so that you can still use the order in question.

    This is probably also the question that Jeff might have seen. When you set up multiple events for the same frame that LabVIEW displays only the terminal event that are present in all of these events. Terminals that do not exist in at least a specific event of the multiple events for this image are more selectable.

  • How to stop the While loop in the Structure of the event with the same button?

    Hello

    I have a problem. I want to use a single control to activate an event in a structure of the event and the same control to end a while loop in this case.

    It is possible to use 2 controls to do this, but I need to be alone.

    Thank you

    You should NEVER place while loops inside the case of the event, and it is never necessary to do. Think about it: all you have to do is spin the code. You can easily use the outside while loop for everything. Simply place the code of the loop internal (without the inner loop) inside the case of delay and manipulate the time-out period between a pending finished and the infinite (-1), depending on the State of the Boolean value.

    A very simple example (LV 8.0)

  • Programmatically trigger a structure of the event with the value (signaling) is not responding

    Hey, in my attached program I check if the two steps of translation are in a specific position. If Yes, I want my code to execute a sequence of movements. If this isn't the case, I'm asking the user if he wants contributed from this position anyway. It has three options: Yes, go to load (the specific position) and cancel. If he hits Yes, I am using a property of signal value which should update the controls Boolean true, allowing the sequence. Cancellation and work "to load" perfectly fine, but 'Yes' does not work. I think I need a structure of the event to ahndle the value of the Boolean control 'x' change event, however, the addition of this structure of the event for some reason any even do not allow me to click on the Start button of the procedure.
    Thanks for any help in advance.
    Doug

    Really, you should look into using a State Machine.  You should have really not what happens inside a structure of the event.

    In addition, I would like to use a shift register to store this value instead of a front panel control.

Maybe you are looking for

  • Download of iPad Mini 4

    I will travel to Europe in about two months and I'll be shooting hundreds of photos. -Ideally - this is the workflow that I want to implement, but I don't know if it's possible with the iPad. 1 - Upload photos on iPad with the Apple card reader. 2 -

  • Why can't I get help from you people? Thunderbird is installed, but does not.

    I have followed closely the Thunderbird installation instructions. I am running WinXP pro. Thunderbird is there but does not. I am 78 years old and I need help from you re: install. I'm not paying $$ $to get a computer tech to come to my house and in

  • New Xbox - profile Email

    New Xbox today and my son cannot access his profile to play online. Request by e-mail, then password when he tries. I remember only an email and password I used to put in place years ago. When I go to the xbox live web, it allows me to connect, but t

  • How to: update the hard drive and memory

    Original title: what are the steps to replace my XP hard drive and improve memory? Still use XP. How do they manage the software requirements? I have an external hard drive. How to start the computer after the equipment is replaced? The company I bou

  • T430 NVidia GPU are not not in Device Manager

    Hello - I have a problem with the NVidia NVS 5400 M inside the T430 Thinkpad. I use Windows 8. I don't know exactly how it happened, but the NVidia card isn't more appears in the Device Manager and NVidia driver (both the standard driver from their s