Polar plot of a data matrix....help is needed

Hello,
I'm working on an Ultrasound project, the data coming from the device is transmitted through a USB driver to the PC. I made a VI, that open a connection with the USB device and recieve the data. The coming data are recognized by the LabVIEW as stream of strings, so, i converted the data into a bytes using "string to byte array" function, then I used the function "reshape array" to reshape the data bytes into a 512x64 matrix which represents the no. of samples per ultrasound line times the no. of ultrasound lines.
I plotted the data on an intensity graph function and it worked, but the problem is that the data or the matrix must be plotted as a polar plot, not as a cartesian plot.
The problem is that I want to convert each single pixel (byte) of the (512x64) matrix from having (x,y) coordinate into a pixel that has (r, angle) coordinate.
can you help me plot these data in a polar plot. If any body has any suggestions please help.
best regards,
Underzero.
Attachments:
US_VI1.PNG ‏17 KB

Multiple posts: keep discussion to this thread: http://forums.ni.com/ni/board/message?board.id=170&thread.id=337220

Similar Messages

  • Band matrix - help desperately needed

    Hello,
    I hope someone can help me with the following problem.
    I have to store a band matrix in a linear array.
    The band matrix is m*m, e.g.
    5 7 0 0 0 0
    5 8 4 0 0 0
    0 1 3 9 0 0
    0 0 4 5 4 0
    0 0 0 3 6 1
    0 0 0 0 7 3
    My first try was to store all non-zero values, which didn't work because the band matrix could contain 0 values.
    My next try is to first store the first row (5, 7) in the linear array, then use a for loop for the rows containing 3 values and again store the last row seperately.
    I would appreciate any better suggestions as i am not happy with my solution.
    thank you very much for your help.
    jen

    okay, this is the code i have written so far:
         //store sparse band matrix in linear array
         public int [] bandSparse(int [][] m)
              //test if array is n*n
              if (!matrixDimTest(m))
                   throw new IllegalArgumentException("Matrix not n x n");
              else
                   int count = 0; //counter for linear array
                   //create a linear array using formula L = 3j - 2
                   int [] linArr = new int[3 * m.length - 2];
                   //store sparse triangular matrix in linear array
                   //firstly store first and last row
                   int lastLength = m.length; //needed to find elements of last row
                   int linLength = 3 * m.length - 3; //needed to store last elements in linear array
                   for (int a = 0; a < 2; a++)
                        //store elements of first row in first two places of linear array
                        m[0][a] = linArr[count];
                        //store elements of last row in last two places of linear array
                        m[m.length][length] = linArr[linLength];
                        length++;
                        linLength++;
                        count++;
                   //store the rest of the band matrix in the linear array
                   int startPos; //starting position of column for elements to store
                   //subtract 2 from length of array because first and last row were handled seperately
                   for (int row = 1; row < m.length - 2; row++)
                        for (int b = 0; b < 3; b++)
                             m[row][startPos] = linArr[count];
                             count++;
                             startPos++;
              return linArr;     
         }but i don't want to do it this way because it is very simple.
    i know there must be an easier way of programming this problem, but i can't think of it.
    thanks

  • Transferring Hard drive data. Help desperatly needed!!

    I recently had a malfunction of my hard drive but with some help of Disc Warrior managed to back up all of the HD on to an external USB HD. I then replaced the existing HD in my Macbook for a larger drive an reinstalled OS 10.5.3. However I can't transfer any of the old system/library/applications or User settings and programs. So all my iLife, iWork, Quicktime pro etc will only run in demo modes.
    Does anyone know how I can "swap" all the content from my backed up HD on to my new internal HD?
    By the way the back up was NOT done in Time Machine.
    Thanks in advance.

    You can reinstall iLife simply by inserting the second recovery DVD that came with your computer and following the onscreen directions to "install additional software that came with your computer." As for iWork, simply install it from the disk that it came in. The serial number is included with the disk.
    You can get the key for your Quicktime Pro account by emailing Apple support and explaining the situation.
    If you're still looking to clone your external backup back to your internal drive, there's a few ways to do it. The easiest for non-technical users is to plug your Macbook into another Mac with a firewire cable and boot into FireWire target disk mode. (To do so, start with your MacBook off. Hook it up to the other Mac and then turn it on while holding the T key. This will mount the drive to the desktop of the second Mac.) From there, simply use Disk Utility to wipe your Macbook's hard drive clean and then clone the external disk (where your backup is) to the internal hard drive in the Macbook.

  • Help with Data Matrix (2D) barcode

    Hey everybody,
    I need a little help with creating a dynamic Data Matrix barcode. The DM Studio help files explain the barcode, regions, data code words, etc, but don't really help with implementation of one. I can create a static one using the actual Barcode widget in DM Studio, but I'm unsure how to create a dynamic one. Minimally I'd need to change the barcode's content from document to document, but if you use the barcode object in your section, it doesn't appear as though it allows variables or variable information (i.e. DAL script results). We have 3 of 9 barcodes, but we create those by simply using the 3of9 font when outputting the barcode's content. With the Data Matrix barcode, that doesn't seem like the appropriate course of action because of additional attributes like Scale or Symbol Size.
    Thanks,
    Gregg

    Hi Gregg,
    I would request you to try like this.
    1. First insert a normal field (not a bar code).
    2. Change 'Type' to Barcode.
    3. Change 'Format' to Data Matrix.
    4. Change 'Length' to 11.
    5. Change Symbol size, Scale appropriately.
    6. Use Rule as usual you would do for a normal field.
    7. Use Data Matrix bar code fonts (13504, 13505, or 13506) which are included with Documaker. If you have any other specific font for Data Matrix bar code, you may try that as well.
    These steps should allow you get a dynamic bar code.
    Thank you.

  • Polar plot help

    I'm working a project where I need to plot X & Y data to a polar plot. Actually, what I really want is to plot X-Y data on a compass rose, and show 'clock" position instead of angle headings...but I can fake that well enough for now...
    Attached is my test vi for plotting to the polar plot. I've repalced the standard LV polar plot with a version available in one of the support forums that plots points instead of lines. Looks right to me..but no data plotted   Any hints or direction?
    Also, I ideally want to keep continually plotting data points - one set of coordinates after another. Any thoughts on the best way to do that? While loop maybe? I used to use labview prtty regularly, but it's been a while, so forgive me if these are easy questions.
    Thanks!
    Attachments:
    polar_test.vi ‏41 KB

    Updated vi attached for my polar plot test.I've replaced the modified "polar plot" vi with the original labview one. I can see data passing through everywhere, right to the plot itself...just don't see anything showing up. Is there something I'm misunderstanding about how to use the polar plot?
    Attachments:
    polar_test.vi ‏63 KB

  • Problem using read from spreadsheet file and polar plotting

    Hi to all labview users,
    i am a beginner in labview and i am trying to do a polar plot.
    i read the polar plotting example in labview and it was straightforward.
    I used "write to spreadsheet file" to gather data.
    and they are in the following format
    13  10
    4  20
    8 30
    ....etc
    now. i tried using "read from spreadfile" to get the data into a array, then using "array to cluster" to convert the array into cluster, so i could connect it to the polar plot block
    however, it kept saying i couldnt connect that way, because polar plot uses 1-d array with cluster of 2 element and my source is a cluster of 9 elements....
    but doesnt the "read from spreadfile" block give me a 1-d array? and where does that 9 come from? i only have 3 rows and 2 columns in my data file....
    any guidance would be greatly appreciated.
    thx alot
    Happy guy
    ~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
    ~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
    ~ humber learner of LabVIEW lvl: beginner-intermediate

    Helllo,
    I've made an example to try to help you  with that question.
    Notes:
     - the file must have values separeted by tab
     - reading the values from file as you mentioned using "read from spreadfile" you'll get a 2D array and not 1D;
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    Read Table and plot polar graph.vi ‏26 KB
    teste.txt ‏1 KB

  • Multiple polar plots into a 3d plot

    my test measures a light source, for each iteration (of the test) the detector moves up in elevation 5 deg (starts at 0 deg) and takes a data point every 2.5 degrees in azimuth (for a full 360 deg). My data array is a 3d array where on each page I have 3 columns azimuth, elevation (the elevation is constant for each iteration) and measured data. The question is: I cannot seem to plot it into a 3D graph...polar plot no problem...does any one have any insight?

    “Create color map.JPG” illustrates one way to create the map for the forth dimension.
    “Set Axis Range.JPG” how I manipulated the axis range and properties. Note: It appears all CW 3-d graph items start counting at “1” not “0”.
    “Add Cursors.JPG” shows the cursor work.
    I hope this helps,
    Ben
    Message Edited by Ben on 09-24-2005 03:48 PM
    Message Edited by Ben on 09-24-2005 03:49 PM
    Message Edited by Ben on 09-24-2005 03:49 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Create color map.JPG ‏37 KB
    Set Axis Range.JPG ‏71 KB
    Add Cursors.JPG ‏62 KB

  • Colour in area underneath a curve on a polar plot

    Hi i have made a VI that shows a curve on a line, i have also made a vi that outputs a mpeg video of the graph panning through all of its values, what i was wondering was if it was possible to fill in the area within a curve? I've managed to set the line colour, but i am unable to find anywhere that lets you set area colour.
    Many thanks.
    John P.
    VI attatched, bits cluttered, but the polar plot is clearly visable at the center.
    Attachments:
    Cosine Lobe Model.vi ‏98 KB

    Very nice unclebump,
    You get 5 stars for that one  To help people new with LabVIEW I decided to attach a picture showing you where to navigate to make the change.  You need to change the logic constant from false to true in the Polar Plot Data.vi (Labeled Polar Data) under the Polar Plot.vi (No Label just a picture of a polar plot).  The plot comes out filled because it is a multiple line graph drawn in a picture node with the line fill option on.
    Regards,
    -SS
    Message Edited by ShotSimon on 08-27-2008 09:25 AM
    Attachments:
    Polar Filled.PNG ‏50 KB

  • How do you get the polar plot VI's to work correctly?

    I have the data in a file and can see the correct data when placed on a smith chart, but not on the polar plot. It looks like it is mirrored on the Polar plot.

    There are a couple of examples hat come with LabVIEW that might help you. They can be found under Help >> Examples >> Advanced >> Picture Control >> "Polar Plot" and "Simple Smith Plot". As a way of comparing the two different plots, I had them plot the same data points. It looks like if you have a lot of data points with a lot variability then you want to use the Polar Plot. The following webpage may provide some infor regarding smith plots:
    http://zone.ni.com/devzone/nidzgloss.nsf/webmain/8​0EC3CE5F229DB818625686A0078B8D9?OpenDocument
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • Polar plot scale numbers "truncated"

    I have a strange problem when using the polar plot VI.
    Labview 2012 latest SP, running on a cRIO9074. I'm running a servo motor for one revolution while measuring the runout on an armature using a linear position sensor.
    The data looks good, but for some reason, the scale labels truncate after two decimals, no matter what I set the precision to. I'm sending it a cluster of two double precision arrays.
    When I run the Labview example, it works fine I can change the number of decimals viewed to 10 if I need to. I've tried keeping everything the same as the example.
    Any ideas?
    See picture.
    The sample VI works fine, (I can set the precision to 6 and I will see 6 decimal positions. )

    Thanks for the response, Kurt. With the help of a colleague, we were able to determine that this behavior is only when the VI is running on the cRIO.
    (I think it was called "Polar Plot Demo.vi", but yes the VI is "Polar Plot with Points Option.vi"
    We verified this by running the example vi first from windows (works fine), then ran it on the cRIO. On the cRIO it truncates decimals depending upon what font size you use. If you use a REAL TINY font, it will include more decimals. When running in Windows, the graph appears to move left to accomodate for more decimal place. When running on the cRIO, it appears to cut the picture off on the right side.
    Following is our setup, but as stated above, we sent the demo program to the cRIO (didn't use any I/O) and the problem occured.
    We're using Labview 2012, latest updates applied.
    Modules are:
    NI-9411 to read an Ono Sokki position sensor (quadature output from two channels, resolution is .0001 mm.
    Ethercat set up using the "getting started" manual for the NI supplied AKD servo drive and motor.
    All hardware works fine and data collected looks good. Test is to turn motor and collect servo position and linear encoder position.
    Data has 4 decimal places coming in.

  • How can I change the Y-axis (circular) grid spacing, in Polar Plot VI?

    When using Polar Plot VI, I need more control over the plotting parameters. This means tweaking the sub-VIs in various ways. What I need to do most is make the polar magnitude axis less busy, i.e. only draw circles every 10 instead of every 5 divisions, when using a range of 0 (outermost) to -80 (innermost).
    The magic 'magnitude axis subdivisions' variable seems to be generated in Calc Scale Specs sub-VI, and output as an array of clusters, but I can't quite see how it's created and from what.
    Please can anyone help me gain control over the number of magnitude division circles generated?
    Many thanks!

    I think if you go inside the Calc Increment.vi and modify the Increment output terminal it might change what you want to see. Try putting a multiply by 5 or ten into the case structure for when the log is false.
    Attachments:
    polar plot calc increment.jpg ‏90 KB
    modify calc increment.jpg ‏104 KB

  • How can I increase line width on polar plot?

    The lines plotted on a LabVIEW 6 polar plot (picture control) are very thin and do not show up well when printed. I would like to increase the line thickness (as can be done easily on the graph controls), but looking through the polar plot VIs, I cannot find any obvious way of doing this.

    The polar plots basically use the picture control to draw the lines on a plot. To increase the thickness of the lines you would have to draw another line right next to the line. I'm sure this could be done, but would require alot of messing about with the drawing subVI's to draw all lines in duplicate.
    Alternatively you could plot the graph twice, but the second plot has an origin 1 pixel out. This will double the thickness on the screen, but i dont know what it will print out like. See attached example in LV 6.0.
    Another thing to try is change the plot colours. You can make the gridlines black (instead of grey), and paint the background white. This makes the lines show up much better. I will also include this in the same example.
    I hop
    e this helps you..
    Kim
    Attachments:
    Polar_plot_lines.vi ‏37 KB

  • Why can't Adobe Reader X update the data matrix?

    Hey guys,
    I create via Livecycle Designer an new PDF, add two text fields and insert a data matrix from formularbarcode.
    As one of its properties I set a collection (the two text fields) on which the data matrix is based.
    The two text fields are variable.
    After saving the PDF and open it with the Adobe Reader and fill in the text fields the data matrix code changes to a grey box.
    If I do this with the Adobe Acrobat Professional,  it'll work. Where is the problem? Please help!
    best regards,
    David

    Moving to Reader forums.

  • I would like to use a polar plot in the application now I am developing.

    Is there any kind of custom control or FP wich allows me to implement this kind of graph with CVI ?. (of course without doing Rec 2 Polar transformation and PlotXY).
    Thanks in advance,
    José M.

    There currently is not a custom control for doing polar style plots in CVI. There is only one for smith charts. You can use the standard 2D-graph to create polar plots with the help our analysis libraries, or if you need a more custom display, you could draw your own plots in a canvas control.
    Best Regards,
    Chris Matthews

  • Polar plot with legend points

    I can put one Polar Plot with legend in points?
    Case:
    I have magnitude and phase arrays for build polar plot and i want put rotation legend in each point of measurement. Then we have 3 arrays (magnitude, phase and rotation), but rotation need stay like legend for each point.
    Somebody already do it?
    thx for tip.
    Leonardo de S. Cavadas
    Maintenance Engineer and Inspection - Bureau Veritas do Brasil
    Engineer Metallurgist with emphasis in Advanced Materials
    Technologist in Computer Science

    Unclebump,
     i do one simple modification to be possible add rotation value to image, isn't better solution but i think that i'm near to solution way. Look these VIs, Re-link is necessary.
    Leonardo de S. Cavadas
    Maintenance Engineer and Inspection - Bureau Veritas do Brasil
    Engineer Metallurgist with emphasis in Advanced Materials
    Technologist in Computer Science
    Attachments:
    Plot Polar Data with Legend.vi ‏74 KB
    OtherPolarPlot.vi ‏67 KB
    Polar Plot with Legend.vi ‏75 KB

Maybe you are looking for

  • How can I animate my sprite to run on scroll and stop when scrolling stops?

    I appreciate everyones help so far. I want my illustration of a man to "walk" through my composition as the user scrolls through it. I have a sprite created and have made it loop. What sort of code do I need to write to get it to move only on scroll

  • US iPad with UK iTunes?

    I upgraded to iOS5 the day it came out.  I synced my iPad and now favorites is spelled "Favourites", I can't update Flipboard because a pop up message tells me I must be in the US iTunes store, and all of the prices in the store are reflected in Poun

  • Automated Regression Testing

    Apologies for putting a more advanced question in a general forum but there is no Topic for QA/Testing (that I know of). Okay, I've been tasked with finding a solution for fully automated unit, component, system, and regression testing. I realize tha

  • Distiller rips my PS file, before indesign finish ?

    My distiller is always on - whay is it, that some files... just keeps spinning in my distiller... i See up to -1000% not done. The distiller starts before my indesign og illustrator is finished printing... I use CS3 with acrobat 9

  • Request to be able to close Projects in SAP

    Hi SAP, I have several customers who have requested that the facility to mark Projects as being closed is added to SAP. The reason is that they have hundreds of projects, the vast majority of which are no longer 'open'.  It is time consuming for user