Intensity plot and MSnode-win​dow communicat​ion

Two questions:
1) Is there an intensity plot function that can be called from the mathscript window to display 2D arrays (such as a grayscale image), similar to the matlab function "image" or "imagesc"? The only options I saw were to display a 2D array on a 3D plot. Yes, I know the intensity plot is available in the variable display window, but I would really prefer a command-line option.
2) When I wire a variable to a matlab script node and run the VI, that variable becomes available in the matlab command-line window. I find this very convenient. Is it possible to do this (or something like this) with the mathscript node and window? I know I can communicate between the node and window with globals, but I have to go through the trouble of defining globals, and this only works if I create a project for my VI, which is just far too much overhead.
thanks.

Hello,
In response to your first question, we currently do not have such a function.  However, such functionality is on the roadmap for a future release.  As for the second question, each MathScript node is currently sandboxed -- that is, it has its own variable space.  This was done so that there is no variable collision between different MathScript nodes.  We will be improving the interaction between the MathScript node and the MathScript Window in the future and your suggestion is one idea we are considering.  It would most likely be an option on the node and not enabled by default to prevent any variable collisions.
You do not need to create a project in order to use globals to share data between the MathScript node and the MathScript Window.  However, the MathScript node and the MathScript Window need to be in the same application instance.  Thus, if you are already using projects, make sure you launch the MathScript Window from the same project in which your VI is located.  If you are using the default application context (no projects open), then you should be able to share a variable "a" between a MathScript node and the MathScript Window by typing in each:
global a
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

Similar Messages

  • MS Vista Service Pack 2 and BB Desktop Mgr Communicat​ion Problem

    I have recently update MS VISTA with Service Pack 2.  Now the BB desktop manager will not sync with my BB 8320.  Have there been any issues with this.  Is there a resolution?  If so what is it?  Thanks! 
    Solved!
    Go to Solution.

    Perhaps...if you wish to do so, I suggest the following steps (insert plenty of reboots of your PC...not just restarts, but full power down reboots). Also, it is advised that you be logged into the PC on an account with full admin rights. Further, under Vista, use the "Run As Administrator" option for everything.
    1) Remove your device OS update package from your PC (add/remove programs)
    2) Cleanly uninstall the RIM DTM software:
    KB02206 How to perform a clean uninstall of BlackBerry Desktop Software
    3) Get a fresh download of the RIM DTM software:
    http://na.blackberry.com/eng/services/desktop/
    Choose the version that is newest and (if applicable) compatible with your PIM (if you are synchornizing via USB):
    KB12268 Applications supported by BlackBerry Desktop Manager for synchronization
    4) Download (to your PC) a fresh copy of your device OS package from your carrier:
    http://na.blackberry.com/eng/support/downloads/dow​nload_sites.jsp
    5) Install DTM to your PC
    6) Install (also to your PC), the device OS package
    7) Start the organizer configuration over:
    KB17022 How to configure organizer applications for synchronization using BlackBerry Desktop Manager
    Hopefully that will get things going again.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to enhance lenovo G485 camera? and how to open communicat​ions settings?

    So I recently installed a webcam software (youcam) and I noticed that the solution is not as good. When I tried the setting of youcam, it was already at its max solution which is 640x480. I was hoping if I can enhance my camera solution further through communications settings as I saw from youtube but I can't find it in my laptop. how can I enhance the solution of my camera or should I change my webcam software. What's a good one? Thanks

    Swila, were your "other images" previously edited in Camera Raw? I.e., do they already have saved image settings? The defaults that you save via the flyout menu will only apply to new images, or if you reset an existing image to the defaults. (e.g., choose "Camera Raw Defaults" from the flyout menu).
    Eric

  • NB205 and the software Wireless Communicat​ion Switch

    I have just upgraded my NB205-N210 from Windows XP to Windows 7. After running all the relevant Windows Updates and the Toshiba Software Installer for Windows 7, just about everything works great. (Note: my function keys do work in conjunction with the Flashcards utility.)
    The one problem is wireless. Some people have posted a related problem, but I think I can pin down the source more precisely. Fn+F8 cannot enable wireless, and Flashcards give the error "Wireless communication is disabled. Please turn on the Wireless communication switch." The NB205 does not have a physical switch to turn on the wireless hardware. In Windows XP, the NB205 turned wireless on and off through a software switch. Is there a version of this software switch for Windows 7? If not, does anyone know a workaround?
    (One more note, I have also tried uninstalling the adapter, but that made no difference.)
    Solved!
    Go to Solution.

    I have same problem with my NB 205-N210, I Upgrade from windows xp to windows 7 ultimate but Fn key itsn't function, I cant use my wifi to conect, its always disable..,but now I found a solution, this is my step
    1. I'm download & install ACPI Flash BIOS version 2.10 for mini notebook NB200/NB205 (PLL20U/23U/25U/28U)(v2.10; 06-25-2010; 4...
    2. Im install util_tvap_TC00214700M (version 1.2.33
    3. then Install Toshiba Flash Cards Support Utility for Windows Vista/7 (32/64) from here: http://www.csd.toshiba.com/cgi-bin/tais/support/js​p/modelContent.jsp?ct=DL&os=&category=&moid=246476​...
    now my NB205-N210 Fn key its going function & my wifi is enable and works great....

  • Scale x and y axis in intensity plot

    Hi All,
    I need to plot a 2D array in intensity plot.  But I need to change the displayed x and y axis in a different scale (i.e., they are actual single 1D arrays) instead of the index numbers of my 2D array.  Any solution to this? Thanks.

    Hi,
    right click the plot, and select property node.  For each axis, use the property X scale >> Offset and Multiplier.  This will start the scale at Offset (instead of 0), and put a distance between the points of Multiplier (instead of 1).
    Let me know if this doesn't work for you.
    Joel

  • How do you update an intensity plot one element at a time?

    I would like to use an intensity plot (or other control) to plot data collected from A/D channels. How do you get the Intensity plot to update one element at a time vs. row by row? Tips and suggestions greatly appreciated!

    > I would like to use an intensity plot (or other control) to plot data
    > collected from A/D channels. How do you get the Intensity plot to
    > update one element at a time vs. row by row? Tips and suggestions
    > greatly appreciated!
    >
    You will need to use the intensity graph and keep the buffer yourself.
    Init the data with background values and start filling then in using
    Replace Array subset. Presumably you are in a loop. Recirculate the
    data in a shift register adding new data each iteration and plotting the
    array to the intensity graph.
    Once you get to the horizontal edge, you need to decide if you split the
    data to get rid of the first row and append a new background row to the
    end making a strip chart, or do you clear the array and start over from
    the initial edge again making a scope chart, or do you mod the index
    with the buffer size and erase a row at a time in advance making a sweep
    chart.
    To update the scales, you don't have to change the data. Just write to
    the Offset property each time you scroll and it will relabel the data
    with 0 mapping to the offset value.
    Greg McKaskle

  • How to make a 2d intensity plot?

    I'm trying to make an intensity plot as a function of x and y positions.... I have a scanning stage that gives me the positions and I am measuring the intensities at those locations... I have put this on a 3d plot and it comes out nice, however, I need it on an intensity plot with multiple colors.... when trying to do this, I get time on one axis... I was wondering how I could change the axis to x and y for the intensity plot... thanks

    Have you tried a set up like this
    but instead of random numbers you put in your 2d data
    - there is always an easy way, but it is always the hardest to find
    Attachments:
    Intensityplot.vi ‏14 KB

  • Intensity plot LV 7

    Hi everybody out there.
    My licensed Version of LV is 7.1 for windows XP.
    I have a big matrix:
    first line: wavelenghth (380, 400, 420, ...)
    first column: time (a nonlinear scale, e.g. 0,1,2,3,4,50,100,500,1000)
    all the other "cells" contain my (relative) intensity signal:
    0.01, 0.02, 0.00
    0.03, NaN, -0.1
    I cut the first row and column and generate an intensity plot.
    That looks quite OK.
    But what I want to do is the following:
    1) How can I create ticks on the axis with my real value (and not the
    matrix index)? (I'd like to use the vectors which is left from the
    matrix cropping)
    2) I need a interactive "tool" to read a cursor, which is placed by user
    in this plot (with the intensity plot it is not possible).
    => in other word:
    LV creates a nice plot with a axis including the ticks and the user can
    put a cross (cursor) in the plot and LV returns the wavelength and the time
    Is this possible?
    I'm new here, I hope the questions are not off topic.
    Thanks a lot,
    Thilo Kunz

    Intensity graps require the spacing in x and y to be uniform so labeling the axis ticks will not be trivial. Maybe you can substitute the axis of a hidden slide and set it to "text labels".
    The cursor problem is much easier. Just read the cursor index and then index into your array of time values and display it. (Same for the Y axis, except you would need to use cursor position, because cursor index is not available here).
    Another possibility would be a picture indicator to make your graph. Here you have full control over any axis labels you want to place. This will require some work, though.
    LabVIEW Champion . Do more with less code and in less time .

  • Intensity plot

    hi
    i have one data file and i want to plot that data in intensity plot
    the data which i have atteched here are looking same as in photo which i have atteched
    so i want to plot that data and should match with photo
    thanks
    Solved!
    Go to Solution.
    Attachments:
    a55.xls ‏16 KB
    intensity.JPG ‏31 KB

    Hi kabariya,
    when you need the same result as in your JPG you should use the very same data. Or you should atleast know more about your existing dataset...
    - Your "XLS" file is a simple text file. Don't rename it without a good reason!
    - The file contains two columns of data, but they don't seem similar to your JPG...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Intensity Plot Scaling

    I need to change the scaling on the intensity plot. However, there have been some changes in Labview 6i and now I can't find how to change Xo and dX programmatically through attribute node. Does anyone know how to get Xo and dX to show up? I have been playing around with the X.increment, X.minor.increment, X.start, X.maximum, and X.minimum, but they don't seem to give the results I need.

    In LabVIEW 6i, Xo (offset) and delta X (multiplier) for scaling data can be found in a property node under /X scale/Offset and Multiplier/
    Hope this helps. /Mikael

  • Unusual Intensity Plot

    Has anybody got any idea how I might re-create this Matlab plot in LabVIEW without spending days developing a 2D picture solution to the problem, which although would be most fun is unlikely to be received particularly well by the project manager!
    It's fundamentally a circular intensity plots which probably has a particular name which unfortunately I don't know, and the only person who might know is off sick today.
    Any thoughts greatfully received.
    Thanks,
    David
    David Clark
    CLA | CTA
    CLA Design Ltd
    Hampshire, England
    Solved!
    Go to Solution.

    Here's a quick draft (LV2010). Of course it needs a bit more work.
    You would just use a few more image tools to add the straight lines and the text to the image part.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    radar.png ‏30 KB
    Radar.vi ‏16 KB

  • How to choose color marker in intensity plot

    Hi There,
    I am trying to plot my 2D data file in intensity plot. I want to that color plot should be like Red as maximum value while Green as minimum and 0 value should be yellow. I looked at this example http://digital.ni.com/public.nsf/allkb/1ADFF221E27F5B5886256E6F007C7B58?OpenDocument , but in this example they are deciding marker beforehand. In my file i want to choose marker based on maxima and minima value.
    Thanks
    Yogesh 
    Solved!
    Go to Solution.

    Here's a simple example. I did not change anything execpt to show the z-scale markers with 1 decimal digit (default is zero). This is just cosmetic.
    Message Edited by altenbach on 05-31-2009 12:50 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SetZMarkers.png ‏52 KB

  • Real-Time updating 2D Polar Intensity Plot

    Hello,
    I am trying to construct a polar intensity plot.  There are a lot of different solutions on the board but 3D graph and pixel by pixel plotting won't cut it for the update time I am looking for.
    Think 'weather radar'
    My current solution is to use replacePixelLine.vi.  I place one end of this line in the center of my picture, and sweep the other end around in a circle.  My pixel color data is my intensity levels, I switch data sets everytime I move into another angular bin.  Its quick enough to update every ~25ms, which is good for me.
    However there is a bad side effect in replacePixelLine.vi that makes all of this pretty much useless.  When the line must step diagonally, it moves 1 pixel in both x and y directions, instead of making an L by moving in x, then y.  This means that at 45 degrees, this vi draws only 71% of the pixels as 0 degrees.  On top of this, instead of scaling the pixel color data, it just lops off what it cannot plot.
    Therefore I have a strange situation where my data is plotted in a squarish shape and the angular bins don't 'arc' correctly.  The bins are just drawn as straight lines, either horizontally or vertically depending which side of the n*45deg lines you are on.
    Is it possible to change internal workings of replacePixelLine?

    Hi pschmal,
    replacePixelLine.vi is not a VI that is shipped with the Vision Development Module.  I assume you are using the IMAQ Get Pixel Line and IMAQ Set Pixel Line within a subVI that is named replacePixelLine.vi.  Is this true?
    Is it possible for you to post a bit of sample code that demonstrates what you are having problems with.  It is easier to diagnose and come up with possible workarounds that way.  Thanks!
    Kristen H.

  • How to remove win 8 and install win 7 in bootcamp

    I want to completely remove win 8 and install win 7 in bootcamp. I followed the steps in bootcamp assistant and it appears to remove the win 8 partition. However when starting a new win 7 bootcamp partition and installation setup still thinks win 8 is being used. how do I get it to recognize the win 7 now being installed from the usb drive? This is on an iMac 27 late 2012 with OS x 10.10.1

    Hi Janesdf,
    Welcome to Lenovo Community!
    As per the query we understood that you are looking for Windows downgrade on your Ideapad N580.
    Before doing any changes in the system HDD partition or with Windows OS, I suggest you to create the system recovery media and then you can downgrade the OS. But you require Windows 7 recovery media.
    Hope this helps.
    Best regards,
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • I received a notification on my iphone recently that "Leroys Ipad" is now using my phone number for Imessage. The problem is the Ipad is in possession of my ex girlfriend and we no longer communicate. How do i receive Imessage on my Iphone only?

    I received a notification on my Iphone recently that "Leroys Ipad" is now using my phone number for Imessage. The problem is that i no longer have that Ipad but my ex girlfriend does and we no longer communicate. How do i receive Imessage on MY PHONE ONLY or delete other devices not in my possession from my messages?

    You need to change your Apple ID password.  You could login to Find My iPhone and wipe that iPad if you felt the need to do so.

Maybe you are looking for