Spurious commands delaying read time

I thought this particular problem had been cured, but it seems to have come back. I’ve been using a Modbus development tool to read ADC output values without a problem. I've written a small vi which should do the same thing. It runs on the same PC and uses the same COM port. Obviously I have to close the Modbus programme to release the COM port for LabView. The vi runs fine, but data only appears on the front panel every 8 seconds.
Putting in a 500ms delay in MB Serial Receive.vi improves the response time to around 500ms, but I need 100ms.  A shorter delay just results in 8 second refresh times again. The 500ms delay workaround has been implemented in the vi Reverse Power by putting the delay in a FOR Loop.
I’ve created log files looking at the data flows and they are very different between the dvelopment tool and the vi. I’ve attached these. For the Modbus development tool it can be seen that at line 130 that the data is written as a single word, and immediately received as a single word.
For the vi, there’s a lot of communication activity at the start that as a novice I don’t begin to understand, but at line 35 the data gets written. However, the read operation doesn’t take place until line 68.
I've attached the vi, Reverse Power, and the sub-vi's, and the log files. I would appreciate any ideas on how to solve this problem. Thank you.
Attachments:
Modbus Spurious Commands.zip ‏649 KB

Hello Placebo,
Thank you for your post on this forum.
I have had a look at your code and I need to ask you for some clarifications to better understand the issue. From your post I could gather that you were experiencing similar issues before. Is this the case? Did you manage to solve it at that time?
Moreover, it would be hard for me to test your code since I don't have the hardware you are currently using. It might be useful to give me some more information on what you are trying to do.
The link below might help you if you have not seen it before:
http://zone.ni.com/devzone/cda/tut/p/id/7675
Have a look to make sure you have implemented your VIs properly.
Many thanks,
Shalini B
Applications Engineer
National Instruments UK & Ireland

Similar Messages

  • Weird delay reading shared variables

    Hello,
    I'm working on a project were I'm monitoring some prodution lines. I'm using DSC module's OPC server to connect to PLCs on the production line and I've created bound variables on my labview project of the PLC's tags.
    On my project I have one main VI were I show information about the production lines and were I can access several subVIs were I show other information about those lines. Then I have a VI that is running in background were I'm reading about 50 shared variables from the PLC and where I'm registering some data in a MySQL database, datalogging data on the Citadel database and registering alarms.
    The problem I'm having is that on the VI that runs in background I noticed a delay reading the variables that are reading containers weights from the production line. It seems that all the other shared variables don't suffer any delay, only the weight variables start having some delay when the values are increasing. It also seems like that, when I'm only running that VI alone, without running the main VI, there isn't any kind of delay. I'm reading the shared variables as shared variable nodes.
    Can anybody help me understand what's happening and how can I fix this delay? The VI that runs in background is time critical and a weird delay like that messes up my data.
    Solved!
    Go to Solution.

    Hi Mateus23,
    The shared variable has various buffering capabilites, including integration with the Real-Time FIFO feature in LabVIEW Real-Time.
    I guess that the buffering settings are causing the unexpected behavior.
    Check these resources:
    Buffered Network-Published Shared Variables (whitepaper)
    Shared Variables Properties Dialog
       - Network Page
       - Real-Time FIFO Page
    ~~

  • Delaying start time for Nokia 925 Aps?

    Is  it possible,  delaying start time for Nokia 925 Aps? For. egzample, Night watsch (uses a lot of batteries).
    I need to be visible from 5:00. Is it possible, make it automatic startup 5:00?

    hi mate, sorry to hear about your experience. in this case, the fault may lie with the Nokia Care point's handling of your device. in this case you will need to persist with them until they either fix it or issue you with a replacement. else if they are not being conducive to the matter, then you will need to take up the issue with head office of Nokia in your region.

  • Trying to figure out why is there a keystroke delay many times in Pages and Numbers? I'm on a 2010 macPro running Lion

    Trying to figure out why is there a keystroke delay many times in Pages and Numbers? I'm on a 2010 macPro running Lion

    I had a similar problem when working on a long Pages doc (40,000 words).The glitch only occurred on this one Pages file and affected no other applications. I fixed it by duplicating the file, trashing the original and working on the new document. I have no idea of the cause of the problem.

  • CacheLoader different expiry-delay or time-to-live for different keys

    I am now using a class which implements CacheLoader interface. Ii have two issues-
    1. Different expiry-delay or time-to-live for different keys- how do i do this? I can specify only one expiry-delay in configuration file. And i am not calling cache.put() so i could specify ttl. We are trying to use same class for multiple keys. But problem is that we have different expiry-delay requirements for those keys. Do we have to use different cache for those keys? hoping to avoid that as we will have lots of them.
    2. refresh-ahead-factor is not working.
    We are using Coherence 3.4.2 GE
    Below is the server configuration file
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
              <cache-name>reference-data-cache</cache-name>
              <scheme-name>reference-data-cache-dist-scheme</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
         <distributed-scheme>
              <scheme-name>reference-data-cache-dist-scheme</scheme-name>
              <service-name>ReferenceDataBackingService</service-name>
              <backing-map-scheme>
                   <read-write-backing-map-scheme>
                        <refresh-ahead-factor>0.2</refresh-ahead-factor>
                        <internal-cache-scheme>
                             <local-scheme>
                             <scheme-name>reference-local-scheme</scheme-name>
                             <eviction-policy>LRU</eviction-policy>
                             <expiry-delay>20m</expiry-delay>
                             <flush-delay>2m</flush-delay>
                             </local-scheme>
                        </internal-cache-scheme>
                        <cachestore-scheme>
                             <class-scheme>
                                  <class-name>ReferenceDataLoader</class-name>
                                  <init-params>
                                       <init-param>
                                            <param-type>java.lang.String</param-type>
                                            <param-value>{cache-name}</param-value>
                                       </init-param>
                                  </init-params>
                             </class-scheme>
                        </cachestore-scheme>
                   </read-write-backing-map-scheme>
              </backing-map-scheme>
              <autostart>true</autostart>
         </distributed-scheme>
    </caching-schemes>

    Hi
    Refresh ahead is only activated when you do a get. Could this be the problem? Here is an excerpt from a good forum thread on this subject
    Unable to get refresh-ahead functionality working
    Yes, it works as expected. refresh-ahead works approximately like this :
    public Object get(Object oKey) {
    Entry entry = getEntry();
    if (entry != null and entry is about to expire) {
    schedule refresh();
    Also, generic Coherence questions should be posted in this forum:
    http://forums.oracle.com/forums/forum.jspa;jsessionid=8d92079330d63b6fca03d69245ae9170d4607c2284ca.e38QbNuQbx8Kbi0LbhaMaxuKahr0?forumID=480&start=0
    thanks
    Paul
    Paul

  • Big delays reading or saving files from Nas BetApp fas 2020

    I support a Newsletters magazine. They own 5 Imacs 20" -mid 2007, and early 2008. running Mac OS 10.6, and Adobe Creativ suit 4. From time to time, they experience large delays reading or writing files to the Nas NetApp fas 2000. The network is 1 GB. they don't have this problem on PC's.
    Any idea how to stop these delays?

    Are you absolutely sure the network is a bona fide gigabit one all the way?
    We had problems with files taking forever to load from a network share. It turned out, that the IP phone which fed our Mac Pro through its built in switch was the culprit. Its switch was a mere 100Mbit capable one.

  • Delayed start time

    I have a delayed start time on my MacBook Pro, not associated with any event.. 1-2 minutes of grey to blue screens before I am able to use my machine. Otherwise working well. Any suggestions? Much appreciated..

    What version of Mac OS?  Have you booted to the install DVD (or recover disc) and run Disk Utility to repair permissions and repair the disk?
    Try reset the PRAM by shutting the machine down, the start the machine and quickly  hold the key combination <CMD>+<OPT>+p+r until you hear the restart chime three times.  Then release the keys.

  • DB Analyzer shows : Task 326 (Running) : execution of new commands delayed.

    Hello!
    We are investigating the performance of a MaxDB database. In the DB Analyser Protocol we find messages like this:
    Task 326 (Running) : execution of new commands delayed, cmd wait time 0.8 (0.34) ms, 35182 commands, application pid 31633
    I didn't find an explanation for this message in the docs. Does someone have a doc of this message or can someone explain?
    Can this be a performance relevant message?
    Thanks and Regards
    Bernd

    Without a context it's difficult to tell what this message means.
    Can you post the full list what the analyzer was showing?
    Markus

  • Function modules to read Time clusters B1 and B2 from PCL1 and PCL2

    Hi All
    Are there any function modules or macros to read time clusters B1 & B2?
    I want to read time data in the clusters for reporting purpose.
    Regards,
    Rupesh Mhatre

    You can also call the FM HR_TIME_RESULTS_GET and get the exact cluster you need from B2 like WPBP, ZE, SALDO etc.
    Otherwise if you want to use the older FM declare the GET_TBUFF and GET_BUFFER_DIR as of below structure.
    DATA: BEGIN OF TBUFF OCCURS 5000.                           "XPMK014785
            INCLUDE STRUCTURE PCL1.
            DATA: SGART(2),
          END OF TBUFF.
    DATA: BEGIN OF BUFFER_DIR OCCURS 2000,                      "XPMK014785
            SGART(2),
            CLIENT LIKE PCL1-CLIENT,
            RELID LIKE PCL1-RELID,
            SRTFD LIKE PCL1-SRTFD,
            NTABX LIKE SY-TABIX, "pointer auf aktuellen satz
            OTABX LIKE SY-TABIX, "pointer auf alten satz (falls vorhanden)
            NNUXT LIKE PCL1-SRTF2, "anzahl folgesaetze aktueller Satz
            ONUXT LIKE PCL1-SRTF2, "anzahl folgesaetze alter Satz
          ofset(3) type p,     "offset innerhalb eines entry
          END OF BUFFER_DIR.
    INT_TIME_RESULTS should be of type PTM_TIME_RESULTS.
    Regards
    Ranganath

  • Extremely long "reading" times in media browser

    We are running CC2014 on 3 edit systems with a shared 10Gbit 36TB Synology NAS.  Each workstation has approximately 12TB of local raid storage as well. We shoot P2 primarily and I have a little over 17TB archived on the Synology.  Lately, we have had extremely long "reading" times in Media Browser on all the machines.  I don't quite understand how Premiere is indexing and displaying as sometimes the "reading" time is relatively quick, ie. under 10 seconds and then other times it can take 3-5 minutes to display clips within a directory.
    My Directory Structure is:
    Media
         P2 footage
              (P2 folders/ie. cards are all saved with their shoot dates here)
              Our total archive of P2 footage is around 70 cards.
    It appears that when Media Browser is pointed to a P2 Card folder it is indexing the entire "P2 footage directory, ie. all 70 cards", rather than just the individual folder containing 1 P2 card's footage. Ist this the case?
    Would I get better read speeds in Media Browser if I organized my P2 footage into more directories, ie. by year and quarter or by year and month?  
    Really need to know how the indexing works.  Does premiere cache preview files for each clip and if so, how long are these previews valid.  It seems that when I media browse a new P2 Card/Folder, it has forgotten any previous preview files that have been made and cached.
    Any explanation or help would be appreciated.
    We have copied large numbers of cards/folders from the Synology to our local raids to see if the latency was due to the network but the results are the same when we media browse on the local raid copies.

    We are working on this issue. Could you open a support case and submit your
    project so we can have support see if it is fixed in a later release?
    br
    William Wheeler wrote:
    Is anyone experiencing long deploy times using Eclipse with the Portal/XML Beans facets...it takes approx 30 mins to deploy our ear file. The ear contains:
    3 large schemas projects (using XML Bean Builder facets)
    1 Control util project
    1 Portal Web Project
    1 Ear Project
    3 Util projects
    Is there some validation options that can be turned off or other actions to speed this up?
    Bill Wheeler

  • Read time of tdm file increases

    Hello,
    I recently recorded a lot of data in tdm format. I originally saved it in an excessively organised and complex way which resulted in large header files and was very slow. I changed it and most of the data is fine, except 6 files in the old format. Just trying to read them to get the data out and then convert it into an easier format is taking far too long. Each file has ~15000 channel groups, each with 3 channels (I won't do this again...). I have witten a small vi to test the reading speed. Excluding opening and closing of the file, if I just find a channel group by name, reading one channel from that group takes about 1 second. This would still take days to read it all but would be acceptable. The strange thing is, is that if I do this in a loop for successive channel groups which is clearly necessary, it takes longer and longer each iteration. This is behaviour that I have always seen when reading tdm files, but it hasn't caused a serious problem before. I can't find any information about why though, so I hope I'm just doing something stupid. I have attached the speed testing vi (Labview 2010). Running it for 5 iterations, the time taken to read the channels is
    0.82304 s
    1.58809 s
    2.42514 s
    3.56820 s
    5.60632 s
    The channels it is reading all have the same number of values, and it makes no difference if I start at a different channel group (by adding a number to i in the loop).
    Does anyone have any explanation for this behaviour?
    Thank you very much for your help, and I'm sorry if it's something tht has been asked before,
    James 
    Solved!
    Go to Solution.
    Attachments:
    ReadBadTDMSpeedTest.vi ‏44 KB

    TDMS is an all binary format whereas TDM posses an XML header, otherwise they are very similar. Being a binary format you would expect it to read faster especially as you mentioned that the header was complex.
    There are a number of un-closed references in your code and I wonder if this was partly the issue, although this wouldn't explain why converting to TDMS fixed the problem?
    Beyond that, it would be nice to try this without using the express VIs to see if the problem still occurs. 
    Also, where you able to see if this was a memory issue? And if the read time continued to increase beyond what you posted?
    Anyway, I am glad we found a solution to your problem.
    Nick C.
    Cardiff University

  • JDBC Receiver - how to increase Read Time

    Hi Experts,
    Please tell me how to increase the read time and response time in the JDBC receiver adapter.
    Thanks,
    Kalyani.

    hi,
    Check 2.3.5 section of this document:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747
    According to document:
    In the advanced mode table section of sender channel and receiver channel configurations, we can set driver properties for each DB connection. Any such property would have to contain prefix 'driver:'(with out quotes).
    For Oracle Database JDBC thin driver 10.2.0.3 version, the property oracle.jdbc.ReadTimeout helps to set read timeout while reading from the socket. Also for setting login time out in Oracle, we use oracle.net.CONNECT_TIMEOUT. To set these two properties use as follows: driver:oracle.jdbc.ReadTimeout 1000 driver:oracle.net.CONNECT_TIMEOUT 1000 The TimeOut Driver properties like ReadTimeout and CONNECT_TIMEOUT are in milliseconds.
    Refer note 1078420 for more details
    Thanks.

  • Measure the average read time of a single database block for hardware.

    Hi,
    how to Measure the average read time of a single database block for hardware ?
    Many thanks.

    Hi,
    A STATSPACK report has data file level I/O tunings, but they include buffered reads, so they are biased.
    Try this in 9i:
    http://www.dba-oracle.com/oracle_tips_cost_adj.htm
    select
    a.average_wait c1,
    b.average_wait c2,
    a.total_waits /(a.total_waits + b.total_waits)*100 c3,
    b.total_waits /(a.total_waits + b.total_waits)*100 c4,
    (b.average_wait / a.average_wait)*100 c5
    from
    v$system_event a,
    v$system_event b
    where
    a.event = 'db file scattered read'
    and
    b.event = 'db file sequential read';
    Or this, in 10g:
    col c1 heading 'Average Waits for|Full Scan Read I/O' format 9999.999
    col c2 heading 'Average Waits for|Index Read I/O' format 9999.999
    col c3 heading 'Percent of| I/O Waits|for scattered|Full Scans' format 9.99
    col c4 heading 'Percent of| I/O Waits|for sequential|Index Scans' format 9.99
    col c5 heading 'Starting|Value|for|optimizer|index|cost|adj' format 999
    select
    sum(a.time_waited_micro)/sum(a.total_waits)/1000000 c1,
    sum(b.time_waited_micro)/sum(b.total_waits)/1000000 c2,
    sum(a.total_waits) /
    sum(a.total_waits + b.total_waits)
    ) * 100 c3,
    sum(b.total_waits) /
    sum(a.total_waits + b.total_waits)
    ) * 100 c4,
    sum(b.time_waited_micro) /
    sum(b.total_waits)) /
    (sum(a.time_waited_micro)/sum(a.total_waits)
    ) * 100 c5
    from
    dba_hist_system_event a,
    dba_hist_system_event b
    where
    a.snap_id = b.snap_id
    and
    a.event_name = 'db file scattered read'
    and
    b.event_name = 'db file sequential read';

  • About Sun Fire E25K I2c read time out error

    Hi,
    Can anybody give me a breif explaination about the following errors
    which capatured by Sun Fire E25K System Controller:
    Nov 7 08:16:36 2006 E25K-ORADR-sc0 hwad[11914]: [1123
    20621355893934396 ERR I2cComm.cc 410] I2c read time out - bus: 10,
    address: 21
    Nov 7 08:16:36 2006 E25K-ORADR-sc0 hwad[11914]: [1128
    20621356152372741 ERR SelectPll.cc 292] Reading bus failed in address
    0, ecode=1123
    Nov 7 18:45:40 2006 E25K-ORADR-sc0 hwad[11914]: [1123
    20659099583593289 ERR I2cComm.cc 410] I2c read time out - bus: 10,
    address: 21
    Nov 7 18:45:40 2006 E25K-ORADR-sc0 hwad[11914]: [1128
    20659099584735868 ERR SelectPll.cc 138] Reading bus failed in address
    0, ecode=1123
    Nov 8 02:15:01 2006 E25K-ORADR-sc0 hwad[11914]: [1124
    20686060070434628 ERR I2cComm.cc 1095] I2c write time out - bus: 10,
    address: 21
    Nov 8 02:15:01 2006 E25K-ORADR-sc0 hwad[11914]: [1129
    20686060083304777 ERR SelectPll.cc 181] Writing bus failed in address
    0, ecode=1124
    What is the reason to cause "I2c read time out" ?
    TIA.
    Rgds,
    Simon

    Hello Simon,
    these forums are user-to-user. The Fire E25K is definetely beyond the scope of these forums (too expensive, too critical for your business, too complex).
    This system should be under Spectrum coverage (Platinum/Gold).
    Open a service case !
    Let's if you get any response to your posting on the Sun Managers mailing list.
    Michael
    Message was edited by:
    MAALATFT

  • ServletInputStream.read() causes read time out error

    this part of the jsp page
    <jsp:useBean id="testServlet" scope="page" class="testServlet" />
    <%
    testServlet.doUpload(request);
    %>
    this is part of the servlet
    public void doUpload(HttpServletRequest request) throws IOException
    BufferedInputStream br = new BufferedInputStream(request.getInputStream());
    /* error here! */
    int i = br.read();
    it will produce an read time out error when i reach the error line
    btw..... i am using tomcat as server and parsing the form :
    <form name="form1" enctype="multipart/form-data" method="get" action="converter.jsp">
    <input type="file" name="filename">
    </form>
    thnx in advance!

    I'd think for the request to have an input stream, the request method on the form would need to be post, not get. Other than that, I don't know why you've created a Servlet - seems like you could have just created a simple class that takes a HttpServletRequest object (doesn't have to be a servlet). Your jsp page is the real servlet that's being called.

Maybe you are looking for

  • Font problem with Montserrat and Maven Pro from google

    Seems like some fonts don't render as they should in Firefox 29.0.1. I tried to use google web fonts like Montserrat and Maven Pro, no problem with downloading but this fonts don't look good. I tried to install Montserrat to my Windows 7 (64) and dea

  • Invoking a web service from jcd

    hi all, Is there any built-in class in CAPS5.1 for invoking a web servervice from jcd directly. Or is there any some other automation/mechanism to achieve the same, plz provide me any sample code avilable for the same.its very urgent for me. Thanks

  • Place... Function LR5 where is it ?

    Do I am searching wrong? Where is the "Place ... " function that before was at file menu? Thanks Roberto

  • Scan to pdf failed to load pdf document (wireless)

    I have a photosmart d110a and I cannot scan wireless to PDF file (get error  failed to load pdf document) I am able to scan to JPEG,  This has always worked before. This is on multiple computers:  ChromeOS,  and Mac operating systems. I have checked

  • SmartForm execution does nothing - error

    When I execute this SmartForm it does nothing.  If I try to preview it nothing comes up and when I try to print it nothing goes to the print spool.  However, if I remove the address node then it works fine.  Does anybody have any ideas? I am also won