Content buffer scan evolve

Hello
I use a Pentium 4 with an acquisition of data NI4351, Win XP Pro OS, LabWindows/CVI 7.1 PCI and a pilot updated NI435x. Reading of data acquisition are analysed 8 channels in a scan buffer every second in asynchronous timer thread that calls the NI435X_Check_And_Read() function. The readings are intertwined. After a few days of continuous operation, channel readings are somehow staggered to table indexes different scan buffer. No function error is returned.

For example, given a scan buffer variable declared as

Double buf [1000];

The first elements of the table 8 (from buf [0]) must then always contain readings for the respective channels as follows:

{ch1, ch2, ch3, ch4, ch5, ch6, ch7, ch8, ch1, ch2, ch3,...}

However, after a few days, the content of the table (from buf [0]) appear as follows:

{ch6, ch7, ch8, ch1, ch2, ch3, ch4, ch5, ch6, ch7, ch8,...}

How can I stop this from happening?

Thanks in advance,

John.

Hi John,.

Thanks for the reply and I hope that your well.

I was referring to such a request in LabVIEW programming.

Yes, the equivalent would be ThreadSafeQueues. The only suggestion I have is to improve how the code works. It was the only way I solved a problem like this when using a cRIO.And I found to improve the code usually help too - not only aspects directly related to the acquisition. How your code works on the time/design template?

One last thing, you are running on a multi-core computer? I wonder if the problem is worse or better if you ask your application only run on a carrot? (if possible).

Tags: NI Hardware

Similar Questions

  • How to read all content in applications of RT FIFO buffer

    Salvation;

    In my application, I want to read that all of this content buffer (which consists of a series of table 1 d) all at once and then empty the buffer so that the forthcoming data can be written in the buffer in the next step of my code. I wonder if there is anyone out there who knows how to do this.

    Thank you very much.

    Serdar

    Hi Olivia

    It's possible! The only thing you need to do is to pack the table 1 d in a cluster and add it to a table 1 d of clusters in the buffer.

    So, it's a little more drink of achievable work in practice.

    step 1 Replace table 1 d internal table 1 d of table 1 d cluster. (sounds difficult, do it)

    step 2 replace the float with a 1 d table and as a first step bunde who in a cluster.

    step 3 replace the output by a 1 d table and who recover from the buffer and unbundle immediately before any connection to the indicator.

  • IncompEte scanning on Photosmart 5520

    When I scan a page of text inside a box, only the box and its contents are scanned, the rest of the page is blank. I use a MacBook Pro.

    Hello
    The default analysis workflows configured to scan photo 6 x 4 in. make sure you change the scanning settings to not crop the area swept as follows:

    Now change the settings as follows:
    1 open the HP utility and select your device.
    2. based on Scan Settings open the "Scan to Computer".
    3. click on the tab "scan tasks.
    4. Select the shortcut Scan allows to analyze, and then click on edit.
    5. in the section of scanning from an HP device, click the blue triangle or button view details to expand the menu.
    6. in the expanded menu now, open the drop down next to cultures in and set as none.
    7. click OK and try to scan the image.

    Kind regards
    Shlomi

  • performance issues

    I have an I pad retina and I encounter a performance problem. I can't move or content by scanning screens change. Whenever I touch the screen a black box appears around the content and must type twice inside the area to change. To do this, when you are typing as well!

    Tell Siri to disable VoiceOver. If you do not Siri, go to settings > general > accessibility > turn off VoiceOver. -AJ

  • Best way to synchronize several FPGAs

    I have several PXI-7833R FPGA and I need all the AIs to be sampled at the same time (through all FPGA). As I taste all the individual channels to HAVE, I have data (write to the DMA) buffer, scan it and are looking for a trigger defined by the user in a different loop. Once I discovered this in a single channel, I save all FPGA data. Regarding the timing of sampling, I had started, to an FPGA, to send a signal on the PXI trigger line to tell others to try, but I guess that it does not sync. If I founded the ensemble of distinct FPGAS screw off the clock, PXI, how synchronize loops to the sample to the same clock time?

    Thank you

    Hello

    There is a very good example comes with FPGA LV named 'Master-slave of RIO - R Series.lvproj'. Just use the Finder for example to open it.

    It shows how to use the lines of PXI trigger for synchronization of the different measures on multiple FPGAs.

    Hope this helps,

    Christian

  • Error 401 on Twitter device

    Hi I Don t know why my fall of code on 9700 OS 5, I try in OS6 9300, 9780 OS 6 and all devices with 0 7 s and the same code work as expected.

    I take this forum code, I don´t remenber where and to change some lines and constant.

    all devices of returned code 200 but 9700 give me a 401

    Help, please

    public static String requestToken(){
            String url = Const.REQUEST_TOKEN_URL;
            String header = oauth_header(url, HttpProtocolConstants.HTTP_METHOD_GET);
            String requestTokenUrl = concatURL(url, header);
            System.out.println(requestTokenUrl);
            HttpsConnection connection = null;
            InputStream input = null;
            try{
                connection = (HttpsConnection) HttpUtils.getConfiguredConectionFactory().getConnection(requestTokenUrl).getConnection();
                connection.setRequestMethod(HttpProtocolConstants.HTTP_METHOD_GET);
                connection.setRequestProperty("WWW-Authenticate","OAuth realm=http://twitter.com/");
                connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    
                input = connection.openDataInputStream();
                int resp = connection.getResponseCode();
                if (resp == HttpConnection.HTTP_OK) {
                    StringBuffer buffer = new StringBuffer();
                    int ch;
                    while ( (ch = input.read()) != -1){
                        buffer.append( (char) ch);
                    }
                    String content = buffer.toString();
                    Const.token = content.substring(content.indexOf((Const.OAUTH_TOKEN+"="))+(Const.OAUTH_TOKEN+"=").length(), content.indexOf('&'));
                    Const.tokenSecret = content.substring(content.indexOf((Const.OAUTH_TOKEN_SECRET+"="))+(Const.OAUTH_TOKEN_SECRET+"=").length(), content.length());
    
                }else{
                      StringBuffer buffer = new StringBuffer();
                      int ch;
                      while ( (ch = input.read()) != -1){
                          buffer.append( (char) ch);
                      }
                      String content = buffer.toString();
                      System.out.println("request Error: " + content);
                }
                return Const.token;
                //return (getTwitterMessage(connection.getResponseCode()));
            } catch (IOException e) {
                return "IOexception";
            } catch (TransactionException nc) {
                return "noConnection";
            } catch (Exception e) {
                return "Exeption";
            } finally {
                try {
                    connection.close();
                    input.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    
    public static ConnectionFactory getConfiguredConectionFactory(int timeout){
            int[] allow ={
                    TransportInfo.TRANSPORT_TCP_CELLULAR
            };
            int[] denny ={
                    TransportInfo.TRANSPORT_MDS,
                    TransportInfo.TRANSPORT_WAP,
                    TransportInfo.TRANSPORT_TCP_WIFI,
                    TransportInfo.TRANSPORT_WAP2,
                    TransportInfo.TRANSPORT_BIS_B
    
            };
            ConnectionFactory factory = new ConnectionFactory();
            factory.setEndToEndDesired(false);
            factory.setEndToEndRequired(false);
            factory.setPreferredTransportTypes( allow);
            factory.setDisallowedTransportTypes(denny);
            factory.setAttemptsLimit(3);
            factory.setConnectionMode(ConnectionFactory.ACCESS_READ_WRITE);
            factory.setTimeoutSupported(true);      
    
            factory.setTransportTypeOptions(TransportInfo.TRANSPORT_TCP_CELLULAR,telefonicaAPN );
            factory.setConnectionTimeout(timeout);
            factory.setTimeLimit(timeout);
                    return factory;
    }
    
    public static String oauth_header(String url, String method) {
            String nonce = nonce();
            long timestamp = timestamp();
            Hashtable pairs = new Hashtable();
    
            pairs.put(Const.OAUTH_CONSUMER_KEY, Const.consumerKey);
            pairs.put(Const.OAUTH_NONCE, nonce);
            pairs.put(Const.OAUTH_SIGNATURE_METHOD, Const.SIGNATURE_METHOD);
            pairs.put(Const.OAUTH_TIMESTAMP, Long.toString(timestamp));
            if(Const.token != null) {
                pairs.put(Const.OAUTH_TOKEN, Const.token);
                //pairs.put(OAUTH_VERIFIER, verifier);
            }
            pairs.put(Const.OAUTH_VERSION, "1.0");
            pairs.put(Const.OAUTH_CALLBACK, Const.CALLBACK_URL);
            String sig = signature(method, url, pairs);
            //pairs.put(Const.OAUTH_SIGNATURE, escape(sig));
    
            StringBuffer header_sb = new StringBuffer();
            if(method.equals("GET"))
            {
                String comma = ",";
                header_sb.append(Const.OAUTH_CONSUMER_KEY).append("=").append(URLUTF8Encoder.encode(Const.consumerKey)).append(comma);
                header_sb.append(Const.OAUTH_NONCE).append("=").append(nonce).append(comma);
                header_sb.append(Const.OAUTH_SIGNATURE).append("=").append(URLUTF8Encoder.encode(sig)).append(comma);
                header_sb.append(Const.OAUTH_SIGNATURE_METHOD).append("=").append(URLUTF8Encoder.encode(Const.SIGNATURE_METHOD)).append(comma);
                header_sb.append(Const.OAUTH_TIMESTAMP).append("=").append(Long.toString(timestamp)).append(comma);
                if(Const.token != null) {
                    header_sb.append(Const.OAUTH_TOKEN).append("=").append(URLUTF8Encoder.encode(Const.token)).append(comma);
                }
                header_sb.append(Const.OAUTH_VERSION).append("=").append("1.0").append(comma);;
                header_sb.append(Const.OAUTH_CALLBACK).append("=").append(URLUTF8Encoder.encode(Const.CALLBACK_URL));
            }
            else if(method.equals("POST"))
            {
                header_sb.append(Const.OAUTH_CONSUMER_KEY).append("=").append(URLUTF8Encoder.encode(Const.consumerKey)).append("&");
                header_sb.append(Const.OAUTH_NONCE).append("=").append(nonce).append("&");
                header_sb.append(Const.OAUTH_SIGNATURE).append("=").append(URLUTF8Encoder.encode(sig)).append("&");
                header_sb.append(Const.OAUTH_SIGNATURE_METHOD).append("=").append(URLUTF8Encoder.encode(Const.SIGNATURE_METHOD)).append("&");
                header_sb.append(Const.OAUTH_TIMESTAMP).append("=").append(Long.toString(timestamp)).append("&");
                if(Const.token != null) {
                    header_sb.append(Const.OAUTH_TOKEN).append("=").append(URLUTF8Encoder.encode(Const.token)).append("&");
                    //header_sb.append(OAUTH_VERIFIER).append("=").append(escape(verifier)).append("&");
                }
                header_sb.append(Const.OAUTH_VERSION).append("=").append("1.0").append("&");
                header_sb.append(Const.OAUTH_CALLBACK).append("=").append(Const.CALLBACK_URL);
            }
            return header_sb.toString();
        }
    

    Well I found the solution to al my headache, the phone are the incorrect time and that the reason for this same code fails in this terminal

  • ID: 5124

    My client is running signature value S74 on a virtual machines with idsmon 1.2.3 2.2 and 3.1 version sensors (5).

    VEI receives an event for IIS CGI Double decoding ID: 5124 Sub ID: 1. While they inspected the content buffer for the event, the following string is observed. (http://x/x/x/x%252Fxxx.jsp)

    My question is this:

    The buffer contains a % 252F and that triggered the event

    The signature under seem to 2F as an exact match?

    or

    Can there be spaces and characters in the middle of the 2 and F (as are in the buffer [52]) and always raise the event.

    The signing triggered correctly?

    The signature is looking for a model of literal "[%] [2], [5] [2] [Ff]" in the URI. By the regular expression, no spaces or other characters can be the sequence. Starting from the observed chain, the signature appears fired correctly. While we know quite benign triggers, it may be possible that this is legitimate traffic.

  • Controls upstream for printing - screen halftone - InDesign

    Hi, I publish a newsletter that will be printed on a digital duplicator. Since this machine is essentially identical to a printing press, the content it scans to make the plate must have a pattern of half-hearted about it for the photos to display properly, gradients to work right and all that jazz. I'm fairly new to InDesign and am looking for a way to export to PDF or even just to print with a halftone screen applied to my entire document. Help and suggestions, please?

    Thank you!

    Eric

    A digital duplicator is essentially identical to a printing press, as long as a microwave oven is essentially identical to a toaster.

    There is no plate; the unit will create the halftones in its imaging process model. You need not create the halftone yourself anxiety.

  • All groups of redo log is active

    Hello dear gurus!

    After the closing of the database with the option "Cancel".
    We have unconsisten State of data files.
    I ask to explain:
    (1) - ARCH background processes flashes all redo buffer in redolog?
    (In other words how achieved consistency if all redo log groups was in Active state before you stop?)

    (2) where the content buffer in this case are being dumped?

    Thank you and best regards,
    Pavel

    Published by: Pavel on July 19, 2012 21:49

    Pavel wrote:
    After the closing of the database with the option "Cancel".
    We have unconsisten State of data files.
    I ask to explain:
    (1) - ARCH background processes flashes all redo buffer in redolog?
    (In other words how achieved consistency if all redo log groups was in Active state before you stop?)

    He is the author of newspaper (lgwr) that copies the buffer log in log files - but if you make a judgment that the last piece of information in the log buffer is not copied, he lost.
    Note: one of your log files will be CURRENT, that's the one that the editor of newspaper is written, ASSETS are simply online redo logs that are still necessary for recovery and therefore can not be overwritten.

    (2) where the content buffer in this case are being dumped?

    See (1) - they are not.

    Concerning
    Jonathan Lewis

  • Media types acceptable for speech to text in CS6 analysis?

    Hi all

    I was about to show the speech helps the function of text analysis in CS6 co-worker and ran into a block for such a simple procedure.  We use a system based on PC with Windows 7.

    The bite of the interview that we have analyzed is in a P2 MXF format.  If I open the item in the source monitor, select in the project Panel or use the "Clip" Menu > > "Analyze the content", the "Scan button" in the poriton of the analysis of speech from the metadata Panel is greyed out and inaccessible.

    My first thought was that P2 MXF was not a media type acceptable for use with the tool. Then, I selected a clip Ikegami, who had been transcoded in SOUL to a P2 clip with practically the same properties that the clip of P2 MXF native that is desired for analysis.   Transcoded P2 clip has activated the button "analyse".  I have also tried to analyse a XDCAM EX clip native, and the 'Analyze' button was accessible.

    Here is a screenshot of the properties of the clip of the three clips here metnioned.  The clip onscreen furthest left is the native P2 MXF clip that will not scan.

    SpeechAnalysis_TestClip_Properties.jpg

    All thgouths about why native MXF P2 is not a type of acceptable media for the analysis of speech? Thank you!

    Lindsay

    Well, I just had a hunch to verify permissions in Windows Explorer on the directory of head of the file directory MXF P2 that contains the item desired for speech analysis.  The permissions have been set to "Read only."  I changed this option to allow Scripture and apply the change.  Then I closed and reopened the clip in the Source monitor of the body panel and voila! Was the "Scan" button is gray, and I could start the clip parsing.

    I think it's particularly odd, because for all our types of media, including the native P2 MXF, we add metadata particuarly in the fields 'Description' or 'Diary Notes' within the organization.  The metadata is retained when these same media are reimported into a new project.  Permissions 'Read only' does not have an impact on the writing of the user input data.

    Again, don't know why it is isolated to only our MXF P2 directories, but at least I know how to work around.  Maybe that's a problem of Windows/PC-system?

    Anyone who encountered this?  I was able to reproduce this problem on two systems separate edit so far.

    Lindsay

  • [CS2 - VBS] Ordering boxes of selected text

    Hello

    I use the following code:

    For i = 1 To myInDesign.Selection.Count
    REM myIndesign.Selection (1) .silence. Export idExportFormat.idTextType, "d:/test.txt.
    REM msgbox myIndesign.Selection (i). Content
    Buff Buff = & myIndesign.Selection (i). Content
    Next

    This is in order to return the content of one or more currently selected text boxes.

    The problem is that the order of the text boxes is arbitrary, or more likely based on the

    order that they were created in the first place.

    I would like to get the content in the order in which they have been selected on the page, so the first

    Click text box provides the first characters of a string of buff and so on.

    TIA

    When you select objects in ID CS1 and CS2 ID - order is reversed - if you need browse objects backward:

    For i = myInDesign.Selection.Count to 1 step - 1

    ...

    Next

    in ID CS3 - this was changed and reflect the order of creation or stacking index...

    I have not tested in ID CS4... but I don't think that it has been corrected...

    Robin

    www.adobescripts.com

  • Cannot display the Flash content after Norton Utilities scan

    I did a scan of Norton Utilities yesterday, and afterwards various sites Web looked very odd in Firefox. Worse, I've lost the ability to view videos embedded on websites such as the BBC, YouTube, etc.

    Other tests this morning show that the problem is not for ALL video content. There are YouTube videos that I can see perfectly, for example. And while I can't display content in media player on MLB.com , some video on the home page seems to work very well.

    I've updated my Flash plugin to the latest version and Adobe's Web site tells me that it's working properly. Any ideas what could be the cause of the problem? Norton Utilities to remove some files that I really needed? I have read a few replies Forum on other issues that suggest I should disable Norton scans regarding the Firefox folder, and I'll do it - but how to fix the problem, she caused? I tried a restore of the system without result.

    I have 12 of Firefox running on a Win7 x 64 machine. And by the way, 'weird-looking sites' problem mentioned above seems to have been fixed by reloading each in turn.

    Scans of Norton Utilities tend to cause more problems then they actually solve, so I would never recommend them. Looks like that it damaged your profile Firefox, specifically your cache. You can try to read How to clear Firefox cache, which should help. If you still have problems, try to read Web sites look bad or display differently they should

  • I've attached a scan to an email, but it says "could not open the file C:\users\My Windows\AppData\Local\Microsoft\Windows |" Temporary Internet Files\Content.IE5\TQDLSO1A\etc, etc.

    I've attached a scan to an email, but it says "could not open the file C:\users\My Windows\AppData\Local\Microsoft\Windows |" Temporary Internet Files\Content.IE5\TQDLSO1A\etc, etc.

    I'm probably not explaining my problem fairly - well, I scanned something in - I used Nuance Paperport.  I have it attached to an email and sent to six people - including myself.  I always open the attached file to make sure that the computer has sent the right thing.  When I tried to open the attachment I got the message "cannot open the file - I have already sent you."  I think that Norton Security got rid of the file I need.  I think I will contact them.  I tried to contact Nuance - but alas, my warranty has expired, so no help there unless I want to pay for it.  If I can't have the problem solved through Norton, I will contact you again.  Thank you very much for taking the time to try to help me.  Have a great Thanksgiving action!

    ================================================
    Your explanation was nice... that was my answer that failed.

    I was hoping that you would simply copy the scan of your temporary
    Internet files folder and paste it on your desktop. Then you might
    evaluate what is the problem. I thought that trying to open
    with such a long way email could be a problem. And also... it's possible
    be a file association problem. And it could be a matter of file size.

    I understand that you care why the attachment to the email
    failure and I think you need to find what is the problem with the scan
    before fastening will be successful.

  • IFilter sees the content of the scanned PDF files of glass?

    IFilter sees the content of the scanned PDF files of glass? I need to search for a string in a directory containing files PDF 25 000 + which is scanned and generated by the CAD drawing programs. Thank you!

    Post edited by: Joseph Norton to correct a typographical 04/04/16 11:45 HAE.

    iFilter uses only the text available in the file.

  • SOS! Comment by modifier content of a native or scanned PDF document?

    Hello

    I don't know about ADOBE!

    A few days ago, I bought a PACK ADOBE € 77...

    I thought with PACK can modify the content the native or scanned PDF documents.

    How do I?

    Thank you for your attention

    Adobe PDF package can convert PDFs to Word, Excel, etc. and vice versa.  It can also perform the recognition of characters (OCR) when exporting a scanned document.

    However, he cannot edit PDF files. you will need Acrobat for that.

    [subject moved to Acrobat.com Services forum]

Maybe you are looking for