reading data takes 2 seconds

Hello

I have a code that contains three while loops. The first loop is to control a DAQ hardware that provides a continuous voltage (changing by no 0.05, or 0.02)

to run an electromagnet to generate a field of scanning-ve to + ve. When this loop completes the second loop begins to reverse the procedure, and when he finished the judgments of all of the code. The third loop is to take the action it takes in the field by reading a Gaussmeter and also a

voltage of the test sample (no relation to the DAQ voltage) of a metre. This loop starts at the first loop starts and stops when the second loop stops.

The problem I have is that I have to put a delay time (2.5 sec) in loops of first and second for a syncornization with the third loop that takes the action. Without it, the third loop will ignore some points that the first loop and then the second are faster. The kiethely is connected via Gbspecifications TO the Gaussmeter is connected via RS232. I really appreciate any help in getting this sort.

Thank you very much

Alain


Tags: NI Software

Similar Questions

  • iPhone iOS 5 + 10: press the button to unlock home takes 5 seconds to unlock the device

    Hello!

    Yesterday, I did the update to iOS 10 on my iPhone 5.

    Now, it takes 5 seconds to unlock my iPhone 5 after pressing the home button. It is average for a long time! Everyone even experiences?

    Thank you!

    martin_777

    It is normal for the old model of the iPhone 5. in any case, you can try to reset your device and check if it helps.

    Try resetting your device. This will not erase your data stored on that device.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

    If that doesn't work, restore your device to factory settings. Please note that this will delete the data on your device.

    Take a look this Apple Support article: use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support.

  • nvstor64 error - failure of HARD drive to read data

    Backup and restore system is unable to complete - after investigation, about an hour after the backup operation to the system event log records a large number of errors in nvstor64 - "failed to read data from the HARD drive" and the abandonment of the backup operation.  After investigation, I found that the nvstor64 replaced the windows driver update disk drivers HARD during a computer video card.  After many contacts with support from nvidia and further consideration, the problem is reduced to the State of the offence alleged in the second hard drive backup (Seagate 1 TB Baraccuda - development since 2/2011).  When you run the HP disk HARD diagnosis on this drive, it does not hard "SMART short self-test" step with the error message "fails first LBA 45511183".

    Here's my question.  Run the chkdsk BACK on this disc utility passes - no bad sectors.   The HARD drive is visible in the operating system and appears to be fully accessible.  I moved 100 GB of files from the disc to others in the network with no apparent problems.  This really works test by the "SMART short self-test?  This is a 'false positive' test failed?

    Paul

    Pavilion p6210f

    Windows 7 64 bit

    6 GB of system memory

    C: WD 1 TB 7200 RPM HARD DRIVE

    F: drive HARD Seagate 1 TB 7200 RPM

    Hello smithdp,

    The SMART test tests in-depth hard disk. Here's the Wikipedia record for the short trial (they can explain better than me).
    http://goo.GL/XYCvm.
    Short
    Check electrical and mechanical performance as well as the disk read performance. Electric tests could include a test of memory buffer RAM, a read/write circuits test or a test of the read/write head elements. Mechanical test includes seeking and servo on the data track. Scans small parts of the drive surface (area is provider-specific and there is a time limit on the test). Checks the list of areas that may be read errors in waiting. (Usually less than two minutes.)

    Having said that it is not perfect, because no test is, it could be bad, or it could be on-site. Sometimes the SMART test can give a warning, but the drive will not fail for another month + is just a 'heads up '.

    Now, with your error in particular LBA is logical block address. The error you are getting is that there is a block (45511183) that the test has detected an error on.

  • CAN read data using NI-XNET

    I was playing around with the new NI XNET drivers read CAN data and I need some experts advise on this topic. In the frame API, I remember to be able to check that if there is data on the queue of read before reading, with Xnet, I have not found this option. XNET use playback function that will read the entire queue without worrying if the data is present.

    This causes me a problem, because I'm constantly calling loop playback function, the data are written to a table of images, then the table will be empty for the next iteration because the reading queue was empty during the second reading.

    How can I continually read data from the queue of reading without accidental my output table?

    I tried the survey/Deque method, but it works well for me. Is someone can you please tell me what is the best practice for continuously reading the CAN data and treatment using drivers XNET?

    Thank you

    Sam

    Looks like you want to use with your berries shift registers. Discover this Subvi, which is part of the expedition OR XNET examples. You can find examples from the Finder example under help > find examples.

    Apart from converting it the image into a string, the additions loop the string to an array and use the shift registers to pass the array in the iterations of the loop.

    Is that what you're looking for?

  • Simulation read data file (*.) (DAT) by using the worksheet (file reading eror - zeros)

    Dear OR community,

    IM pretty new in LabVIEW, so I have a few broblems with reading the data.

    I take a screenshot and mark a problem like part - A and part b below:

    The description of the goal:

    I do a mathematical simulation, using the old software whitch exporting results as shown in 1... DAT file, as it shown in the picture (Notepad).

    First of all I need not read these data then I need to draw the graph XY.

    Description of the problem:

    I created a LabVIEW program and im using a funciont reading of spreadsheet per section B - but when im trying to read data im getting all zeros...

    so I can't identify my problem... What is the problem?

    I try different file to read its Case_test_working.txt and everything is good with this data but when im trying to read *. DAT file zeros is array...

    I tried to use seperator different symbols, also try to imort data to exel then export to *.scv, *.txt formats, but the performance was the same as that indicated in part-A.

    Whenever I get zeros, but not a results as in *. DAT or another file format exported with the same data.

    Please be respectifull and understand that im still newbie in labview but I think its excellent software of filtering of the analysis of data and calculations, so I want to master this software for my future use.

    Respectfully,.
    Tomas E


  • read data with rs-232 port

    Hello

    I need to read data from an instrument using RS-232 serial connection. The instrument transmits data as soon as it is turned on. the power button is on the instrument, and I need to send a signal to transmit data. I use NEITHER usb to RS232 hub as my laptop is not a RS-232 port. I tried the basic writing and read.vi but can't get the buffer.

    Setting for serial port:

    Bits per second: 9600
    Data bits: 8
    Parity: None
    Stop bits: 1
    Flow control: no

    Transmitter of data is in the format below

    19/11/08; V0.48 pressure; UNITS = lb/po2; ALARMS: HP1 = 0.00; LP1 = 0.00; HP2 = 0.00; LP2 = 0.00; HP3 = 0.00; LP3 = 0.00; HTM = 0.00; LTM = 0.00;
    Sensor 1 ID = S1-220160-1008; MAXP = 6.03. 14/11/08; 0003-PZ =; CF1 = 1.081; CF2 = 0,953; CP1 = 54.00; CP2 = 6.00; CCF = 1.000; CPZ = 00000
    Sensor 2 ID = S1-220161-1008; MAXP = 6.02; 14/11/08; PZ = 00002; CF1 = 1.012; CF2 = 1.013. CP1 = 54.00; CP2 = 6.00; CCF = 1.000; CPZ = 00000
    3 sensor disconnected;
    RT, P1, P2, P3, TM
    10:54:09, 0.02 0.02,-.-, 0.02,.

    Can someone help me understand why the program fails to read the data.

    Thanks in advance,

    Rambeau

    Try to run with Hyperterminal to see if you have found anything of your device.  When Hyperterminal works, then try your VI.

    You don't need really the business structure in your vi.  You wiring is difficult to keep up with all these curves and segments being hidden.  Here's how your vi should look like:

  • I need my Vi to save only one point of data every 30 seconds

    Hello

    I have trouble getting my VI to make only one point of data every 30 seconds. I collect a couple and the temperature. If you take a look at the queue of lvm, you will see that I have two data points every 30 seconds. I want only the VI to take one. I can do this by going to the DAQ assistant and change the mode of acquisition of N samples 1-sample (on request), but if I do this I am not able to see my couple of graph in real time.  In addition the VI takes data about every 30 seconds. Is there a way I can strengthen this also?

    1. change your graph of couple to be a graph.  A graph has a history associated with him, so he keeps old values in a circular buffer for you.  A chart shows just the last thing written in it.

    2. change your sample of Compression to be 64.  It is currently set at 30, which means that you will end up with 2 samples in your data.  That's why you write 2 samples when write you it.

  • play sounds temporary and file of your choice when reading data with VISA functions?

    Hello.

    I read the function of reading data with VISA and then I use as multiple functions to display data on the graph. everything is OK.

    now, I want to play a sound specified (like a song in my desired folder 3s) signal which cross above the specified value range. then after the desired time, it will wait still new cross above the specified value and this repetition of the procedure until I stop the program.

    Data MCU is from and it does not stop when his game system and what system of incoming data for this part (his play) will ignore them pending that outdated.

    I use this for reading data and part VI mentioned which belongs to her is empty and I don't know what I have to do?

    altougth I use an another while loop for his apartment because I want to save time CPU.

    Thank you.

    I recommend you do the data type of the notifier a cluster that contains a path and a numeric (double).  The path indicates the reader what file to play.  Digital is the duration.

    Now in a way a bit complicated, but really good stop your second loop.  Do not use a second notification.  Instead, send the normal notification but not use a path for the path in the cluster.  Your second loop can write a check for the path of a not and stops when that is received.

  • get date and time seconds

    I am using get date time in seconds, the function to send the date and time to a sub vi where I can use it to calculate the time difference in timestamps of waveform and the hour when he began to get the time in seconds. So I wanted to know if I pass this value to a sub - vi will be this value constantly updated in the sub - vi or it will remain constant until the sub - vi is finished.

    Yes it will remain constant because the time was read only once, to hand.  Any value is passed to the Subvi remains the same.  If you want once updated, you must put the function get Date/time inside the Subvi.

  • Reading data Zumbach USYS

    I'm looking for a driver or a VI read data of diameter of a Zumbach USYS.

    We will acquire 5 or less reads per second for 5 hours.

    Has anyone interfaced with a Zumbach USYS?

    Is - what the Zumbach has a RS 232 port.

    Can I just put a sub 'read rs 232' vi in my loop to capture playback in diameter?

    Or should I create a RS 232 interface with the Zumbach driver?

    Thank you

    Bill

    I worked with a probe diameter Zumbach laser in the past, although not this model. The probe was a series very simple ASCII protocol which basically just sent two diameters that he measured in a single case. I think that the structure has been documented in the material, but if not, you can also just read data and see how it is structured.

    To answer your question - Yes, you would simply use a VISA to read data from the serial port.

  • Reading data SCXI-1600

    Hi Experts,

    I'm new to this interface SCXI. Kindly help me in the framework

    I'm developing an application that will be using the SCXI-1125 and SCXI-1600 controller module. In the application, I want to allow the user to configure the different tasks in the front panel.

    What are the necessary controls in the front panel to allow the user to configure the task

    How to read the data of the SCXI-1600,

    How to differentiate the eight channel data from 1125 SCXI thro SCXI-1600

    Thanks in advance

    True, you can't simulate the SCXI-1600. This means that you will not be able to run your code without the hardware. For simulation purposes, you can, however, use another device that would work in the same way for the SCXI-1600 in terms of triggering, resolution and the frequency of sampling.

    In regard to programming, would use it DAQmx as I'd mentioned. There is no specific examples for the SCXI-1600, but you really do not need them. The SCXI-1600 is basically a data acquisition module, which is located in a SCXI format with a USB connection. Your software is concerned, you will use DAQmx to read data from it. Then, take a look at DAQmx examples as data on data acquisition devices.

    Your task will define how many channels you will read. Since you are reading a mixture of measures (temperature, pressure and tension may be simple), you will need to decide whether to create separate tasks for each of these measures that are configured to be specific to this type of measure, or to create a task that reads simply all channels not adjusted values (i.e. raw tensions) and then put you in the scale of values in your code. If you open the example Finder and navigate through the input and output hardware tree-> DAQmx-> Analog measures you will see different categories for types of measure. Many of them have graphics.

    If you have not already done so, you can start here: http://zone.ni.com/devzone/cda/tut/p/id/3116

  • How to read data in Adobe Flash and align it to look like it's column?

    I am doing an application that already exists, but I add a few improvements. I'll explain what this app is. There is a server and client side. The client side adds data to the Access database (the columns are time, name and surname). On the other computer is an application that displays this data (I don't know if he reads a database or another type of file, but I did a database). I know that server-side plays an .swf Flash file. This screen stays for about 30 seconds and then the application plays videos in the video player installed (ads, this model is connected to a TV) for some time and then the screen goes back to the display of the data.

    I'm 18 and I have very limited knowledge of Adobe Flash (I learned something at school). I've done completely client-side app. I now how to create server-side. My main problems are: how to connect to Adobe Flash to the database (is it possible to transfer this data to any other file that can be connected to the Flash?), how to read data from database for Flash and how to display it. I don't want to display the data in the grid. In the application that already exists, each word is like a new text (tool in Flash) and it is aligned. Is it possible to add a loop that creates new texts and plays database cell? How to refresh the Flash screen?

    I know it's a very complex issue, but your help would be very appreciated. I did on the client side in Delphi. If you need more information or if you do not understand something of my explanation, don't bother to ask. Thank you!

    You can transfer data back and forth between Flash and database on a server with PHP as the intermediary.  If you are looking for Gioogle use terms like 'AS # PHP MySQL tutorial' (fillin 2 or 3 for the ' # '), you should be able to find something to help you along there.

    What about adding new textfields and harmonizing, it depends on what version of as you use.  In AS3, you use just...

    var tField = new TextField();

    tField.x = a value to match.

    addChild (tField)

    As far as refreshing goes, this would require removing all Textfields you added and re-create new ones like you did the first time.  Yet once, it depends AS version that you use.  In AS3, you can use removeChild()

  • Reading data from a text (JS CS3) file tabs-delimited

    Hi - I'm working on a script to read data from a text file and use in a dialog box. But I hit a wall.

    I used a script from a previous post that defines a variable text document when the user script he chooses from a drop-down list.

    var myDialog = app.dialogs.add({name:"Map",canCancel:true});)
    {with (MyDialog)}

    {with (dialogColumns.Add ())}
    {with (borderPanels.Add ())}
    staticTexts.add ({staticLabel: "choose the location :"});})
    {with (dialogColumns.Add ())}

    var file = File("~/Desktop/myPlacesfile.txt");

    leader. Open ("r");
    var str = file.read ();
    leader. Close();
    var myPlaceList = str.split (/ [\r\n] + /);
    var myPlaceMenu = dropdowns.add ({stringList:myPlaceList, selectedIndex:0});})
    }
    }}}
    Ditto var = myDialog.show ();
    if(myResult == true) {}
    If (myPlaceMenu.selectedIndex == 0) {}
    myPlace var = ' - undefined ";
    } else {}
    myPlace var = myPlaceList [myPlaceMenu.selectedIndex];
    Alert (myPlace);
    }

    myDialog.destroy ();
    }

    That's what I do now:

    The text file is in this format:

    Value1 value2 [TAB]

    Value1 value2 [TAB]

    Value1 value2 [TAB]

    I need to have the drop down dialog box show only the value 1, and after that the user selects, the script returns only the value 2. (The alert is just there to test - I'm doing something else with the variable).

    Is there a way to view the first part of a tab-delimited line in the menu drop down and return the second half as a variable?

    Any help would be greatly appreciated.

    Thank you

    One of the possibilities is that it. Create a table to the left of the values of the tab of the dialog box. Then create an object that you use it as a table of correspondence. Roughly as follows:

    same thing as what you have

    leader. Open ("r");
    var str = file.read ();
    leader. Close();
    var array = str.split (/ [\r\n] + /);

    'pairs' are the table of correspondence

    pair of var = {};

    as before, 'myPlaceList' will be used for the menu drop-down
    var myPlaceList = [];

    var v;
    for (var i = 0; i)< array.length;="">
    {
    v = table [i] .split ('\t');
    pairs [v [0]] = v [1];
    myPlaceList.push (v [0]);
    }

    Add the drop-down list as before:

    var myPlaceMenu = dropdowns.add ({stringList:myPlaceList, selectedIndex:0});})

    the table of 'pairs' correspondence is used as follows: pairs ['value1'] returns 'value2 '.

    so in your script that would be:

    myPlace var pairs = [myPlaceList [myPlaceMenu.selectedIndex]];

    Peter

  • It takes 40 seconds to start firefox. Would it be faster? How?

    before the opening of firefox it takes 40 seconds. What could be the problem or is the normal time to open?

    One possible cause is security software (firewall) that blocks or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox in the list of permissions in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

  • My site optimized (22-59K) uses a grid for layout system. It takes 10 + seconds in Firefox 7,8,9 to load, other browsers need less than 1 second. Y at - it other that to use a 2-column layout, some recommended grid with which Firefox gets along?

    Someone commented ago about 9 weeks for my site to load very slowly. I tried and had no problem.

    But a few days ago, I realized that the first call (after rebooting the system) in Firefox 7, 8 and 9 of Firefox Firefox takes 10 + seconds (white screen) while other browsers have need of about 1 second. After the initial call each page loads faster than in other browsers.

    Without content management system, I got the same results. In simply removing things from the grid of my stylesheet, pages loading less than a second. I tried other grids http://cssgrid.net/, http://www.webdesignerwall.com/demo/simpler-grid/940grid.html , but had the same number.

    A identify the extension that is causing the problem in your case?

    He is always unpredictable, how the extensions behave with a new version and in case of problems you can contact the developer of the extension to inform him about the problems.

Maybe you are looking for