How to slow an indicator's update rate

Hello
I'm having problems getting a Labview application to run reliably. The pc on which hosts the application reboots itself every few days, with the system log reporting that it has recovered from a bugcheck.
So I'm trying to reduce the workload on the cpu and hoping that that this will improve the pc's reliability. One of things I've been advised to try is slowing the update rates of certain indicators on the user interface. However I'm struggling to find a way to do this.
Attached is a very simplified version of my vi inwhich I have tried to make the indicator update once per second by using parallel loop and a local variable. I can't get this to work. Can anyone advise a better way to get the indicator to update slowly please?
Thanks
Attachments:
Slow Indicator Update.png ‏76 KB
Slow Indicator Update.vi ‏13 KB

LabVIEW is a data flow language, so the loop to the top right will not get executed until the previous loop, which it is connected to by the error cluster wire, finishes, which it only does on an error, which (not looking at the diagram right now, so I have forgotten) may cause the "second loop" to not execute. The display loop, a timed loop set to 1000Hz, or an update rate of 1 mS, will update the display. Writing to a local variable is like writing to the actual indicator connection. So, even if the second loop is running, the bottom loop overrides it. Try putting the data in the bottom loop on a shift register, then run a case statement off of a timer that "samples" the shift register and is connected to the display terminal, eliminating the second top loop and all writes to the local variable.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion

Similar Messages

  • How fast will the NI 6723 update 32 channels using LabView

    How does one figure up the updata rate? Is LV Real Time needed to update 32 channels within the microsecond range?

    You shouldn't need to use LabVIEW Real Time to achieve 32 channel updates within the microsecond range. The 6723 manual provides two specifications for maximum update rate on 32 channels. If you are using the onboard FIFO = 204 kS/s. Using Host PC Memory = 45 kS/s. Either of these update rates should be fine for you. These numbers can change however depending on bus activity.
    Jared A

  • Can anyone tell me how to slow down a commerical track in Garage Band 10.00.  I was able to do it quite easily before I updated, but now find I am unable to do it.  Would be grateful for any help

    Can anyone tell me how to slow down a commercial track in Garage band 10.00  I was able to do this in the earlier version of Garage Band quite easily and it is a good tool for being able to teach new dances, but I find I am unable to do it in the new version, which has just been updated.  I would be grateful for any help.

    Just found it.
    Select your track with song imported from iTunes, open the Track Editor window, and in the head of the track editor  and press the "Flex" marker. Make sure "Enable Flex" is set,
    Then change the tempo of your project.

  • How to make Firefox to never update that slow custom look since FF 29?

    How to make Firefox to never update that slow custom look since FF 29? How to change windows installation and ubuntu installation so they never update after FF 28 witch was last normal speed normal browser?
    Hello. I can easy remove on Windows FF 29 or FF 30 and its slower on fast computer. But its affected by millions of users. With FF 28 it was allways fast.
    Why fast? I dont know but its SLOW Now any version after FF 28.
    Since FF 29 FF loads and hangs very very slow each time loading, starting, or changing tabs. It is making problem for everyone and now everyone calls with help- "why computer is slow.. oh its FF? Chrome? Chrome was slow but now its not the slowest one?"
    Very colorfull Example- one comp is 10" and its very very very very low specs. So it wont run at all.
    Now on small comp we can try linux and FF BUT no matter what OS just couldnt get back with any plugins back normal speed. Since FF 29 its very very very slow and that needs to have a solution. Today came update and still unneded custom menu button and its slowness hasnt been removed (unnoticed) so it needs a fix so it works for people who are not just for browsing internet buying new computer and cant get any faster speed then Chrome since now theres no FF anymore.
    SO- How to do that on Windows and Linux- installing FF 28 and making it never upgrade
    OR even better- Making a package that already has this update disbled setting ON?
    p.s. Should you first ask people how they like slow browsers before making fast one to a slow one?
    p.p.s. i dont get how menu could be added by thouse who need it as an add-on ass allways and not presuring everyone who never touches any button.
    p.p.p.s. your business was beeing neutral ngo making browser for people and not for making cloged systems so new computers could be sold by some company advice or infiltrated mole who will suggest such unneded feature as any other addons, but sticking it in for everyone.

    Hello,
    You can download version 28 from here:
    https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/28.0/
    Also, you'll have to disable auto updates to remain with version 28 by following the steps described in this support article:
    https://support.mozilla.org/en-US/kb/advanced-settings-browsing-network-updates-encryption#w_update-tab

  • How to generate a waveform (with changeable update rate and sample) with USB 6008

    Apologize about my awful English.
    In Tradition DAQ I can set different update rate with "AO Start" vi.
    Transform into USB-6008 device things turn into quite different.
    I don't know which vi I can setup update rate.
    Is there any example for this.
    THX a lot!

    Hello D.
    To use the USB-6008, you need to download DAQmx Base driver from the web at http://digital.ni.com/softlib.nsf/websearch/CE3686A8D5B0CEDC86256FFD007C9C4A?opendocument&node=132070_US .
    The driver will install with example programs that you can access by going to Start->Pograms->National Instruments->DAQmxBase->Examples. You new to have LabVIEW 7.x to use this driver.
    SergesL

  • HT6114 My iMac seems to have frozen during the update- how long should I expect the update to take? The 'installing software update' bar is still showing itself working but has been stuck in the same position for over an hour.

    My iMac seems to have frozen during the update- how long should I expect the update to take? The 'installing software update' bar is still showing itself working but has been stuck in the same position for over an hour. Any thoughts?

    Update2: There is something very wrong with wireless on mountain lion recovery. I don't know what the problem is, but this link may explain:
    http://osxdaily.com/2012/08/10/os-x-mountain-lion-10-8-1-beta-released-for-dev-t esting-may-include-wi-fi-fix/
    Wireless recovery would start out with over 25 hours estimated and kept on failing. It turns out to be a two step process of downloading a few Mbytes then a 4Gbyte .dmg file, but I couldn't even download the Mbyte file. I bought the thunderbolt to gigabit ethernet adapter, plugged it in, restarted recovery and download of a little more than 4Gbytes took less than an hour. My limiting factor was probably comcast home internet rate of 12Mbps. The wi-fi wireless connection should be able to do over 100Mbps, so wireless shouldn't be much slower than wired, except wi-fi wireless is broken. Now that ML is installed and updated, wi-fi seems fine now, as I am using it right now, but I haven't tried downloading a big file yet.
    Don't use wi-fi wireless for Mountain Lion recovery.

  • Lookout OPC Client – Asynchronous I/O and Update Rate serious problems (Sequence of data)

    I am using the Lookout OPCClient driver to connect to AB PLCs (EtherNet/IP protocol) and power measurement equipment (Modbus TCP protocol). The OPC server is the NI OPC Servers. The data that are read out from PLCs and PMs are energy meter readings, energy counters, power, voltage, current, frequency, power factor and el. energy quality measurements (THD). That energy meter readings are being stored in SQL database.
    I am experiencing a serious problem regarding the accuracy of the meter readings. Several times per day, randomly, meter readings are losing the time sequence. For example, sequence is: 167, after few seconds 165, 166.  In other words, present value followed by two previous old values. That generates a serious problem in our application that is expecting a naturally rising sequence of counter values.
    Analyzing further, I isolated the problem to the connection between Lookout OPCClient and OPC Server. I made a simple application in Lookout 6.7 (opcproc.lkp, attached) with OPCClient parameters: NIOPCServers, OPC2, Asynchronus I/O, Update rate: 10000, Deadband: 0.0, that is reading just one tag from NI OPC Servers demo application (simdemo.opf).
    By using OPC diagnostic tool from NI OPC Servers I record the sequence of OPC requests and responses.  I found out that OPCClient sends every 2.5 sec “IOPCAsyncIO2::Refresh2()” call that is request for refreshing of all items in one OPC group. Few milliseconds later OPC Sever responds with callback function “IOPCDataCallback:: OnDataChange()(Device Refresh)” that actually refresh the data.
    This periodic sequence is intrinsic to the OPCClient and cannot be disabled or changed (by my knowledge).  This sequence is periodically interrupted by “IOPCDataCallback:: OnDataChange()” caused by update rate parameter of OPCClient (client is subscribed to server for periodic update of changed items).
    In the case of demo application on every 4 refresh callbacks caused by refresh requests (2.5 sec) there is one update subscription callback determined by Update rate (10 sec).
    QUESTION 1:
    What is the purpose of update sequence and update rate when we have every 2.5 sec fresh values?
    PROBLEM
    The problem arises when we have a large number of items in OPC group. In that case the OPC Server starts to queue refresh requests because they cannot be fulfilled in 2.5 sec time because of large number of I/O points that must be scanned. At the same time update subscription callbacks are running at the period determined by Update rate. I observed in my production system that regular update callbacks has higher priority than refresh callbacks from the queue. That causes the loosing of timed sequence of data. After the update callback with fresh data, sometimes follow one or two refresh callbacks from queue with old (invalid) data. By adjusting Update rate parameter (1 hour, 2hours …) I can postpone the collision of data refreshes but I cannot eliminate it. Furthermore, the 2.5 sec automatic refresh are large burden for systems with many I/O points.
    QUESTION 2:
    Is there a way to disable automatic refresh request every 2.5 sec and just use update requests determined by Update rate?
    QUESTION 3:
    Is there a way (or parameter) to change the period of automatic refresh (2.5 sec)?
    This problem is discovered for Lookout 6.5, 6.6 and 6.7 so I could say it is intrinsic to OPCClient. If I use synchronous I/O requests there is not an automatic refresh, but that is not an option for large systems.
    Thanks!
    Alan Vrana
    System engineer
    SCADA Projekt d.o.o.
    Picmanova 2
    10000 ZAGREB
    CROATIA
    T +385 1 6622230
    F +385 1 6683463
    e-mail [email protected]
    Alan Vrana
    SCADA Projekt d.o.o.
    ZAGREB, Croatia
    Attachments:
    opcproc.zip ‏4 KB

    The physical connection from LV to the switch is (I believe) copper crossover to fiber converter into a switch.  Then, fiber from the switch to the end device (relay).  The relay has all of the typical modbus registries and has been verified by inducing signals in to the system and measured/polled in LabVIEW and observed Variable Monitor.  I am working with LV 8.2 and 8.5. 
    An OPC server would only add an additional translation of addressing within the configuration.  The only real draw back would be the network overhead required to do this processing and not being representative of the end design configuration.
    I will reiterated my question in another way:
    I must answer the question to management that relates to data collection, test results and analysis; how often are you polling the client in relation to the outcomes measured?  At this time I can not point at any configuration in the set up and execution that directs the data framing rate.  I only measure the traffic and work with results.  This needs to be clearly identified based on the relay modbus/tcp design capability of supporting an fixed number of client requests per second. 
    For testing purposes, I would like to be able to stress the system to failure and have prove capabilities with measured data.  The present problem is that I have no basis to establish varying polling rates that effect the measured data transmission. 
    This raises another question.  What handles the Variable Monitor data requests and how is this rate determined?
    Thanks for your interest in my efforts.
    Steve

  • If firefox automatically updates my computer past 3.6 I'm inundated with Script Freezes..how do I stop new automatic updates?

    Everytime I'm automatically updated past 3.6 my computer is inundated with Script Freezes..especially on the email page of gmail.
    This has happened many many times. As far as I can determine these Script Freezes (Says: A script is attempting to write on this page.."Continue"..Stop Script etc) are coming from Internet Explorer (I'm not sure of this) and it's tricky to delete any elements of Internet Explorer. But at any rate my computer freezes up until the Script problem is settled..I check the don't ask me again block..but it does no good.
    My real question is: Since things work fine in 3.6...how can I avoid any automatic updates?
    Also, why isn't there a Timer Window (or a timer bar)for Firefox?...sometimes I have to wait 5 minutes for it to load! If there was a timer at least I'd know that something is happening and I'd be willing to wait. When it does take forever to load..it seems to help if I delete all Prefetch and temporary files.
    Is there a safe way of turning off Internet Explorer temporarily?
    Thanks for your help
    Matthew
    [email protected]

    I tried this today, and it is working now:
    Click Firefox > Options > Options > Advanced ... then Uncheck the option "Use hardware acceleration when available"

  • How to slow down too many deliveries of daily return_job?

    Does anyone know how to slow down too many deliveries of dail return_job at 00:30?
    I'm using following version.
    $ /opt/SUNWmsgsr/sbin/imsimta version
    Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)
    libimta.so 6.3-5.02 (built 17:15:31, Oct 12 2007; 32bit)
    SunOS hostname 5.9 Generic_122300-13 sun4u sparc SUNW,Sun-Fire-480RAbout 7,000 delivery notification messages was created by return_job in 1 minute
    and then the smarthost could not process these messages and froze.

    pyon wrote:
    Thanks, Shane.
    So, I want to control the transmission rate to smarthost, especially mails created by return_job.You can throttle back the rate at which Messaging Server attempts to send emails to the smarthost by decreasing the maxjobs setting from 7 to say 2 and increasing the threaddepth to say 32. This will reduce the number of simultaneous active connections and also the rate at which new delivery jobs are created.
    http://msg.wikidoc.info/index.php/Threaddepth_Channel_Option
    Also since you are using the daemon keyword you may want to try the multiple option (instead of single_sys).
    http://msg.wikidoc.info/index.php/Multiple%2C_addrsperfile%2C_single%2C_single_sys_Channel_Options
    So these combined give you the following channel definition:
    ! tcp_local
    tcp_local smtp nomx daemon smarthost.example.com multiple remotehost inner switchchannel identnonenumeric subdirs 20 maxjobs 2 pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel tcp_auth missingrecipientpolicy 0 loopcheck threaddepth 32
    tcp-daemonRegards,
    Shane.

  • How to calculate Month on Month growth rates in an OBIEE query?

    Dear all,
    I would like to ask your help on how to calculate Month on Month growth rates [(last month - previous month)/previous month*100%] in an OBIEE query. This ratio should be always calculated for the last 2 available months.
    I have the following query:
    Month0 | Month1 | Month2
    Product A 500 | 100 | 200
    Product B 600 | 300 | 150
    would like to add Month on Month column as following:
    Month0 | Month1 | Month2 | Month on Month(%)
    Product A 500 | 100 | 200 | +100.00%
    Product B 600 | 300 | 150 | -50.00%
    I tried to add a calculated item but it was not successful because I could not find out how to show only the calculated column as % with 2 decimals. Moreover, I would ideally prefer to have an automatic update but as far as I understood it can't be done in the calculated item automatically
    I also tried to add a new column in the column area and to filter the results for the last month, then for the previous month and then based on it to calculate the needed ratio but unfortunately it also does not work out.
    Thank you your hints in advance

    Hi,
    The best way to solve this is using the Ago function. With this you can create a logical column for the previous month. Then you will have 2 columns available with which you can do your calculations.
    If you want to do this with a calculated item (don't know if the formatting will work for you), but you can make the calculation more general by using $1 for column 1 and $2 for column 2 in your calculation. So the relative columns ($x) will change with the columns in your report.
    Regards

  • AI acquire waveform. vi update rate

    Hello,
    I would like to increase the update rate ( which governs how many samples are acquired per second) for the attached vi- AI Acquire Waveform(waveform).vi.
    This vi is a built in vi obtainable from Analog Input palette under Measurement I/O.
    The update rate preset is 1000 samples per second, i want it to be 10,000 per second.
    If i type it manually, it doesnt stay and reverts back to 1000.
     I am using LABVIEW 8.6 on Windows XP machine
    Thank you very much and Regards
    poli
    Solved!
    Go to Solution.
    Attachments:
    AI Acquire Waveform (waveform).vi ‏14 KB

    Hi Poli
    Have you looked at the the daq examples. Labview is shipped with a lot of examples. Also are you running this by using the continuous run button? That button is for debugging only, and it is a no-no to use it for other purposes
    If you are new to Labview perhaps some of the online basic lessons will do you good.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to slow things down to see the progress bar?

    how to slow things down to let the progress bar to show its progress?
    everytime i run the program i can see only two scenario: 1. 0% 2. 100%
    i think the stuffs are too little to make any difference.
    what should i add in the codes so that i can see the progress?
    thanks!
    here is my codes:
    jProgressBar1.setValue(1);
    do some stuff here
    jProgressBar1.setValue(15);
    do some stuff
    jProgressBar1.setValue(31);
    do some stuff
    jProgressBar1.setValue(41);
    do some stuff
    jProgressBar1.setValue(61);
    do some stuff
    jProgressBar1.setValue(100);

    Hi!
    When you call update on the progress bar, the value of the progress bar is updated, but it won't be reflected on the screen until Swing has a chance to repaint. Swing can't repaint until your code is finished. So, what's happening is something like this:
    setValue(1), do stuff, setValue(15), do stuff, setValue(31), do stuff, Swing Repaint
    Also, not only does this block the progress bar from updating, but as long as your code here is running it blocks all of Swing (repainting, handling events, etc...).
    If your "stuff" isn't very time consuming, just remove the progress bar altogether. Otherwise, to make things work properly, you'll want to move it to another thread. Then, from that thread you can keep the progress bar up to date with:
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            jProgressBar1.setValue(xxx);
    });Hope that helps!
    Shannon Hickey (Swing Team)

  • PWM Update Rate using PXI 7334 & 6602 cards

    I have a NI 8176 controller and a PXI 7334 (FlexMotion) Motion Controller Card. I am using the PWM output to control an actuator and I would like to update the duty-cycle as frequently as possible.
    I have the card PWM frequency set to 32 kHz, but can only achieve 1.5 kHz update rate.
    The attached VI shows the code I'm using to write to the card.
    I also have a PXI 6602 card, I can achieve an update rate of 6.5 kHz with that, but I bought the 7334 card with the expectation of achieving a faster update rate.
    Any advice on how to improve the update rate of either card would be appreciated. Likewise, does anyone know another hardware set-up that would be a viable alternative?
    Many thanks,
    Brian
    Attachments:
    pwm_generation_with_7334_card_-_tick_method_of_speed_measurement.vi ‏50 KB
    PWM_Benchmark_V1.1.vi ‏112 KB

    Hi Amaury, thanks for the fp2 file, I’ve just moved site, got my lab back yesterday. (please watch the numbers 7344 and 7334 in the text below!)
    The FPGA2 firmware I had was Version 5.20.0001, MAX would not allow me to select the file 7344pwm.fp2, I got the message “This file is not valid for the Flexmotion board selected”.
    However, I went to C:\Program Files\National Instruments\Motion\FlexMotion\bin and deleted 7344.fp2
    I then renamed 7344pwm.fp2 to 7344.fp2 and copied it to the “bin” folder, then in MAX I selected new file to download, pointed to 7344.fp2 and successfully download the new firmware to my 7334 motion controller. Now in MAX the FPGA2 firmware version is 5.20.000f.
    Unfortunately I c
    an still only update the PWM duty-cycle on my 7334 at 3.6 kHz!
    Is this correct? do I need to update the file 7334.fp2 instead? or does the file 7344pwm.fp2 also work for the 7334 card?
    Also, is it possible to generate a PWM using the stepper motor output in open-loop mode? If so, do you have example code on how this is done?
    Thanks again for your help,
    Brian
    Regards
    Ray Farmer

  • How to default Invoice indicator for these

    How to default Invoice indicator for these
    limit items
    Long Text
    Export/Import funcationlaity from the
    Purchase order.
    1.Craete a shopping cart with Limit
    item
    2.Give the "value Limit" to 1 Penny(0.01)
    3.Order the Shopping
    art
    4.The shopping cart is approved and orderd
    5.Navigate to the "Related
    document" tab from the Shopping cart screen
    6.Click on Purchase order
    Number
    7.Click on "Export"Button from the PO Screen
    8.Save the Exported
    file in to Local drive
    9.Now Edit the file which is saved((Add few more line
    items)
    10.Now come to PO screen amd click on Edit button
    11. Click on
    "Import" Button from the PO screen
    12.Click on Browse from the Pop up window
    and click on Upload button.
    13.Now check the Imported items from the "Item
    Overview"section-
    Bottom
    Line is:Limit items are getting created in the System using the
    upload file
    but it does not update the GR based Invoice indicator flag
    for all the items
    uploaded.due to which it errors out.

    Hi,
    I have created a shopping cart and order it,
    I will open the SC and navigate to the Related tab and click on PO document number.
    Now click on Export button(It will export to ur Local desktop) on Po screen
    Now update Exported file(add few more Limit items)
    Click Edit button from PO screen.
    Import button will be enabled.
    Click on Import button to upload the File.
    Verify the limit items are added to the item overview section.
    Now all the Limit items are added but system gives error messages.
    Error message below:
    "Check confirmation-Based Invoice Verification for services and   Limits."
    This is the error message for all the Line items, so We need to default this flag.

  • How to slow down an animation on flash cs6?

    how to slow down an animation on flsh cs6 on each frame?
    please find link to my animation below
    https://drive.google.com/file/d/0B7-5JfJAfs97VHZCUW5EM0FTX2M/edit?usp=sharing

    Change the frame rate of your file if you want it to animate slower.

Maybe you are looking for

  • Amavisd-new 2.4 seems to have hosed my mail server

    Used BuildSmart this morning to update ClamAV and amavisd-new and now all mail is stuck in the queue with this message: host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=01286-15, partsdecodeext FAILED: parsing file(1 Killing the proc

  • Copy/Cut/Paste is not available in Mozilla and Firefox. Do you want more information about this issue?

    Copy/Cut/Paste is not available in Mozilla and Firefox. Do you want more information about this issue? Yes!

  • Problem in networking

    Dear all: I am doing my homework. And I had solve the question 2.But in Q3, I spend about two weeks and cannot solve it. And the time is limited, pls. give me a hand. Thanks! The questions are: (Q2) The system has a total of 10 threads. 5 threads are

  • Sharing computing power between macpro and macbook pro

    Hey all... someone mentioned to me that I can connect my latptop and desktop together so that I can "combine" processsing power. I use various music creation software, logicpro and protools and would like to use the laptop to offload/run the plugins

  • Html form xml xml db

    Hi, Is there a sample that does this simple process: 1. Extract xml content from xml db table (via a PK key) 2. Transform it into html form input (via xsl) 3. Process the request from the submit action and update the original XML content 4. Update th