Resizing by program "decimate the Array function.

Is it possible to resize programmatically 'decimate 1 matrix function D' or another way to do it (I hope that I am not missed something easy)? I need to decimate a table 1 d in 'X' number of rows according to the 'X' channels that have been read from a file.

For example, if I have a table length 1 d 18, and I read in 3 channels I would an array of 3 x 6. If I have a table length 1 d 18, and I read on 2 channels, I would like a table 2 x 9. Any idea on how to tell the number of lines to Labview I need a 1 d array?

It seems that in earlier versions of LabVIEW, there is a VI that does what I'm looking for. I tried searching the pallette and here on the forums as well, but haven't come up with something that works.

http://forums.NI.com/T5/LabVIEW/programmatically-resizing-decimate-array/TD-p/19880

Thank you!

-Andrew

Exchange dimensions which feed you table of remodel or use the conversion table.  Because I can't tell from the description exactly where the picture is bad, one or the other of these ideas should fix.

Tags: NI Software

Similar Questions

  • Unexpected behavior of the chain of worksheet to the array function

    Hello

    I found a few quirks in LabVIEW 2011 I don't understand. In the vi attached, I provide a one-dimensional spreadsheet string separated by spaces. I use the string of worksheet to the array function to convert this spreadsheet string into an array of strings.

    I came across problems when I wanted to specify a space as the delimiter character.

    The conversion works as expected, if I do not specify a delimiter (i.e., the default tab delimiter is used). But if I specify the delimiter, only the first element of the string of spreadsheet is converted. I don't understand this behavior.

    Thanks for your help.

    Peter

    What a shame... Thanks for your time and this thin.

    Peter

  • How not to use formatting on a worksheet of the Array function string?

    Hello

    I'm trying to convert a string of csv containing a cluster in a string array as part of a definition of profile for temperature/humidity chambers. I don't want to just format the output array because the values are not the same type. Can I use an empty string over the terminal of formatting? I have attached the VI. I also saw a few wiz bang csv read/write of things, but it's a school project so I can't use the code.

    Thank you

    Simon

    Just use %s as your format string.

    Do not use table of cluster and then ungroup cluster.  This is a hack, a Rube Goldberg.  Just use Index Array.  It's resizable down in order to get successive indices.

  • Why all the elements of the array does not appear?

    Hello

    I'm learning about the handling of tables.  The example finder includes this one, 'build array_forum.vi', which shows the two modes, concatenate and adding, I understand, HOWEVER, I can't understand how they built this vi.  For example, I can find the Array function to build, but I do not understand how they created the "digital data table 1" "data table 2" digital... etc, and I can't find the functions on the pallets that cause display "build the CONCATENATE entries table". ".  Where are these blue functions?

    Where these functions are found in the palette, and how we build them like that?

    The other vi indicated here, 'for loop array_forum.vi' is my attempt to reproduce, but it doesn't show all the elements of the array; However, it only displays a SINGLE element, the last element of the array.  How can I view all the items in the table I am creating using the FOR LOOP?  I am doing something wrong with the LOOP FOR?

    Thank you

    Dave

    Right-click your scoreboard, uncheck the "Display as icon" and see what happens.  There are two ways of viewing terminals, most of us like the simple point of view, the default value is the display of the icon.

  • Rotate or resize plu viewerno picture of the Windows function work

    I can't resize picture or rotate continuously in Windows Photo Viewer.  Even though I have these functions in another program during the recording of My Documents, my pictures, pictures back to the original size and rotation.  How can this be repaired?  I use Office 2003 o, Windows XP on HP DC5750 computer with lots of memory.  Help!

    Maraarto

    I can't resize picture or rotate continuously in Windows Photo Viewer.  Even though I have these functions in another program during the recording of My Documents, my pictures, pictures back to the original size and rotation.  How can this be repaired?  I use Office 2003 o, Windows XP on HP DC5750 computer with lots of memory.  Help!

    Maraarto

    ==============================================
    What is the exact name of the viewer you are using?

    If you are referring to Windows Picture and Fax Viewer... it made
    not a resizing function. You can zoom in to look at one, but that
    cannot be saved. It has a rotate option and that
    must be permanent.

    If you make resize them and rotate in an Image functions
    Editing program... the result should be permanently recorded.
    Try... Save under... and the modified version of the give a new name.

    To resize... the free ImageResizer PowerToy can be very useful:

    Click on the following link and the left click of the
    PowerToys tab...

    Windows XP downloads
    http://Windows.Microsoft.com/en-us/Windows/downloads/Windows-XP

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download and install: ImageResizer.exe
    (Filename: ImageResizerPowertoySetup.exe)
    (does not work on Vista)

    Then, you can open any folder containing
    images and you will have an option to resize.
    Just right click the selected image files and
    Choose resize images in the menu. You
    can select a picture or an entire group.

    The program will place the resized in copies
    the folder with your originals.
    (Tip: * never * overwrite your originals)

    To ensure that images in both portrait and
    landscape orientation are resized to the
    same dimensions... go to... Advanced...
    and enter the largest number in these two areas.
    IOW... for 600 x 800... Enter 800 in these two areas.

  • I want to record with < alt > < s > in the Exact program online. This function does not work. This is the first time I use this program with firefox.

    Question
    I want to record with < alt > < s > in the Exact program online. This function does not work. This is the first time I use this program with firefox.

    edit, escaped mod < s > in order to avoid the line through question

    A web page can be defined a "accesskey" for an item. Unlike IE/Chrome/Safari, who use the Alt key only, Firefox requires pressing Alt and Shift to activate the element. In other words, try

    ALT + SHIFT + S

    and see if it works.

    I don't know of any way to change this so that the change is not necessary. There may be an add-on?

  • How can I index an element of the array as "index Board" function to labview?

    Hello:

    I am looking for a method to search an array with indexes and return the element specified by the given index.

    as the array index of the labview function, but I can't find an exact symbol in teststand-table-operations/functions.

    I am new to teststand and everyone knows how to use labview in teststand.

    anyone can teach me?

    Thanks in advance!

    Thanks anyway, found in the API

  • What is READ the array returned by the DAQmx meter? How can I know the two functions DAQmx READ data stream in the same WHILE loop?

    I have a question about the order of execution.  In the WHILE loop, I have two things to measure, period and tension using the DAQmx READ functions for voltage and the meter.  In the end, I want to collect these data as points almost simultaneously as possible, as a pair and then send them together to another piece of code (not shown here) which them will result in some sort of command for an engine.  It would be run, and then I want to perceive the tension and the period at a time later and do the same thing.

    (1.) I'm a little confused on what the meter of the READ function is back because it's a table.  What is a picture of?  I thought that it was up to the value of the individual periods between rising edges.  The output of the counter 1 DBL d's a table. How many elements in this table, and what determines the size of this table?  Are the elements of the array the individual delays between the edges?  How many values are stored in the array by executing?   We take the AVERAGE of the last 15 items, but do not know if we are throwing some of the data or what.  How to understand the composition of this painting?  How can I change the composition of this painting?  Is it possible to measure only one period at a time, for example the time between TWO edges?

    2.) Will this WHILE loop execute as it gathers tension and a "period table ' (remains to be understood by me) by TIME running in a loop?  In particular, we want that the value of the tension associated with the value of the AVERAGE of the period "array", so we can use two data items to create orders of next control every time that the two values are reported.  The structure for the delivery of vi will be attached data in pairs like this?  I understand that one of the READING functions run not before the other function of READING in the WHILE loop.  I want that the period "means" and "strain (Volt) collected at the same pace. This vi will he?

    Thank you

    Dave

    Hi David,

    I suggest including the DAQmx Start Task function. If it does not start before the loop, it starts the loop and work very well, but it is not as fast and efficient. In the model of task status, task wiill go to run the checked each iteration of the loop and then back the time checked running when it restarts.

    The status of the task model: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/taskstatemodel/

    Kind regards

    Jason D

    Technical sales engineer

    National Instruments

  • allocation of an array of 2d in labVIEW and move to the DLL function to obtain data

    Hi all!

    I searched a lot about this, but one cannot find any solution. Please find attached the vi that I try to get a unit of 32 channels data,

    100000 samples per channel with 14-bit resolution. And please also find enclosed the header for my dll file. (in the header, it is the GetBuffers function).

    There is not a lot of data, it is a little more then 6 MB in the task of LAbVIEW Manager eats about 30 MB more memory, then it should. Are there explanations why?

    Because there is much more data in a single channel (million samples or more)

    Then I will try to allocate a 2D to data array, but when I try to run my LabVIEW vi crashes.

    Could you please help?

    Best regards

    Tomzi

    Dear Tomzi!

    To allocate the data in a table in LabVIEW, you must always initialize, as in a you must have a valid entry on cell (x-, y - 1) have a size of table of (x, y). It is usually best to use the function Array initialized for this purpose.

    There are ways to pass arrays 2D to DLLs, cand find you examples of both in examples > communicate with external Applications > external Code using the > integrating DLLs > DLL.vi call. Basically, LabVIEW can pass in the form of a big table 1 d 2D tables, so you'll need to spend too much table size index it. If you pass the array 2D handles it is preferable to use the typedef that LabVIEW generates for you, something along the lines of

    / * LabVIEW created typedef * /.
    typedef struct {}
    Int32 dimSizes [2];
    Double elt [1];
    } TD1;
    typedef TD1 * TD1Hdl;

    I hope this helps.

    Best regards:

    Andrew Valko

    NOR Hungary

  • Resize the array element programmatically

    Hi, I need to programmatically resize the element of a matrix. The external framework of the matrix control must take the same size, but the internal element should chang size programmatically.

    I have found no property/method to do this. Wait using Xcontrol I guess.

    Any idea?

    Thank you.

    Of your image that you inserted, I guess your "matrix" is a display of 2D LED array.

    In order to resize these elements all in now the 'original size of the matrix", you must implement two steps:

    1 resize LEDs:

    • Get ArrayElement reference

    • Convert the reference to Boolean

    • Set the width and height for the Boolean value of the new value

    Please note that now change the size of all THE LEDs. This is because all items in a table share the same properties (including size) with the exception of the "Value" property

    In addition, the table shell is resized as it still shows the same amount of LEDs (columns, rows)

    2. calculate the new number of columns/rows to keep the table shell roughly the same size

    • Calculate the multiplier for resizing in each direction (led to half size smaller multiplier of 2 to the number of lines/columns each)

    • Multiply the number of rows/columns of this multiplier (rounded)?

    • Set the size property of dimension to the hull of the array to the new values

    Please note that this will be 'resize the table to about the same size as it did before. Resizes rounding issues very likely (it has no LED 0.5 available!)

    Norbert

  • automatically resize the array of strings

    How to resize the string table automatically by extracting the maximum length of the string in the table? I could extract the length of the string and set the maximum length for the nodes of the array size, width and size of the array element width property and does not change. Would be a help on this?

    Just a minor tweak to the code RF to take account of the strangeness of this Text.Width property refers to the external dimension of the surrounding décor.

    Without adding the 'g' in 'Missing' is missing.   All this looks like "Just a touch" overkill select style display "Visible Elements" after the execution of the vi as

  • How do the function of table 1 d search case-insensitive for the array of strings

    How do the function of table 1 d search case-insensitive for the array of strings

    Hi Karine,.

    convert the two (table and search for the string) to lowercase before using this feature...

  • Resizing fonts false pages in all my programs, makes the words overlap in web pages

    I have a HP Media Center under Windows XP and the fonts are small for me. This pc came from my daughter, who crashed it and had a friend fix. Then she gave it to me. When I started the first time fonts, windows, everything was very low. I've got things a little bigger now, but their resizing fake pages in all my programs, makes the words overlap in web pages. Can anyone help?

    Hello
    What version of Internet Explorer? (Can matter)

    Go to control panel > display > Display Properties > settings, try a different screen resolution. "Less" for example 800 x 600 will be bigger on screen "More" for example 1024 x 768.

    In Internet Explorer, view > text size, avoid the 'bigger' try more large, medium or small.

    Hope this helps,
    Don

  • How to activate the Sleep function to put the computer to sleep if a program is open?

    I have Windows Vista basic on a desktop Dell 530.  I found that if I have a program or application running (such as I-tunes or windows media player) then the Sleep function will not put the computer to sleep.  How to activate the Sleep function to replace these programs and put the computer to sleep?

    Note: This is how it was with windows XP, the Sleep function would put the computer to sleep no matter what was running, he was reliable, if you left the computer and I forgot that you had something running.

    Thanks for your help.

    Hi kevino4130,

    If you disable sharing on your computer (not only the power settings) of media, it should allow him to enter the mode 'sleep'.

    See if that does not solve your problem and let us know.

    Dave D

    Dave D
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Where is the inverse function in Windows 7 paint program?

    In the new program paint in windows 7 How can you reverse the image? CTRL + i no longer works and I can't find the function. This is a feature that I use extensively to create complex abstract images and I am wondering where is this feature?

    Your not fake - they forgot to put it in.

    New windows paint is actually a program .net - the old paint bitmap has completely disappeared... and that includes the actual executable file for her...

    mspaint.exe is now definitely a totally different program - so, even if you try to copy the old mspaint.exe in the system32 folder it will clear a new one that is named the same.

    I do not know what dependencies had the old mspaint.exe (some dll somewhere - but I don't think - it's a program simple such as Notepad, doing all the way back in win3, changed over time.

    If you have a copy of XP or similar copy the file c:\windows\system32\mspaint.exe to your PC and rename to something like XpMSpaint.exe, place it wherever you like (my preference is for the system32 folder) and create a shortcut to it.

    BUT...

    I would recommend going for a better bitmap editor...
    Them is actually a .net adobe basis as app is completely free and designed specifically for windows http://www.getpaint.net/
    or Inkscape is also very good and very easy to use. If you want even more professional free alternative to Gimp is another (but it's hard to use if your opportunity to "common" way of doing things)

    .. but once again the best option is Corel Paint - you can either buyit grouped for about $50 US with corelDraw! (highly recommended) or on its own for as low as $19,95 (which is a riduculous price seen CorelDraw is the principal vector arts program on the planet.) (users of adobe will be saying the opposite - but thyre all artists are not)
    Computer nerd who serves the grannies

Maybe you are looking for

  • Used to synchronize synchronization

    I have three devices related to my sync account and that two of them seems to be the fusion of information (passwords, bookmarks,...) on the server. My devices are: 1 - iMac MacOS Mavericks with the latest version of Firefox 2 - Samsung Galaxy S3 wit

  • Firefox 24 plant

    Comment by a moderator of the forum. Anyone with the Norton software Please also see these messages by CheckMate below in this thread: [/questions/971603 #answer - 483017] [/questions/971603? page = 2 #answer-485265] I updated to Firefox 24.0 today (

  • Satellite pro A120-151 - cannot start more HARD drive

    I removed the laptop HARD drive to copy files on the master pc because of the virus. The problem is when I put the HARD drive to the laptop, I can't start windows. It comes up with the usual start screen. The 1st BIOS password: I entered and I press

  • ListBox with visible horizontal scrolling

    Hello We all know that a listbox control comes with a default vertical scroll bar (which can be selected or deselected). I have attached a vi that has the list box with visible horizontal scroll bar. Now, I did my self by playing with custom control

  • How to enter the firewall what is underway

    When the firewall snaps