data transmitted from dequeue function measure file incorrect

Hello

I'm under Labview Base 2013 and have a vi that reads data from a RS232 port and a digital port OR-USB6002.  I decided to split the loops in consumers/producers, using the functions of the queue, but ran in four snags with the loop of data recovery.

(1) the digital pulses are displayed correctly in the USB Signal loop, but the recovery loop data does not display data RS232,

(2) combined in the loop of data recovery in the file of measurement data to write, but are not properly separated in their columns, i.e. a column is displaying data or loops

(3) stop button is throwing error 1, incorrect path

(4) thumbs real control when it is plugged into the loop of data recovery and in signals combine to measure file causes the vi runs correctly.  It runs but does not display the data in the tables on the part of the loops and no data is written to the file of measures.

I added an indicator in the loop of RS2323 and it appears the data correctly on the front panel, but does not appear in the graph.

I am able to run this vi without the functions of the queue and simply write data files of two separate measures, but these are forces me to synchronize the data set later.  Not quite what I need.

Image attached vi.

Thoughts?  Will be streaming to TDMS work better to keep separate data streams?

You think that you have two queues, but you don't actually have.  You named your queues with the same name, so they are the same queue.  So you have race conditions including dequeue will get the data.  Just remove the string names for constants, and it should work perfectly.

Tags: NI Hardware

Similar Questions

  • Call a script from a function sql file.

    Hello
    I need to call a script file sql from a user-defined function. Currently I am doing this in Oracle SQL Developer. I tried to call with
    @ {filename}, EXECUTION IMMEDIATE etc, but nothing worked. I get the compile error.

    Basically, my need is to call catldap.sql file so that DBMS_LDAP package gets loaded and then I can call this API functions.
    Please let me know if this is possible to do in a PL/SQL function.

    Thank you
    NGO

    user784520 wrote:

    I need to call a script file sql from a user-defined function.

    Not possible... and it seems that you do not fully understand the client-server in the context of Oracle.

    All SQL and PL/SQL are parsed and executed by an Oracle server process. Engines SQL and PL/SQL is expecting a single command at a time block. Any of these can accept a series of commands in a single call and then runs them in turn. The SQL engine expects a single SQL statement at a time. PL engine provides an anonymous PL/SQL block for both.

    This server process can not also enter the local file system to access the script files. Nor can he hack it on the network to access the script on the client files.

    So that the server process to access local files, a Directory object must be created and the current Oracle schema must read or a write access to this directory object. Sound security principles apply.

    There is no PL/SQL command to run a script. Do not confuse SQL * more (this customer has a very limited vocabulary) orders with PL/SQL commands. SQL * Plus runs its own orders... and send SQL and PL/SQL commands (a statement block a time) either repaired and running Oracle server process.

    It's also a very bad idea to run the external script content from within an Oracle server process - as this script resides outside and so outside the Oracle security mechanisms. This means that it is fairly easy for a person to access this script, compromise and then you inject and execute the contents of this script in the database.

    It is not good security.

    Latest issue - it's even worse to have the PL/SQL application dynamically create (or try to create) parts of the Oracle data dictionary and calling PL/SQL interface.

    The database must be installed correctly - and that includes loading and execution of the required rdbms/admin scripts during installation. It makes no sense at all for the application code to try to run these scripts. It raises many questions, including getting to allow the full application and full SYS code access to the instance database. A very serious breach of security.

    I agree at all with the approach to use.

  • How to transfer data from the data in table 2D only once file?

    Attached file will write same data in table 4 times 2D file. Output must be in a table 2D.

    Someone will provide a solution or a reason to explain why the data are been ouputted 3 more times? Thank you

    I already told you a better and more effective method. The function of reading worksheet is on the exact same range as your text file and does everything for you. If you insist for some reason strange kernel to reinvent the wheel and write your own code, take the correct path. The use of 4 separate spreadsheet String to Array is the cause of your problem and I already said too much. Don't you think that get you 4 times the data is in correlation with the fact you are using 4 times the functions necessary at all? It is simply not true. Look at the diagram-writing block on a spreadsheet file.

  • Control of data rows Excel (write on a file of measure)

    Hi all

    Objective:

    Get a bit of a live waveform of two pressure sensors, as well as calculate the differential pressure. The LabVIEW VI is intended for students for an exercise in module, in which data are exported to an excel file for the students to perform other calculations. Excel file must contain data from the beginning to the end of a race.

    Problem:

    Pressure sensors work well, waveform table works well, but when you stop the collection of data, the amount of lines in the file Excel output will reflect the number of samples per channel of the DAQmx Read Block (10 = 10 rows of data, 100 = 100 lines, etc.).

    I would appreciate some advice on how to conduct the data collection in the part worksheet from start to finish, without this affecting the aesthetic experience of the student (by that I mean the number of channels of the > 10 sample will cause some lag in the waveform, jerky). I tried to resolve this issue with something in the sense of Tank1Solution.png without success. I've included a photo of the original block (Tank2Block.png) and so I worked the file VI.  Once more, any help would be much appreciated, I'm not well versed in LabVIEW and I do not know how to address this problem effectively.

    Some guys are always doing things the hard way

    Of course, you need a son to ai0 - ai2 and ai1 - ai9.  This linear scale DAQmx is of course very convenient! and hey, the TDMS files import beautifully into Excel! the addon is there then why not just open a session data?  TDMS is much more portable than xlsx.

    A few additional remarks. (a) you can't stop this vi before you press Go-who needs a fix. (b) Create scale is likely to return an error as it is the name being illegal. I named it that to show the source of the scale and offset values.

  • Configuration 'use the next available filename' in function 'write file measure. "

    My signal to record project and recording by using the function "write into a file position. I want to make the recording of signals multiple segments must have configured option «use the next available filename» For example, if the original file is data.tdms, then it saves the file in: data_1.tdms, data_2.tdms, data_3.tdms,...
    Do I use a button control enable and disable the feature of writing.
    In the past, I did normally. Now, I can't do more, now, each writing new data have been add in a single file created without the next new file as you wish, it has almost become an option "add to the file".

    I use LabVIEW 2013

    Hello ducta9,

    Looks like you're currently writing custom file Express VI configured to 'save to file' - this means that all the data for a given session will be saved in the same file.  The file number will be incremented only once the application is restarted or the Boolean Reset entry has the value True.  If you want to save on a series of files, select the option "Save to a series of files" and configure the Express VI as needed to generate new files at intervals.

    If you want to write blocks of variable data to a new file size whenever the user clicks the Activate button, you may be able to get away with wiring just a real constant for the Reset.  I would recommend when to even take a look at the options available in the recording of a series of settings files.

    Best regards

  • DirectX on Windows 8 (64-bit) "your DirectX Runtime is up-to-date. Download and install this file from Microsoft. ""Setup could not download the file. Please try again later or check the connection to the network. »

    So I tried to get this to work at least for a day now, but whenever I try to launch my new game I'm away I kept getting this error: "your DirectX Runtime is up-to-date. Download and install this file from Microsoft. ' When I was re-directed I downloaded, it opens and clicks on agreed and all this things, but after 10 seconds initialization, it gave me this error: "Setup could not download the file. Please try again later or check the connection to the network. " I checked all that nothing seemed to be wrong, I did it again and again and again. So I just went to a solution or any news for DirectX. So far, no luck.

    I am running on DirectX 11 right now, is if there is a new DirectX or am I a jerk, and that is a different problem? I can't understand it.

    Thank you

    Hello

    Try this link... it's a complete Installer for DirectX Runtime June 2010... This is an optional package that use a lot of games...

    http://www.Microsoft.com/en-us/download/confirmation.aspx?ID=8109

    The file is self-extracting, so take note where extract you it to.

    Open the folder, and then double-click DXSETUP...

  • From a function table: invalid data type error

    Hello

    I'm a ORA-00902: invalid data type error when I try to call the function from a select statement below. Here, I am leaving an array from a function.
    create or replace package pkg10
    as
    
    type tabletype1 is table of table1%rowtype
    index by binary_integer;
    
    function func1 return tabletype1;
    
    end pkg10;
    create or replace package body pkg10
    as
    
    function func1 return tabletype1 
    is
        v_tab1 tabletype1;
        idx integer;
    begin 
    
        idx := 1;
        
        for i in (select * from table1)
        loop
            v_tab1(idx).name1 := i.name1;
            v_tab1(idx).key := i.key;
            idx := idx+1;
            
        end loop;
    
    return v_tab1; 
    
    end func1; 
    
    end pkg10;
    select * from table(pkg10.func1);
    Please point out to me where I'm wrong.

    Thank you

    Sathya Vamsi says:
    Hello

    I'm a ORA-00902: invalid data type error when I try to call the function from a select statement below. Here, I am leaving an array from a function.

    create or replace package pkg10
    as
    
    type tabletype1 is table of table1%rowtype
    index by binary_integer;
    
    function func1 return tabletype1;
    
    end pkg10;
    
    create or replace package body pkg10
    as
    
    function func1 return tabletype1
    is
    v_tab1 tabletype1;
    idx integer;
    begin 
    
    idx := 1;
    
    for i in (select * from table1)
    loop
    v_tab1(idx).name1 := i.name1;
    v_tab1(idx).key := i.key;
    idx := idx+1;
    
    end loop;
    
    return v_tab1; 
    
    end func1; 
    
    end pkg10;
    
    select * from table(pkg10.func1);
    

    Please point out to me where I'm wrong.

    Thank you

    you try to use a data type of PL/SQL as part of an SQL statement. is NOT authorized.

  • Extract data from Oracle into excel file

    Hello

    I have a requirement where in I need to extract data from Oracle into excel file and the worksheet excel name should be 'given '.
    for example. Excel 'AR Data_DDMMYY' file name and the name of the "Data" sheet excel

    I used the UTL_FILE API to extract the data delimited by tabs that you can open in excel, but it's not exactly an excel file as the name of the worksheet is the same as the name of the file.

    I tried to use utl_file.fcopy and frename.

    Is it possible to do it using PLSQL?

    Select * from version of v$.
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    "CORE     10.2.0.5.0     Production"
    TNS for HPUX: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    Example Code:
    declare
    cursor c is
    select * from scott.emp;
    v varchar2(100);
    f utl_file.file_type;
    
    file_name varchar2(100) := 'AR Data.xls';
    dir varchar2(50) := 'CESDIR191710';
    
    --select * from dba_directories
    
    begin
    
    
    f := utl_file.fopen(dir, file_name, 'W');
    
    v := 'EMPNO'||chr(9)||'ENAME'||chr(9)||'JOB'||chr(9)||'SAL'||chr(9)||'HIREDATE'||chr(9)||'DEPTNO';
    utl_file.put_line(f, v);
    
    for i in c
    loop
    
    v := i.empno||chr(9)||i.ename||chr(9)||i.job||chr(9)||i.sal||chr(9)||i.hiredate||chr(9)||i.deptno;
    utl_file.put_line(f, v);
    
    end loop;
    utl_file.fclose(f);
    
    --utl_file.frename(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls', false);
    utl_file.fcopy(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls');
    
    end;
    Thank you
    Imran

    Hello

    I tried to change the .xlsx to .xls and it gives a note at the opening of the file "the file you are trying to open, abc.xls, is in a different format that it is specified by the file extension. Check that the file is not corrupted and precedes from a trusted source before you open the file. Do you want to open it now? »

    When you rename the file does not solve your problem.
    Anton Scheffer package generates a file in format xlsx Office 2010. When rename you it with the .xls extension, then Office 2010 will give you the warning that the file format does not match the extension.

    but the requirement has to generate excel 2003 file.

    The xml_spreadsheet package writes a format that was introduced with Office 2003, but you must use .xml as extension in other Office 2010 will give you the same caveat.
    To write the real xls version (binary), you can use Apache POI. You will need to import Java classes in your db and write a PL/SQL wrapper. Or you can use one of the options above, writing the output to a windows server and then use Excel to open and save in the required format.

    You must decide whether it is easier to write the binary xls format or to convince the customer to accept other formats that can be opened with Excel.

    Concerning
    Marcus

  • write to measure file vi bug?

    Hello.

    Looks like I might not be the first with this.  I suspect...

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=234485&query.ID=1018110#M234485

    I still after that I don't know how many hours days etc., failed to do this work.   I had to go and do a 'real' job, as it is called here for a few days or so, don't play no not with the software, however, is that asked me to do.

    This is all about 'Writing as Data File' express VI comes with LV 2009.   Used as Cree in the document "Getting started with LabView" infamous.   Running on XP Pro, perfectly (until tomorrow "Patch Tuesday" maybe.)

    Writing on a data file Express VI:

    It works the first time, no mistake, a lot of data, the first time entry to activate is made true, even if I leave it is true, thankfully, it creates several KB of the planned just as data file.   Do activation enter False, writing to the file STOPS, again just as expected.

    New do right and produces an error (the chemin\nom of the input etc file is still there and equally valid that it has always been) and no data is written in the file, despite no changes to the inputs of the VI (with the exception of the data of unique signal value)

    However, if give you him a new one (same file path\new) file name, and then he would write in the new file every time.  It's without blocking the program as a whole.

    I can navigate between two files just fine.   But it just will not write to a file first, that it is "Re" active after a deactivation is used.  Re entering the same path\filename is not a solution.  It must be another to wake up the thing.

    As it is, it's worse that useless for any serious application, and as the other party, I can't imagine how he got through the mill of QA.   As the other party, it is sold on the fact that it is supposed to be easy to plant items/icons on the comic and join the dots to make things work.  While largely true and there are a lot of good stuff here, there are a lot of things that exist for travel upward and confuse him.   The help is too small.  I get the phone call and email to other types of NOR, but no solution to the problem.

    If you want a copy of the VI program all the so-called fine, just someone tell me what and how to download it on this forum (very strange).  I can upload images, but I can't find a way to "attach" files, etc.  Or to work through the Getting Started document (as I have now three times!) and you will find the problem.

    Oh, and I seem to have lost the indicator as to how much
    days of "evaluation" I left.  I can't find a switch to make it appear that
    Gray more splash screen.

    Kind regards.

    Dave Baxter.

    Technical Director:

    AR - UK Ltd.

    I think that there is certainly a bug.  I can see where it is going, but I don't know why he got that way.  This VI shows the bug in LV 8.6 also?

    Right click on the entry to measurement file Express VI.  Inside that is a Subvi, called ex_subFileWrite.vi.  It is a clone of a reentrant VI, so it is quite difficult to follow execution through it.

    Somehow the first time through she builds and checks the file name based on what comes into it.  She that stores into a shift register.  If you clear the writing to a file, the shift register is stored which is not a constant of path.  Later, when writing is reactivated, it uses just the path (not a path) from the shift register, rather than back in the name of the input file.

    Exactly where this is really out there, I'm not sure, because express VI makes such a spaghetti with inter twisted code for managing all types of files and in writing the conditions and a lot of manipulation of file file path.

    I think the reason that edit the path and even change back works is that there is an initial control if the path is the same and if it is different, it works with the new file name, if it isn't, then it works with what was stored in the shift register.

    A person of OR should look deeper into this substantive code of the Express VI and try debugging.  I think that there is a bug.

    But here's a work around.  Use a select statement to send the correct file name if the writing is enabled, or a file path empty if it is not enabled.

  • prompt user with write to measure file VI

    Hello

    I have a Labview VI who is writing data to a file, currently the file name (path) is written in the section "Filename" of writing on a file measure VI.
    Is it possible that a user can be prompetd for a file name?

    As in,.

    time each time I run the VI a diaglog box appears, which allows the user to type a specific file name (say Run1 or Run 2, etc...). The user types the name of the file must match the name of the file where the data is written (using writing to the file as VI)

    I enclose my vi of the trial.

    Thank you

    lana89

    There is a function of file dialog box, which you can use.  Can be found in the Express-> entry-level or advanced-> palettes files IO.

  • no saved measurement file

    Dear Sir.

    I'm new to or labview and try to get some experiences data acquisition with labview.

    Please find the labview code attached that I made. The problem that I face is that the measure is not saving. I tried all of the computer. Could you please help me find the error in the code as to why the file is not recording.

    Also, the application must send a sinusoidal signal with a servo and to acquire the sensor signals in real time could you please check the code and suggest improvements that I could do about it. Another problem, I am trying to sort is to find a way to get a signal from the ramp. I wasn't able to find the ramp option simulate signal options. Could you please help with it also.

    Concerning
    Sachin

    Hi Salah,

    When I test your VI (after removing the DAQAssistent ExpressVIs), it creates a file of measure at the specified location:

    C:\user\username\Documents\LabVIEW Data\

    (The file must be known as "My Documents" on Windows...)

    You know measurement files have an extension of "lvm" (as configured in your ExpressVI)?

  • Data loss from turnover

    Hello Experts,

    I got backup fully on July 21, 2011 09:00 and I took archivelog all backup JULY 21, 17:00 and then the next day I took another backup full July 22, 2011 09:00, now I have confusion about the backup archivelog all is what he still necessary after the full backup taken on July 22, 2011 09:00

    We can keep data loss and I want to restore the database up to the last full backup of July 22, 2011 09:00 or assume that I lost my archive backup and archive files too, can we restore database without archivelog backup and files?

    Thanks in advance

    Kind regards
    Asif

    Published by: Asif Hussain on July 21, 2011 23:29

    If my database created over 1000 files archivelog 6 months before plowing date, so I demanded of all files from archive until today with the full backup?

    Rep. : No, you must all archive logs after your last full backup taken.

    Created DB: January 1, 2011

    Last full RMAN backup: 20 July, 10:00

    Then to recover the database without any loss of data you need for a full backup of 20 July 10:00 + all the Archives of the newspapers after the full backup.

    # Time based recovery

    bootable media;
    restore the database up to the time "TO_DATE (29 October 10 19:00","MM/DD/YY HH24:MI:SS')";
    recover database until time ' TO_DATE (29 October 10 19:00 "," MM/DD/YY HH24:MI:SS') ";
    ALTER database open resetlogs;

    # YVERT database recovery

    bootable media;
    restore the database to the SNA 10000;
    recover the database to the SNA 10000;
    ALTER database open resetlogs;

    # The sequence in function recovery journal

    bootable media;
    restore the database up over 100 1 sequence;
    recover database until over 100 1 sequence;
    ALTER database open resetlogs;

    Concerning
    Asif Kabir

  • How to remove all occurrences of Yahoo from my "subject: config ' file?"

    Thanks in advance for any help you can offer.

    Somehow, I hijacked by Yahoo yesterday and ends as my default search provider. And, after that, the small magnifying glass where search engines are listed have disappeared. Firefox doesn't have to feel very safe!

    I restored the search "magnifying glass" through "Customize", but I don't want any more 'surprises' Yahoo

    The next four lines are copied from my "subject: config ' file." Are they necessary?

    browser.search.order.US.1;data:text/plain,browser.search.order.US.1=Yahoo
    Browser.Search.Order.2; Yahoo
    browser.contentHandlers.types.0.uri; https://Add.my.Yahoo.com/RSS?URL=%s
    browser.contentHandlers.types.0.title; My Yahoo!

    In addition, these two:

    gecko.handlerService.schemes.mailto.0.uriTemplate; https://compose.mail.Yahoo.com/?to=%s
    gecko.handlerService.schemes.mailto.0.name; Yahoo! Mail

    browser.search.order.US.1;data:text/plain,browser.search.order.US.1=Yahoo > default search engine. This line is necessary, but you can define a different value to replace Yahoo, Google or Bing for example

    Browser.Search.Order.2; Yahoo > if you use the American version of Firefox, this line is not used

    browser.contentHandlers.types.0.title; My Yahoo! > corresponding to the 1st app/site used when you subscribe to a feed

    gecko.handlerService.schemes.mailto.0.uriTemplate; https://compose.mail.Yahoo.com/?to=%s and gecko.handlerService.schemes.mailto.0.name; Yahoo! Mail > these lines define the 1st element in the list that appears when you open a link mailto: Protocol (i.e. an email address)

    To conclude, except the 1st line, Yahoo does not work on your computer, unless you specifically choose to use when a context menu is displayed.

  • on my laptop running windows 7 more information disappeared from the window - topics (file, publishing, display, etc.), address bar and navigation buttons - everything I can see tabs - how do the lack of points to display

    Missing on my laptop running windows 7, all the info displayed at the top of the home page. All headings, i. e. file, change the view etc. disappeared. There is no address bar. There is no "home button", the button refresh, etc.. My wife was using the machine when it happened, so I don't know what she was doing. How to restore these features?

    most of the information has disappeared from the window - topics (file, publishing, display, etc.), address bar and navigation buttons

    When all the toolbars are missing, you are probably in full screen view, press F11 to toggle mode full-screen, or you can move the cursor to the top of the screen.

    The real problems you describe all set thanks to an extension and customization, see 01:10 steps later...

    You can make Firefox 5.0 looks not like Firefox 3.6.19, see numbered 1 to 10 points in the next topic difficulty Firefox 4.0 UI toolbar, problems (Make Firefox 5.0, or 4.0.1 resemble 3.6). If you make changes, you must be aware of what has changed and what it takes to use changed or missing features.

    It is much more beyond these first 10 steps in the list, if you want to make Firefox more functional.

    Toolbars and their contents have been rearranged and buttons have been merged dual-use, the net result is that I could see about 25% of what I had before and recorded about 10% of the area of the toolbar with great loss of functionality to hide things that might already be hidden and to create confusing buttons that already have keyboard shortcuts and don't need to be seen. The only good thing that has been ' Ctrl + / ' has been added to hide/show the modules bar that has not replaced the status bar.

  • Writing data to extend the acquisition of data for the sampling rate high file

    These are the tasks that I have to do to take noise measurements:

    (1) take continuous data to USB 6281 Office, in a sample of 500 k (50 k samples at a time) rate.

    (2) save data continuously for 3 to 6 hours in any file (any format is OK but I need to save in a series of files rather than the single file). I want to start writing again file after every 2 min.

    I enclose my VI and pictures of my setup of the task. I can measure and write data to the file continuously for 15 minutes. After that, I see these errors:

    (1) acquisition of equipment can't keep up with the software (something like that, also with a proposal to increase the size of the buffer...)

    (2) memory is full.

    Please help make my VI effective and correct. I suggest to remove him "write in the action file" loop of consumption because it takes a long time to open and close a file in a loop. You can suggest me to open the file outside the loop and write inside the loop. But I want to save my data in the new file, after every 2 min or some samples. If this can be done efficiently without using Scripture in the measurement file then please let me know.

    Thank you in advance.

    This example here is for a single file and a channel, you should be able to loop over that automatically. The background commentary should be the name of the channel, no group namede the name of the channel in the control.

Maybe you are looking for