faster conversion of DBL in U8 array

Hello

I need to convert an array of Monster double of a byte array.

So first of all, I converted (cast) all details of array of bytes of 8 elements. The result byte array has a size of 8 x Double size of the array.

It takes so long... Is there a quick way to do it?

Hi mitulatbati,

have you tried:

d ' use pure functions of G instead of node formula?

or better yet

-throw the whole OF the loop and directly catalogued the DBL picture to a picture of U8?

Tags: NI Software

Similar Questions

  • Faced with the conversion of an U8 2D array data in a Matlab file format?

    I'm trying to convert a simple 2D array of U8 (3 channels) data in a matlab file format.  I was manipulate the examples in the labview2matlabni record - but I can't read in Matlab - the matrix is not readable - said inconsistent number of columns.

    I have included my vi with a sample data as input.  I'm sure this shouldn't be so hard!

    Thanks in advance - all help is appreciated!

    If you have not already, doen

    You can check this site, http://matio-labview.sourceforge.net/. In my view, there are screws to back up or to import files dull.

    See you soon,.

    McDuff

  • What is the best way to convert an array of bytes or string cluster

    I am writing a program that sends UDP packets and I defined the data I want to send via large groups (with numbers of u8, u16/u32, u16/u8/u32 tables and nested groups). Just before sending the data, I need to convert groups or chains of arrays of bytes. The flatten the string function is almost perfect for this. However, it is addition of lengths in the tables and strings that makes this unusable method, because as far as I can tell.

    As I have many of these groups, I would rather not hard code the unbundle names and conversion/cast of strings or arrays of bytes for each of them.

    Y at - it a function, or a tool that I'm on?

    Thank you!

    mkirzon wrote:

    The program I'm developing is to communicate and to poll an external device that includes a Protocol well documented. The messages that I built in clusters contain components accurate that expected from the other device. So, if my program adds any additional info (such as this array/string lengths), monitor the device external won't recognize messages and returns an error.

    Unfortunately, you have to ungroup your cluster and collect the individual channels to concatinate.

  • Problem of cast to array of bytes in array of float

    Can someone help me find this process I am doing wrong?

    • I read a string of 6 tanks during the series.
    • I take the string and convert it to an array of bytes.
    • I then reverse the byte array because my microcontroller first sends the LSB and Labview is Big-endian
    • I catalogued this table in an array of float
    • I invert the table again to retrieve the data in the original order

    I can see the bytes in the array of bytes as 'byte, 0, 0, 0' when there are a small number, but when I I cataloged get very large or very small floats. Can someone help me understand this?

    Thank you!

    LabVIEW 2011

    You should probably use string unflatten, select the byte with rule of the little order and use a DBL 1 d array type. Everything must fall in place without all these gynastics bit, what you're doing.

    You can show us your code? I don't understand your use of "decimate the table."

    Attach a small VI containingh a typical chain received as a constant of diagram.

  • Catalog items 14 (from PSE 3) conversion failed

    I was unable to properly convert my PSE3 catalog to PSE14.  I went through all the possible solutions in the knowledge base, and I still cannot get lucky.

    My PSE3 catalog resides on a windows XP computer and I try to move it on a 64-bit Windows 10 with PSE 14 computer.  With my last attempt, I followed the instructions in the article titled "convert organiser for 64-bit versions catalogs / Photoshop Elements 13 or later.

    I saved the PSE3 catalog to a hard drive.  I restored the PSE 14 catalogue.  It seems to work fine until the failure of the conversion notice.

    I used the catalog Conversion utility to convert the catalog to a catalogue of .pse13db.  He also appeared to work properly.

    During the conversion of a catalogue of PSE14, he went to 37% complete and continuous fast conversion for awhile without the % (he continued to display the names of files that have been conversion) back, and then I got the standard error message.  I checked the log by following the instructions, and that's what it contained:

    Conversion log: began the conversion of D:/media/photos to C:/ProgramData/Adobe/Elements Organizer/catalogs/photos

    copy the entire catalog directory...

    error: D:/media/photo copy failed, abandonment

    catalog copy failed

    Conversion log: Conversion failed

    It is the newspaper.  I do not know how to do this, because I think I tried everything in the KB and that I could find in the forums.

    You have followed the instructions:

    Convert catalogues organiser for 64-bit versions. Photoshop Elements 13 or later version

    Have you downloaded the PSE13 version as requires it?

    7. at the end of the conversion process, the .pse13db file and the cache of miniatures are available in the specified destination folder.

    8 launch organizing elements, choose file > manage catalogs > choose location custom, and then click file > manage catalogs > repair/Optimize.

    Note:

    If the conversion fails, open your catalog of the version of the elements organizer that it was created in, and then click file > manage catalogs > repair/Optimize.

    If you have installed the trial version 13, you can check the catalogue with the "catalog.pse13db" file is working, and you can use it to repair/Optimize before using version 14 of the convert.

  • simple Excel table

    When I use Excel Table.vi easy to export my data, the double numeric values are to be less accurate. For example, 0,0054 at 0.005 and 0,0085 to 0.009. Is anyway to stop this accident?

    I forgot that you could connect digital data directly to the function. Buried deep in one of the subVIs, string conversion is performed. Thus, rather than change the Subvi, simply convert the dbl in an array of strings 2D 2D before passing. Fractional number string will work.

  • NetInstall/Netrestore will not complete the boot process.

    Hello world

    I searched through the forums (and days of Google searches) try various process of troubleshooting with no progress. I hope someone can shed some light on what I'm doing wrong.

    So I'm under OS X Server 5.1.7 (Build 15S 7055) on a iMac (21.5 inch, end 2013) OS X 10.11.6 (Build 15 G 31).

    Try to get a server NetInstall if I can image a full Lab of iMacs (same model as the server)

    Server runs on a closed network offering DHCP clients through a Nortel switch. No firewall, no ports blocked (no connection with the outside world). File sharing and NetInstall are on.

    Clients receive IP addresses and can see each other (sharing, ping, see Manager boot images provided by the file server)

    When you launch Netboot (I use the method 'hold the Option key', but I tested with "n" just with the same result) the client displays all hosted images. For my test, I use a NetInstall image built from the 'install El Capitan' downloaded application from the App Store using system image utility.

    When you attempt to start the client image will display the progress under the apple logo bar and it will take about 45 minutes to 1.5 hours to fill full and won't progress of there. Sometimes the progress bar only about 3/4 of the way to make and freeze there for hours.

    Here are the journal entries of NetInstall for my last test:

    < <

    19 Jul 08:10:14 Arch-Server bootpd [327]: BSDP INFORMER [5] 1, 68:5 b: 35:bb:95:6 b NetBoot001 arch = i386 sysid = iMac14, 1

    19 Jul 08:10:14 Arch-Server bootpd [327]: NetBoot: [1, 68:5 b: 35:bb:95:6 b] BSDP ACK [LIST] sent 10.0.1.10 pktsize 354

    19 Jul 08:10:14 Arch-Server bootpd [327]: DHCP INFORM [5]: 1, 68:5 b: 35:bb:95:6 b

    19 Jul 08:10:14 Arch-Server bootpd [327]: acknowledgement of receipt sent iMac 10.0.1.10 pktsize 300

    19 Jul 08:10:15 Arch-Server bootpd [327]: BSDP INFORMER [5] 1, 68:5 b: 35:bb:95:6 b NetBoot001 arch = i386 sysid = iMac14, 1

    19 Jul 08:10:15 Arch-Server bootpd [327]: NetBoot: [1, 68:5 b: 35:bb:95:6 b] BSDP ACK [LIST] sent 10.0.1.10 pktsize 354

    19 Jul 08:10:15 Arch-Server bootpd [327]: DHCP INFORM [5]: 1, 68:5 b: 35:bb:95:6 b

    19 Jul 08:10:15 Arch-Server bootpd [327]: acknowledgement of receipt sent iMac 10.0.1.10 pktsize 300

    19 Jul 08:10:16 Arch-Server bootpd [327]: BSDP INFORMER [5] 1, 68:5 b: 35:bb:95:6 b NetBoot001 arch = i386 sysid = iMac14, 1

    19 Jul 08:10:16 Arch-Server bootpd [327]: NetBoot: [1, 68:5 b: 35:bb:95:6 b] BSDP [SELECT] ACK sent 10.0.1.10 pktsize 371

    19 Jul 08:10:16 Arch-Server bootpd [327]: DHCP INFORM [5]: 1, 68:5 b: 35:bb:95:6 b

    19 Jul 08:10:16 Arch-Server bootpd [327]: acknowledgement of receipt sent iMac 10.0.1.10 pktsize 300

    Jul 19 09:15:39 Arch-Server bootpd [11761]: name of the server Arch - Server.local

    Jul 19 09:15:39 Arch-Server bootpd [11761]: interface 5: ip 10.0.1.251 mask 255.255.255.0

    Jul 19 09:15:39 Arch-Server bootpd [11761]: subnets: conversion of 'domain_search' failed: empty array

    Jul 19 09:15:39 Arch-Server bootpd [11761]: bsdpd: Re-reading configuration

    Jul 19 09:15:39 Arch-Server bootpd [11761]: bsdpd: size of the shadow file will be set to 48 megabytes

    Jul 19 09:15:39 Arch-Server bootpd [11761]: bsdpd: 00:15:00 hour of the age

    Jul 19 09:15:39 Arch-Server bootpd [11761]: AFPUserList_init: Group com.apple.access_afp does not exist

    Jul 19 09:15:39 Arch-Server bootpd [11761]: DHCP DISCOVER [5]: 1, 68:5 b: 35:bb:95:6 b

    Jul 19 09:15:39 Arch-Server bootpd [11761]: OFFER sent iMac 10.0.1.10 pktsize 300

    Jul 19 09:15:39 Arch-Server bootpd [11761]: DHCP REQUEST [5]: 1, 68:5 b: 35:bb:95:6 b

    Jul 19 09:15:39 Arch-Server bootpd [11761]: acknowledgement of receipt sent iMac 10.0.1.10 pktsize 300

    > >

    I know what I don't see is a BSDP DISCOVER/OFFER but I don't know why.

    Verbose mode on the Client does not give me something that I can understand what it is to do (or not do).

    I literally read the chapter NetInstall and followed the examples set up in OS X Server 5.0 Essentials book and I still don't see why its not working.

    If anyone can enlighten us or if there is more information/papers/tips I can give you please let me know. (I hope, that I forgot to mention something that I didn't want to as it is lengthy and unreadable)

    Thanks in advance.

    Oh, I should mention that I did whitelist the server on the client side.

    I also tested the images via NFS.

    (I wanted to change this in the original post and now I can't figure out how to delete a response...)

  • 46TL968 boot image needs

    Hey guys,.

    my beloved toshiba 46TL968K has a few problems. TV always starts on the pc port, although there is nothing fixed. He also refused to let me click on anything in the installer; especially the reset is not possible to click. I have therefore no options just reset the TV. Everything is gray just when I touched the settings. Unfortunately, I tried a firmware to boot from another site. The blue screen appeared, the startet updated, but then he stopped at 37%. Since the incident, the TV freezes at the boot sequence. I see the Toshiba logo but nothing happens.

    I used a 2 GB USB drive (Fat32) format. I think I need a new image of just "Refresh" the Toshiba. And so I'm here, in the hope a helpful hand.

    Thanks for your help

    Send me your profile facebook at [email protected] for faster conversations, a will, help you to fix your TV.
    Best regards.

  • Choosing iMac and MacPro

    Looking for entry and helps in this decision-making process.  Considering an iMac on a MacPro I for the convenience of space and portability currently and want to ask people here in the Mac publishing community for their 'opinion' and ' experience' with similar applications, work or use.  I have retired and you want to reduce the amount of work that I do more to clean up my workspace of excessive and other cables.

    Or the other system I edit with Photoshop CS5, FCPX, Lightroom and use (use) external thunderbolt matrix RAID 0 with two internal disks, mini disks external hard thunderbolt and a CD/DVD/BluRay external burner.  I will edit not 3D.  I will edit 1 4K video camera eventually, but not much.  Most of my work will be no emergency BUT that said when I'm working I don't LIKE COLOR WHEEL LOOKS or mini jams.  Finally, I get the SSD single bolt of lightning and hope that sometimes in 2016 thunderbolt RAID 0 with dual SSD.

    Here are my specs current and proposed with the MacPro CURRENT being a "just above entry level" Late 2013 and proposed iMac which is an end of 2015 and at the top of the iMac.

    CURRENT MacPro - iMac PROPOSED spec'd

    MODEL: 6.1 end 2013-2015 (most recent) late

    PROCESSOR: 3.7 GHz Quad Core Xeon E5 - 4.0 GHz i7 Skylake (burst at 4.3 GHZ

    VIDEO: Over-pants D300 2 GB x 2 - Radeon R9 M395X 4 GB GDDR5 VRAM

    MEMORY: 16 GB 1867 MHz DDR3 ECC - 32 GB 1867 MHz DDR3 ECC

    SSD: 256-256 GB

    FORMER ANNUAL VIDEO WORK: 50-100 @ 3 camera HD TV programs; ~ 15 weddings @ 3 camera HD; ~ 20 events; advertisements of 20-30 @ 1 HD camera; 20 to 30 other productions mainly @ 1 HD camera.

    OLD WORK of ANNUAL PHOTO: ~ 10 commercials. ~ 8-10 marriages; ~ 3-5 events, ~ 3-5 birthdays/anniversies

    PROPOSED CURRENT VIDEO:< 12="" tv="" programs="" @="" 1-3="" camera="" hd;="" 2-5="" weddings="" @="" 2="" or="" 3="" camera;="" 2-5="" events="" @="" 1-2="" cameras="" hd;="" ~="" 30="" commercials="" @="" 1="" camera="" hd;="" 10-12="" other="" @="" 1="">

    Thanks to all those who respond and if the expected choice to make the iMac purchase, I will sell the MacPro and aged a year Thunderbolt display.

    just an opinion, no experience in this League of the boxes, no users 'pro', just an amateur enthusiast here...:

    I'm 4-6 rivers multicam editing on my MacMini (well Yes, tupperware box) on a weekly basis, no beach balls - how is it? FCPX using ' smart function to distribute the media on several media (and mine are just usb3, no CT). Bulit (transformation, CC, Center) effects are 'live', no need renderining effects no wheels, no waiting.

    My latest toy is a cam 4 (Lumix fz1k) k - without no flaws, no lock either using proxies.

    speaking of proxies, ok, when it comes to conversions on im - and export, I must admit hours might go look at a bar, more and more warp of snail...

    Two links:

    • my "stunt", 4x4k on a mini, set up at the same time improved by a post, usb3 SSD

    • the speed test only elusive, BruceX, because FCPX is so highly integrated with Mac OS and hardware, any other criterion of reference is, imho!, simple waste of time. In terms of specs, my Mini is a Pocket Calculator-, but he runs circles around a consumer grade Windows machine, performing simple tasks, AP...

    as said, me no technician, I am a user, what's going on "under the hood" is of no interest to me. Miss me the discussion of any 'speed'; faster conversions would be nice... nice2have, but it doesn't make sense for me to spend a sum of 5digit, just to wait 20 min instead of 25...

    For the AP, the not-so-newMP seems to also not so well suited, what I have heard (but do not understand... CUDA? OpenGL? drivers?) its GPU doesn't support Adobe speed tips. Not first hand here, my budget does not rent the software.

    My lil' son's latest project, a holiday film, with hundreds of photos and a gross of phone-vid mixture and actioncam-stuff, almost no matter what color corrected framework, the effects of home-brewn & titles, 35 min, fullHD > No when editing > 1 h beach balls for export, and even ancient iDVD (for Grandma & Grandpa) was done at least 30 min...

    TL; Dr

    a nMP? breathtaking! an iMac 2015 maxed out? same breathtakinger !

    If you need it , if you need now - buy an iMac.

    This "brutal by physicalattack" will solve your problems? I have the doubt.

  • HOWTO call "n" independent instances of 'Decimate (continuous) .vi"without putting instances of"n"of the VI on the block diagram?

    I have a double 2D chart I want to decimate continuously using the ".vi (continuous) Decimate" located in the range of Signal Processing. This VI is set on reentrant preallouee clone because it uses a FGV to save the State of the call to.  What I could do, but do not want to, is having a huge index table and wire 20 + 1 table of DBL to 20 + unique VI instances decimate to ensure that each have their own data space and no 'cross-talk' doesn't happen, then 'picture of generation' all back after the fact.

    I'm almost certain, there is a much cleaner way to do it with only one instance of unique block diagram of the VI decimate using techniques of the call by reference.   I found my way to this link: Preallocated-Reentrant-VI-within-Parallelized-For-Loop that talks about something similar.  After reading pages of four and the detailed help about the function 'Open VI référence' my head is spinning again on what option I want to spend (0x08 or 0x40 + 0x100) to ensure that whenever a slna 2D table come in, each of them is decimated by using the same clone that was used the last time it was called.

    Although the DBL entry 2D array always has the same number of lines, now, it is not always in the future this number and ideal would not force me to create several references strictly typed in VI decimate that will have to change as grows the number of rows in the table 2D static DBL.

    Anyone ready to set up an example VI that takes an array 2D arbitrary of DBL as input, decimating each line using the same clone independent of the "Decimate (continuous) .vi" and outputs the newly decimated 2D Array of LDM?  Assume that each line uses the same factor of decimation and 'Sprawl' set to False.

    Necessity is the mother of all invention and since it upsets me when I read a post that has a similar problem with no resolution, I felt compelled to post mine here.   I'm sure it's better I can do within the current state of LabVIEW.   The only question I have is what happens if I put the call by reference for loop be parallelizable?  That trash completely the nature of 1 to 1 of what I intended?

  • Add columns to the table

    I'm having a bit of a basic problem here...

    I start with a waveform D 1 from a request of data acquisition, which contains ~ 22 columns of data corresponding to the different measures. I wanted to take the first 20 columns of data and add the "column vectors" (i.e. each measure) for a 1 d table (the sum of the first 1 22 tables/measures/vectors). The logical way to proceed, it seems, is by indexing the waveform with a loop, conversion in DBL and then adding each column with a registry change.

    1 d Waveform--> for (indexed) loop--> get waveform components to get the DBL table to the index column--> go to 'add block '.

    And then, using a shift register, I add each column in the index.

    However, I get no output once for the finished loop.

    Any ideas? Examples are JPEG/png files please!

    I'm a big fan of doing things the easy way.

  • Dynamic data of several channels in table, then save in Excel

    Hello

    I am acquiring data from several channels (4-5) and I'd like to collect samples at low rates (10 Hz for 3 minutes max). For various reasons I use Dynamic Data type, although I know that it is not the best way (some say it is a wrong data type ). I also want to save data to a file (the best option would be data excel file).

    If I acquire data 10 times per second, it is quite slow to save in excel (this is the slowest option of all types of data). So I would like to fill a table or matrix of acquired data and then write Excel file (I use scripture to measure file). But I don't know how to do - if I convert DDT in DBL, build an array and connect it to change registry, it works but I lose the information in column names and I'm wasting time. If I connect to build the table a DDT and then shift record another, it returns the table 1 d of DDT. I would like to have 2D DDT, which collects all the information loop.  Is there a suggestion how to solve?

    I'm sure it would be easier solved my problem with the double data type but I also use select signals VI which is the VI I am not able to replace at this time.

    Good day

    Lefebvre

    I don't know if there is a question here, or what.  Doing what you say you want to make, acquire the data of 4-5 channels at low rates (10 Hz for 3 minutes) and save the data in an Excel file (I assume you mean really Excel, i.e. a file with the extension .xls or .xlsx) is really a very easy thing to do in LabVIEW, especially if you are not using :

    • DAQ Assistant
    • Dynamic Data
    • Write to the action file.

    Indeed, you seem to realize this, but I guess you want to 'do the hard', in any case.

    Good luck.

    Bob Schor

  • moving table to a spreadsheet of loop string to accelerate the program

    I'm working on a program that should save about 1200 number of data in a spreadsheet file several times per second (the longer the better). Right now, it reads all the data peak, puts all the data in a table 1 d of dbl, converts the array to a string of worksheet and adds the data to the output file, all inside the loop. The problem is that the loop takes a long time to run, then he tops out at about 480 Hz time through the loop. I think that the table to the string of worksheet function is what is bogged down. I just need to record a few seconds of data, so I thought that I could somehow put the data in memory (perhaps an array of arrays?) while the loop tracks, then convert it to the string of spreadsheet and save it outside of the loop. I'm pretty new to labview, and I'm not familiar with how to do it. Any suggestions?

    There are enough little things you can do to optimize this operation:

    1. Learn more about the producer/consumer architectures.  This kind of thing works best with two or more loops.  For example, we take the data and independently, it is shaped and writes data to the disk.  Alternatively, you could have a given to a format the data and you write the data to disk.
    2. Use queues to pass data between the loops.
    3. For best performance in writing on Windows platforms, write songs about 65 000 characters.  This means that you will need to put your data in the buffer and write it in pieces as soon as they are available.  You can use a shift register on the loop to write to the buffer and write only when size is greater than 65 000 characters.

    There is a lot to digest in a short period of time.  Give a shot and post your code with other issues we can help you more.

  • change individual items in a 1 d table

    First of all, forgive me because I am very new to Labview (8.5 full). I still read Labview for everyone but I'm starting to build Subvi for a program of DA, I need to write. The code is attached for a routine (simple) that allows the user to manually load the values in the tables 1 d. These tables are used to a poly (already written) adjustment curve to generate the coefficients will be calibrated sensor nonlinear optical Blackmer.

    What I tried to do is to initialize an array at their entrance to the Sub - VI he then wait for the user to enter a new value in the input box, select the cell you want to change and click on the "LOAD" button to write this value in the table cell. What is happening is that the table in its entirety from sems to initialize every time you click on the load button. I deliberately kept the initialization routine outside the loop of 'LOAD', but I don't seem to matter.

    It's my first time with graphical programming and I'm not sure I'm even a table. Where is he? In the thread? I formed it and display it, but I don't see a picture as in Visual Studio, Pascal, etc.

    I am even close to being on track or have I missed something important in my efforts?

    You must keep your table into a shift register. (see attachment).

    Also:

    • Your flat sequence has no purpose because the order of execution is entirely determined by data flow
    • Use the appropriate data types. If you want to DBL, initialize the array as DBL. If you want, use the indicators and controls around.
    • Your inner loops use 100% of CPU do nothing more of the time, you don't need at all.
    • Also, your outer loop consumes 100% cpu. Use a structure of the event.

    You should also familiarze yourself with the stream, because the major part of your code is very imperfect. For example, your controls will have to be in the innermost loop in so that they can be read during execution of the inner loop.

    Use my example: a loop, the structure of an event.

  • Convert a RAID non RAID?

    I have a Dell computer with two 1 TB drives in a RAID array.  I would like to convert these disks in a regular table non-raid. How can I go about it?  In the BIOS, I see that the sata is configured for RAID, but I don't want change there without knowing what else this way.

    Thank you!

    John

    Thank you both for the quick responses!  Thanks to a Dell support conversation, I broke the RAID1 array in two standalone players (control - I have started and then 'delete Raid Array' I can now see the second unit of disk in Windows, at startup, etc., but the Configuration of Windows disk utility does not create volumes.)  He says he has a "signature conflict."  Is there a way I can format this disk section?

    Thank you!

    John

Maybe you are looking for