Conflict of flow of data on the front panel

Hello

My vi is almost done, but I still have a problem with the front panel. I think that there is data traffic conflicts in my vi.

When you run my vi, you will see the pop-up window asking you to set a path of file, control devices, selection of data to record and trace. Then, you might want to change the units, turn off all the buttons light and ok to select what data you want to save. Then click on RUN.

The problem is; supposedly all the buttons are on by default, if you disable certain economies or tracing buttons to choose not to save, and then click RUN, after that all the buttons are again even if you have turned off before the race. They must stay off, if you have selected to save. The condition of main data flow is always the same be before running (only light buttons and ok).

Do you have ideas of how to solve this problem?

Thanks in advance

You have what is called a race condition that usually slips in programs that use local variables.  If you look at your first while loop to read in the current value of the 'steam data hand' control and store in a shift register.  After the structure of the event outputs you write this offset value to register in the control and in the process of replacement of the changes that the user can do.

A quick and dirty solution would be to manage the main event to change the value for 'Stream' in the structure of your event to update the shift register whenever the user changes the values in the control.

A better solution would be to get rid of the shift registers and move local variables in the structure of the event.  As long as the option "lock the front until the end of the event" (I'm not sure of the exact wording and I work in the LabVIEW Base at the moment so I can't check) is selected it will ensure that you do not work in a race condition (you know the value cannot change inbetween you value reading, and you update the control).

Even better would be to avoid local variables wherever possible.  This is general advice only and not not something that I can do much more tangible without knowing the details of how you want your application to behave.

Hope this helps,

Simon

Tags: NI Software

Similar Questions

  • Swap sides for the scales on the front panel and containers

    Hi all

    Very simple question here. I want to Exchange on sides of the balance on my Front Panel and specifically DSC container as a pressurized tank.

    It is very easy to do with a waveform table or chart, but seems to be impossible with tanks and reservoirs.

    It would be very convenient, especially for the process of DSC where I try to imitate the flow of process on the front panel and pipes could enter tanks of different sides.

    Thank you!

    Here is a tank with the scale on the right. Just took a few minutes with the control editor.

  • How to add a record button on the front panel to save waveform data

    Hi, I'm new kind of LabVIEW and I worked on a code for an agilent oscilloscope communicate via GPIB and so far it works well on the collection of these two analog channels one by one, "Not UNLIMITED" but it does the trick (vpp, Vrms, frequency, etc.).  I've added the feature to add data to a .csv file waveform (problem: opens a dialog box until the user gathers all the data.) Solution: I want the user to save the. File CSV whenever he wants to use later on the front panel). I've added another feature to get a snapshot of the curve waveform (problem: opens a dialog box.) Solution: I want the user to save the JPEG file, whenever he wants to take a snapshot ("take snapshot" button on the front panel)).  I work with the agilent hp54645d driver. I have attached my code, if someone can tell me please how do I do this (maybe cabling and structures are solutions do not know). Thank you in advance.

    I would recommend adding a case structure just around the two record VI and a button to check the condition of the structure of each case. If you want a button to control both save functions you can put the two record functions in the same structure of business controlled by a single button. You are right in saying that the loop will cause your code runs until the stop button is pressed or until the stop condition is met. If you are wanting the while loop to stop once the recorded information you can use the button that you use to control structures case to also stop the while loop. I hope this information helps.

  • pause button on the front panel

    Hello.

    I try to run synchronous, continuous analog conversion of 2 cards of PXI-6259, and capture the State of the several digital at the same time.  I managed to get everything is configured and working properly, however I have a problem if the user presses the button "pause" on the front panel.

    From what I can tell, acquisitions of data will continue to run in the background (I'm using a task DAQmx and stop was never called).  For my analog inputs, this is not a problem.  However, the digital inputs always generate a ' 200010 - on-board memory overflow error. Due to the limitations of system and/or the bandwidth of the bus, the driver could not read data the device enough fast to follow the flow of the unit. »

    Is it possible to register for an event of user interface that is generated when the user presses the button "pause", so that I can stop the acquisitoin of data before the error occurs?

    Thanks in advance,

    -Rich

    NormPgh wrote:

    I thought to add my own button "pause" / control, but my users have become accustomed to hitting the pause on the front panel button, and it will be difficult to get them to change.  I guess that the error would remind them :-)

    Well, that's easy to fix - change the appearance of window properties if the toolbar is not visible, while the code runs, and there will be a pause button for your users to click.

    Many of our applications have a function somewhat like this.  My colleague implementation in a very simple way: he put the graphical indicator within a box structure.  Connect a Boolean control "pause" to the structure of the case, and that's it.  Data acquisition runs constantly but will only update the chart when the pause button is false.  This approach might work for you?

  • How to make non-visible control on the Front Panel appear at Design time?

    I have a few controls on the front whose visibility is changed (on or off) at run time. The problem is that if I stop the Run time, the visibility of the control remains in the running in design mode state. So I am not able to see or find the control to make changes in design mode.

    How can I make all the visible front-panel controls, or find and make it visible to a control on the front whose visibility has False?

    Thank you.

    It is documented in the help of LabVIEW.

    Hidden front panel display


    Perform the following steps to display a hidden front control or indicator. You can also hide the indicators and controls on the front panel.

    1. Find the terminal block schema for the object. "If you have multiple devices with the same type of data, right click on the terminals and select visible elements" Label in the context menu. Find the object with the label that corresponds to the object hidden façade.

    2. Right-click in the Terminal, and then select Show Control context menu if the object is a control or indicator to show if the object is an indicator.

    You can also use the Visible property to display the controls and indicators by program.

    You can also view all hidden front panel controls and indicators.

    Path: Fundamentals-> build the façade-> how-to--> configure the objects-> display on front panel of the façade hidden object.

  • How can I insert a jpeg image in the front panel

    Hello

    I'm new to labview and have written a vi using a data logger NI USB-6008 reading from a sensor that performs a calculation and then displays a value. I am trying to put the logo of our company on the front screen when running, but can't work out how to do it. The logo is a jpeg file.

    I use the trial version 2010.

    Thank you

    Andy

    Hello

    Drag / move your jpeg file from windows Explorer to the front panel of your VI should work.

    Hope this helps

  • Requirements Gateway - objects on the front panel

    Hello

    I'm about to start using the gateway requirements and I have a few questions to help me go...

    1. If I create a vi on a machine without RG installed and then move it to a machine with the Receiver General installed, will be always recognized tags?

    2 - RG recognize the syntax [covers XX] if it's on a façade and not the block diagram?

    Thanks for your help.

    Darren.

    I know a little RG.

    1. Yes.

    2 RG will scan the three areas of a VI for references: VI Description, control/indicator Description and diagram commentary (free labels). That's why he won't see a reference on the front panel (for example data text or text of the label or a caption).

  • Controls on the front panel does not work

    In the attached vi (I've stripped down to simplify things), I have a problem with the controls on the front panel does not when you click on the control to acquire it. It of probably something obvious but got me to loss.

    Thank you

    It is probably because you are in the State to acquire until you're done absorbing.  Meanwhile, none of your other events can run.  You have events to acquire: let the mouse.  There is a setting for "Panel before locking up the end of the occurrence of the event.  Given that the event cannot process until your State acquisition is completed, the façade will be locked.

    I would recommend another loop for the acquisition of your data.

  • Outsourcing of the controls on the front panel for a panel floating Subvi

    Hello!

    I already found a few similar topics, but I still don't know which is the best way to solve my problem. I will try to describe my problem in detail first: I have a main VI that acquires data from a device and displays these data in a large waveform graph. I have also a few controls on the front panel to control my device. First, I placed all of these device controls (digital, sliders, etc.) as well as the chart inside the front of my main VI. However, due to limited screen space now I would like to make the largest possible graph and so decided to "outsource" some controls out of the main façade of VI to several panels front-end Subvi.

    I would then press a button in my main VI and it would open the Panel before the floating of the Sub - VI corresponding with outsourced controls when required. However, everything must be absolutely transparent. It is important that floating panels to run in parallel with my main VI, that is the main VI must continue to operate. That way I'll have my data constantly updated in the chart in my main VI while I can change some settings of the device through the controls placed in my SubVIs. These changes will be immediately applied (for example as soon as the main VI calls this slot - VI in its main loop).

    It is important to the visibility of the outsourced optional control panel, i.e. If the Subvi front panel opens with the user that it will pop up and the user will be able to change the paramers device using the. But then the user should be able to close the front panel (hide) the Subvi to see the entire chart again without the Panel floating in front of her (of course control values must be maintained when the Subvi front is not visible). Then the new button is pressed in the main VI that opens the dialog box not modal Subvi containing controls and it can redefine new values of device.

    Advice how to do this are welcome. I don't know if I need something complex like VI server or asynchronous screws or I can solve my problem by changing some settings simple Subvi? Thank you in advance for your help!

    Best regards

    Anguel

    AStankov wrote:

    How about using a global variable for the VI at VI communication instead of a queue?

    A global variable will, also.  Write you in one place and read the value frequently to somewhere else (in the election). So you can see easily to any value change.  However, mark will waste a lot of time processor.  This is why I have proposed to use a queue or a notification utility.

    AStankov wrote:

    Would be the last option that you mentioned, i.e. finish the Subvi at each change of value, I would keep the Subvi front open as needed until things from the user to hide? Or would there be inevitable flickering Panel or any other drawbacks?

    Yes, the Subvi can keep the façade open until the user closes. And there should be no flickering.  The biggest drawback I see right now is that when you expect an event in the Subvi, the mainVI cannot stop without talking to the Subvi to stop.  So you'll need another channel of communication (again a global, a queue, a declarant or an event) to tell the Subvi that she must stop.

  • HP EliteDesk 800 G2 Small Form: The front panel audio connector - this only made type to use for headphones and microphone

    Hello

    I am trying to determine what type of audio 3.5 mm plug to put into the connector on the front panel for the use of a headset to make video communications.

    could be - sleeve, ring and end cap (mono audio and microphone)

    or

    could be - sleeve, ring, ring and tip (stereo sound and microphone)

    Having read through the manuals and nothing is said on the type to use.

    Hello world

    Just plugged the connector 4 poles on my headset combination for my mobile phone (cellular) and the box of pop - up asked me to select headset or microphone - no selection for both.

    Looks like the right sleeve is for headphones only, and the left one is for headphones or micro - selectable by the user and not the two on a single sheet.

    Everything explained by the practice - but not the paperwork in the manuals.

    #5 for microphone or headset - menu popup is displayed after you insert a 3.5 mm plug to select that one but not both at the same time.  (So I can't use my headset to phone)

    Thank you

    Son

  • WANT 411c: MFP ENVY 411c lights on the front panel

    I find anywhere a note detailing the two LEDs on the front panel of the printer.  Of course, the left is the power light and the Start button / stop.  The other, 1/2 "to the right, has an icon as the icon of WiFi or wireless, or whatever it may be as an antenna with a radiating signal left and right of it.  What is this for?  It seems that there is a hole below and to the right of the symbol, but nothing ever shows up.  I turned off the wireless and turn it back on and or State shows a light here.  I reinstalled the software checks to see if that mattered and it made no difference.  I also unplugged the router and the printer, and that has not changed anything. It is connected to my wireless network and works very well.  What this has to do with some additional services such as ePrint?  I just lost some of them September 1, 2016.  Perhaps the only light when something just one of them?

    Hello

    That your work as expected wireless connection, there no problem with the wireless printer, just with his lamp wireless card.

    The lamp to indicate the wireless connection is turned on and must turn on once connected wireless.

    They have nothing to do with ePrint or any Web service, it must turn on once connected to a local wireless network.

    As you mentioned that you are connected and the printer maintain a wireless connection, it's probably just a blown bulb.

  • Presentation of connector to the front panel DC7700

    Hello

    Cannot find the necessary schema in the database to support HP I hope someone on the forum can direct me to the table of connector on the front panel of the system (format minitour Convertible) DC7700 Board; It is available to the pins that tells me where to connect the various switches, LEDs etc on a new case.

    Any advice welcome.

    Peter

    FOUND IT!... in a previous post of the forum [see '' info DC 7700 Convertible Minitowers (CMT) motherboard?']  Among other things - who - shows that I had not scanned the tech Ref guide closley enough!  ;~[

    And thank you "mdscole" to highlight the trail.

    ;~) !!

  • e9180f: removal of the front panel? e9180f

    Hello, I need to clean my power swith (on the upper edge of the front panel) due to a spill of food products.  I have a side removed by removing a screw in the back and then dragging to the rear of the side panel. I don't remember if I already had the cabinet apart one more than this. The front panel can break, but I fear I will "break the BAD thing. I'm sure that WD - 40 or other cleaner used by switch electronic only should be OK. Thank you all for help.

    Please see HP document "remove the front cover HP Pavilion elite e9000, HPE-100 series desktop computers" for instructions on removal and replacement of the cover.

    If you have any other questions, feel free to ask.

    Please click the 'Thumbs Up' white LAURELS to show your appreciation

  • Satellite A200-1N1: "Satellite" LED on the front panel does not light up

    Hi people!

    I noticed that my LED with the word "Satellite" on the front panel lights.

    You have all the hypotheses on the causes?

    Hi Maresha,

    The front 'logo' LED is enabled or disabled using a BIOS "Display front Logo" option that can be set on IT or OFF you need. Access your BIOS settings (F2 at startup) and check that this setting is set to 'ON '.

    Kind regards

  • The front panel ThinkCentre M81 connector pinout

    I have a ThinkCentre M81. I am currently trying to put the guts of it in another case, so that I can add some more to it. I checked all the guides I can find on Lenovo's Support site and they show only the location of the connector and how repalce the façade.

    I try to connect the connections for the front panel ATX standard for my motherboard M81, which I'm having trouble with, reason for the connector of the Panel before Lenovo comes to be a big connector.

    I wonder if this information is a resource that I missed somewhere, or if I have to trace the wires.

    It is not your model, but maybe they are similar:

    http://forums.Lenovo.com/T5/ThinkCentre-A-E-M-S-series/ThinkCentre-A60-front-panels-power-audio-and-...

Maybe you are looking for

  • What is the best SSD for a mid 2010 17 "macbook pro?

    What is the best SSD for a mid 2010 17 "macbook pro?

  • Satellite L750 - very slow internet

    Hello I bought a new toshiba L750 and Wi - Fi connection is very slow (almost useless). I have a sony 5 years, sitting next to him using the same wireless connection and it is much faster (pages take seconds on sony, toshiba minutes). It must be an i

  • HP Compaq 6000 Pro SFF Win 7 Pro 64-bit

    Need help installing RAM. 2 GB PC #-10600U 1333 Mhz supplied with computer. I try to install Crucial 8 GB DDR3 1333 mhz p/n ct102464ba1339.c16fedI put the new key in the black slot and the jury returns 5 beeps and a red front end light. I tried that,

  • How our email addresses receive the spam and phishing lists?

    I usually had 2 or 3 phishing spam suspicious, type spam e-mails, but all of a sudden, I get about 23 to 26 per day.  Also, when you click to see the source, how find you it among all the other computer language. Thank you.

  • BlackBerry phone App Native Z10 corrupt

    Native phone app of my Z10 has been corrupted - on the side, does not scroll to the start/end call button, keypad only partially visible, fonts stripped, etc..  Is there a way I can fix this without nuking the whole OS?