Write data to a 2D array in different directions

Hello community,

How can I write data to a table in different directions?

Here's my vi, but I don't know how to do it in LabVIEW.

Thank you for your answer

Jeff· Þ· Bohrer says:

I'm off today and I have no available LabVIEW.  I'll look in @ Thursday.  I bet others will fight for a solution.

Well, well, well!  Once the ball 8 missed by a mile!  Nobody went to the city and got jiggy on the problem!  It really was a fun little vi to write.  I'll start with a tease: Code captures (Backsaved to 9.0 because this not depend on features that have not been around for a very long time) to follow in a spoiler.  For those playing the game for fun and games, duplicating the code without looking at the backdoor.

Tags: NI Software

Similar Questions

  • global variable functional to read and write data from and to the parallel loops

    Hello!

    Here is the following situation: I have 3 parallel while loops. I have the fire at the same time. The first loop reads the data from GPIB instruments. Second readers PID powered analog output card (software waveform static timed, cc. Update 3 seconds interval) with DAQmx features. The third argument stores the data in the case of certain conditions to the PDM file.

    I create a functional global variable (FGV) with write and read options containing the measured data (30 double CC in cluster). So when I get a new reading of the GPIB loop, I put the new values in the FGV.

    In parallel loops, I read the FGV when necessary. I know that, I just create a race condition, because when one of the loops reads or writes data in the FGV, no other loops can access, while they hold their race until the loop of winner completed his reading or writing on it.

    In my case, it is not a problem of losing data measured, and also a few short drapes in some loops are okey. (data measured, including the temperature values, used in the loop of PID and the loop to save file, the system also has constants for a significant period, is not a problem if the PID loop reads sometimes on values previous to the FGV in case if he won the race)

    What is a "barbarian way" to make such a code? (later, I want to give a good GUI to my code, so probably I would have to use some sort of event management,...)

    If you recommend something more elegant, please give me some links where I can learn more.

    I started to read and learn to try to expand my little knowledge in LabView, but to me, it seems I can find examples really pro and documents (http://expressionflow.com/2007/10/01/labview-queued-state-machine-architecture/ , http://forums.ni.com/t5/LabVIEW/Community-Nugget-2009-03-13-An-Event-based-messageing-framework/m-p/... ) and really simple, but not in the "middle range". This forum and other sources of NEITHER are really good, but I want to swim in a huge "info-ocean", without guidance...

    I'm after course 1 Core and Core 2, do you know that some free educational material that is based on these? (to say something 'intermediary'...)

    Thank you very much!

    I would use queues instead of a FGV in this particular case.

    A driving force that would provide a signal saying that the data is ready, you can change your FGV readme...  And maybe have an array of clusters to hold values more waiting to be read, etc...  Things get complicated...

    A queue however will do nicely.  You may have an understanding of producer/consumer.  You will need to do maybe not this 3rd loop.  If install you a state machine, which has (among other States): wait for the data (that is where the queue is read), writing to a file, disk PID.

    Your state of inactivity would be the "waiting for data".

    The PID is dependent on the data?  Otherwise it must operate its own, and Yes, you may have a loop for it.  Should run at a different rate from the loop reading data, you may have a different queue or other means for transmitting data to this loop.

    Another tip would be to define the State of PID as the default state and check for new data at regular intervals, thus reducing to 2 loops (producer / consumer).  The new data would be shared on the wires using a shift register.

    There are many tricks.  However, I would not recommend using a basic FGV as your solution.  An Action Engine, would be okay if it includes a mechanism to flag what data has been read (ie index, etc) or once the data has been read, it is deleted from the AE. 

    There are many ways to implement a solution, you just have to pick the right one that will avoid loosing data.

  • Need help with the data storage store, local array and network connections

    Need help with my ESXi 4.1 installation

    My hardware:

    I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis.  I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.

    The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.

    I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.

    My Situation:

    I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service.  I've set up host via a dynamic DNS service name give me a static hostname on the internet.  I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup.  It is a domestic installation.

    Help with the data store and network:

    I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format.  Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box.  I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.

    I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.

    Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs.  I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top.  I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.

    I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?

    Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.

    You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).

    Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.

    RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.

    You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.

    Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.

    UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.

  • Qosmio X 500 does not write data to any CD

    I have a Qosmio X 500 with windows 7 (64-bit) home about this, my CD-Rom used to work fine, now it reads and serious DVD and blue-ray, but it will not read or burn CDs.

    I have no more or less than the registry filter.
    How can I solve this problem?

    Hello

    Have you tried different CDs from different manufacturers?
    Try the CD R TDK.
    I use this kind of CD and never had any problems, but had problems to write data to the other CD.

    In addition, you can try to clean the laser lens you can use a piece of hydrophilic cotton and a very small little alcohol which should be good enough.

    By the way: fire what app do you use? In my opinion Nero is great software, one of the best software in this segment.

  • Satellite P500/01R reads the data, but cannot write data on CD files

    I recently bought a laptop Satellite P500/01R. I am able to read a data CD, but can't write data on CD files. The CD is read/write.

    Any ideas?

    Hello

    Have you tried different burning software?
    I m using Nero and in my opinion one of the apps better combustion.
    Here, I can choose between CD, DVD, DL or Blueray (only possible if the CD/DVD drive also supports this).

    Have you also checked diffΘrents CDs from different manufacturers?
    You should do this since not all disks are 100% compatible.
    I had several problems with different CD or DVD in most of the cases it was a compatibility issue, I tried TDK and this kind of drive is compatible with my CD/DVD drive
    I m using the standard of R.

  • DASYLab how to write data to a file every 15 minutes

    Hi all

    I use dasylab and datashuttle/3000 to record data. What I want to do is to write data to a file every 15 minutes. I use the milti-file, which can write data to the file diffenret, but how do I control the timing, as the journal data every 15 minutes automatically.

    The other problem is that I use FFT analysis of the frequency spectrum. How can I determine the value of frequency where the peaks that happens.

    Thank you

    Write less data in the file that you have collected requires the reduction of certain data.

    There are three techniques to consider.

    With an average or an average of block - both reduce the data by using a function of averaging, defined in the module. To accomplish the reduction of data, choose block or RHM mode in the dialog box properties, and then enter the number of samples/data values that you want to reach on average.

    Average - when you reduce the data, you also should reblock data using the block length of the change in the output parameter. For example if you enjoy at 100 samples/second with a block size of 64, the average module configured on average, more than 10 samples will take 10 times longer to fill a block. The initial block represent 0.64 seconds, the output block represent 6.4 seconds at a sampling rate of 10 samples/second. If you change the size of output in one block, the program remains sensitive.

    Average block - average values in a block against each subsequent block, where the average is based position. The first samples are averaged, all second samples are average... etc. The output is a block of data, where each position has been averaged over the previous blocks. This is how you will be an average data FFT or histogram, for example, because the x-axis has been transformed in Hz or bins.

    Second technique - separate module. This allows to reduce the data and the effective sampling rate jumping blocks or samples. For example, to reduce the data in 1000 samples / second to 100 samples per second, configure the module to keep a sample, jumping 9, keep one, jumping 9, etc. If you configure to skip blocks, you will not reduce the sampling frequency, but will reduce the overall amount of data in a single block 9, for example. It is appropriate for the FFT data or histogram, for example, to have the context of the correct data.

    Finally, you can use a relay and a synchronization module module to control. For example, to reduce a sample data every 15 seconds, configure a generator module of TTL pulses for a cycle of 15 seconds of time. Connect it to a Combi trigger module and configure it to trigger on rising and stop the outbreak directly, with a trigger value after 1. The trigger output connects to the X of the relay command input.

    In addition to these techniques, you can change the third technique to allow a variable duration using a combination of other modules.

    Many of these techniques are covered in the help-tutorial-Quickstart, as the data reduction is one of the most frequently asked questions.

    In regards to the FFT... use the module of statistical values in order to obtain the Maximum and the Max Position. The Position of Max will be the value of the frequency associated with the Maximum value. The output of the statistics module is a single sample per block. Look at the different FFT sample installed in the worksheet calculation/examples folder.

  • Through tunnels of automatic indexation to write data files?

    Hello

    I use neither-controller to control a servo and position and torque data collection. I want to write data to the TDMS files.

    Recently, I learned about the design of producer/consumer model and I thought it would be a good approach to ensure that writing the files didn't slow down my timed loop of data collection.

    However, I also realized that my program seems to work well if I wire the data that I collect the tunnels of automatic indexation. Can I use a structure that executes only after the entire collection of data is made to write the charts that I built to TDMS files.

    Is there a reason that would make the last method against? Can the tunnels of idexing auto slow my loop enough to concern him? I collect only about 5,000 points of data for each channel.

    See you soon,.

    Kenny

    In my opinion, the main consideration is timing.  If you use consumers/producers, you essentially make writing while the data collection process is "pending" the next item to collect.  It should be the case that the consumption will be faster than production, so at any time, 99% of the data are already written, Yes (perhish forbid!) if the program crashes, you already have most of the data on the disk. fo

    Alternatively, you can use the tunnels and send an array of 5000 points (from the tunnel exit) for the writing process.  This requires it to be rather than parallel series - no writing occurs until all the 5000 points are generated, and the writing process, instead of is almost as soon as it starts, takes 5000 times longer (more or less).

    The series is 'simpler', especially for a beginner.  The producer/consumer, if you understand the design model, would be my preference.

    BS

  • How constantly write data in a txt file

    Hello
    first of all, sorry for the bad English, but I have a problem to write data continuously to the txt file... I have a chart 2D with values based 2 sliders (sliders values) and some functions I want to interpolate the value by using the bilinear method... and after that the value of the sliders, interpolated value and the value of the closest points, I want to write to a file txt... for every 2-3 seconds perhaps, it would be ideal to be formatted as ::
    x y f f1 f2 f3 f4
    ..   ..  .. . .. .   ..   ...  . ..
    ... ...  ..    ...   ...   ...   ...

    but... first of all I have a problem with writing data, because every time he deletes old data and simply write a new and it is not horizontal... I am very very new to this (it's obvious) and any help will be very grateful 
    Thank you

    Diane beat me to it, I made a few changes to your code, so I'll post it anyway.

    As proposed, please go through the tutorials.

    I added an entry to the worksheet at the end node just to show it can be done at the end so. Table of building on a while loop is not very efficient memory, but it's just to show you what can be done. If you plan to go this route, initialize an array and use the subset to the table replace.

    All the best.

  • How to write data to the XML in VBA 6

    Hello

    I am using vba 6

    I have different data like strings, integer etc I get the object group tag.

    I want to write data of XML on the button click.

    and save this file on the way to my pc.

    Bad forums. Message here:

    MSDN - MSDN forums - Microsoft

  • Error renaming dates to an associative array of type date

    Hi all

    I am facing issue while assigning dates in an associative array of type date:

    Oracle version:

    SQL > select * from v version $;

    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    AMT for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    Stored procedure, I try to write is as follows

    1. create or replace procedure (jp1)
    2. p_start_date default date trunc(sysdate,'MM')
    3. p_end_date date default trunc (sysdate)
    4. )
    5. is
    6. number of l_no_of_days;
    7. type t_date_id is table of date
    8. index by pls_integer;
    9. l_date_id_arr t_date_id;
    10. Start
    11. l_no_of_days: = p_end_date - p_start_date;
    12. for i from 0
    13. .. l_no_of_days - 1
    14. loop
    15. l_date_id_arr: = p_start_date + i;
    16. dbms_output.put_line (p_start_date + i);
    17. end loop;
    18. end;
    19. /

    I get error on line 14 when compiling it. and the error message is as follows:

    JP1 PROCEDURAL errors:

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    14/5 PL/SQL: statement ignored
    14/22 PLS-00382: expression is of the wrong type

    While studying this, I tried the value of (p_start_date + i) using dbms_output.put_line and the output is so date itself.

    1. create or replace procedure (jp1)
    2. p_start_date default date trunc(sysdate,'MM')
    3. p_end_date date default trunc (sysdate)
    4. )
    5. is
    6. number of l_no_of_days;
    7. type t_date_id is table of date
    8. index by pls_integer;
    9. l_date_id_arr t_date_id;
    10. Start
    11. l_no_of_days: = p_end_date - p_start_date;
    12. for i from 0... l_no_of_days-1

    13. loop
    14. -l_date_id_arr: = p_start_date + i;
    15. dbms_output.put_line (p_start_date + i);
    16. end loop;
    17. end;
    18. /

    output of the

    1. exec jp1

    is as follows:

    1ST DECEMBER 13

    2 DECEMBER 13

    3 DECEMBER 13

    DECEMBER 4, 13

    5 DECEMBER 13

    DECEMBER 6, 13

    7 DECEMBER 13

    DECEMBER 8, 13

    9 DECEMBER 13

    DECEMBER 10, 13

    DECEMBER 11, 13

    DECEMBER 12, 13

    13 DECEMBER 13

    14 DECEMBER 13

    15 DECEMBER 13

    16 DECEMBER 13

    17 DECEMBER 13

    18 DECEMBER 13

    I see the release date itself. so why he throws error while the same assignment to an associative array of type date.

    I tried Google too for the same but without success.

    Any help is appreciated in this regard not or any pointer another thread on the internet or in this forum.

    Thanks in advance

    Jagdeep Seven

    Read associative arrays:

    1. create or replace procedure (jp1)
    2. p_start_date default date trunc(sysdate,'MM')
    3. p_end_date date default trunc (sysdate)
    4. ) is
    5. number of l_no_of_days;
    6. type t_date_id is table of date
    7. index by pls_integer;
    8. l_date_id_arr t_date_id;
    9. Start
    10. l_no_of_days: = p_end_date - p_start_date;
    11. because me in 0.l_no_of_days - 1
    12. loop
    13. l_date_id_arr (I): = p_start_date + i;
    14. dbms_output.put_line (p_start_date + i);
    15. end loop;
    16. end;

    ----

    Ramin Hashimzade

  • Write data to text file generates the error

    Hi all

    I need to write data to a file using TestStand and I configired the entrance and outside like below, but I get the error message like ' an error occurred 'Write' calling in 'ITextStream' of 'Microsoft Scripting Runtime' [error Code:-2146828234].

    I followed the same procedure for reading text that works very well for me.

    Hope others might have faced the problem / or I do something wrong.

    Do what is necessary.

    Found problem while opening a file I used IO Mode ForReading instead of ForWriting.

    Unnecessarily the thread created, but then hope this can help someone later when they deal with a particular issue.

  • How to write data in mode intertwined with TDMS C DLL 2.0?

    Hello

    How to write data in mode intertwined with TDMS C DLL 2.0?

    I use DAQmx features in Visual Studio C++ without Measurment Studio.

    This function returns the data in interlaced mode.

    How can I configure the functions of DLL C TDMS to store this data in the tdms files?

    I see that it is not possible with the PDM version 2.0 with 1.0.

    Thank you

    -TDM C Dll is not able to do

    -TDM header writer may be usable for this but is not able to be used for tdms files.

  • USRP-1074118634 error code, niUSRP write data Tx (CBD Cluster) .vi < ERR > cannot find a GPSDC

    Hello I want to generate a GPS using the USRP-2920 and then plug it into a GPS evaluation kit to verify if the evaluation board can see the satellites, so I run the example

    https://decibel.NI.com/content/docs/doc-22178

    Everything looks OK, it starts with the legend Buffering Waveform, when it reached 100 I clicked the play button and the program stopped and send this error code:

    -1074118634

    and source:

    niUSRP write data Tx (CBD Cluster) .vicould not find a GPSDC

    Could someone help with this?

    Thank you

    Carlos.

    Carlos,

    What versions of LabVIEW, NI USRP and GPS Toolbox driver do you use?  I noticed the example that you referenced the States ensure to use an external OCXO since the TCXO on the series 292 x is not precise enough.  What is happening in RefIn?

  • DASYLab Write Data Module output Format

    When writing the fields in an output file in ASCII mode with the option writing data Module and copy entries, entered the order in writing? Or, if the output field order can be changed? I guess the order of the output being written is 0. n. I can redraw the module so that the entry order corresponds to the order of output you want, but it makes the messy Visual design. I would like to be able to specify that the entries (copied to the outputs) are 1.n and written as 0.. n-1 and the 0th entry is written to the nth output. If I can manipulate their order in the module or do I redirect the entries to match the order of final output?

    Thank you

    The list of strings in the target file is determined by the entries in the module. They are always written 0... n.

    There is no way to change the order inside the module. You need to link the entries in the order you want to that they have written.

    The option of copy entered in any module is simply a way to keep tidy worksheet. It allows to "pass" the module. No processing is done, and the output channels are exactly the same as the input modules.

    Checking the option in the module to write data does not affect the file that is created.

  • How to write data in an Excel spreadsheet protected (with unlocked cells)?

    Hello!

    I have LabVIEW 8.2 and I often use the report Generation Toolkit for Microsoft Office' to save data in Excel spreadsheets. So far, I only used the leaves unprotected.

    But right now, I have an Excel worksheet protected by some cells unlocked. If I open the file using Excel I can fill these unlocked cells without any problem. However, I am not being able to fill these cells unlocked using LabVIEW and the Toolbox. I have a few questions:

    (1) is it possible to use LabVIEW to write data in a protected Excel worksheet, even though she has unlocked the cells?

    (2) if it is possible, how can I do that?

    OBS: I noticed that if I unprotect the sheet, I can write data to the file. But I don't want to be protected and the protection of the sheet, since users will not have the password.

    I hope that I was clear. I really appreciate any help you can provide.

    Thanks for the replies.

    Use ActiveX I could write the cells individually. By doing this, I could write in the unprotected cells without any problem. hour

    Probably, the Toolbox has been activated somehow the overall protection of the spreadsheet and Excel was not allowing writing.

    I had never used before ActiveX, so I had to learn it from scratch. I was looking for some tutorials on the internet but I have not found much information easy. What struck me the most help is an example that comes with LabVIEW named "Excel - write Table.vi. After some tests, I was able to open my data protected from the worksheet and fill in the unlocked cells.

    Thank you guys!

Maybe you are looking for

  • What browser will continue to support Mountain Lion

    Now that Google Chrome + chrome don't support more Cougar + Firefox is just announcing that from July 15, 2017, they will not support Mountain Lion + Opera, after version 37, also will not support ML, Safari 6.2.8 will be acceptable for use with the

  • HP Pavilion 2081sa g6 keys

    Hi I have a HP Pavilion laptop 2081sa g6 and press ESC and del key have detach during use and cleaning somehow. I tried to press each key to keep them however they do not attach, and I do not understand how. I have the clips in the key and when I try

  • Software MPT does not recognize my phone A810

    Hello I installed MPT from the CD and also auto-mis to update the software from the internet to the latest version as of now. I use the USB cable to connect the phone to my laptop WinXP SP3. It's that - the phone is not detected - even after 30 minut

  • Unable to connect after installing Windows Update

    Just did, and she came back Stan Gloria Guest administrator

  • HP 7550 insert plain paper error

    I've owned an HP 7550 photosmart printer for years and it always worked flawlessly, until recently. After inserting the two new original HP print cartridges, I get a message saying "inserer insert plain paper, then press OK" for calibration. After th