MathScript Nugget #19: Sharing Data With Other Applications

In MathScript Nugget #18, we looked at ways to transfer data between MathSript and the rest of LabVIEW. In today's nugget, we'll see some of the different ways that MathScript can share data with programs besides LabVIEW.
The most common way to share data between programs is by reading and writing files. MathScript supports several file formats that are recognized by other programs. The ones we'll touch on in this nugget are MLV, MAT, CSV, TXT, TDM(S) and XLS.
The easiest way to bring data into MathScript is with the 'load' function. The help topic for this function does a great job of explaining it. The load function will bring in a group of variables that have been saved to a file earlier. The most common formats that load supports are:
MLV files created with MathScript save function
MAT files created with  version 6.0 or earlier of The MathWorks, Inc. MATLAB® software
TDM and TDMS binary measurement files created in LabVIEW or DIAdem
The load and save functions are great for storing off a group of variables to be used again in a future session of MathScript. You can do the same thing using the Operate>>Load Data... and Operate>>Save Data... menu items in the MathScript Window. These support the same file formats as load and save.
The best formats to use if you want to share data with other applications are TXT, CSV, and XLS. MathScript has special funcitons to read and write each of these formats. The functions, such as fread_csv and fwrite_xls, are all members of the support class.
The last way to read and write data files with MathScript is to use a custom file format. MathScript supports common file operations like fread and fwrite. You can use these functions to create or import files of any binary or textual format.
There's one last way to move data out of MathScript without using files. You can copy data from the MathScript Window or MathScript Probe as tab-delimited text to your OS clipboard. You can then paste this text to a text editor or spreadsheet program.
Hopefully now you have an idea of the many ways to move data into and out of MathScript.
MATLAB® is a registered trademark of The MathWorks, Inc.
jattas
LabVIEW MathScript R&D
ps Check out more MathScript Nuggets!

TDM and TDMS are also excellent file formats to share your data with other applications. National Instrumenst offers free libraries and add-ins to access TDM and TDMS files with e.g. Excel, OpenOffice Calc or The MathWorks, Inc. MATLAB® software. Have a look at this page to 
Find Resources for Reading and Writing TDMS Files in Third-Party Products

Similar Messages

  • Best practice for sharing data with model window

    Hi team,
    what would the best practice for sharing data with a modal
    window be ? I use a modal window to display record details from a
    record list, but i am not quite sure how to access the data from
    the components in the main application in the modal window.
    Any hints would be welcome
    Best
    Frank

    Pass a reference to the parent into the modal popup. Then you
    can reference anything in the parent scope.
    I haven't done this i 2.0 yet so I can't give you code. I'll
    post if I do.
    Oh, also, you can reference the parent using parentDocument.
    So in the popup you could do:
    parentDocument.myPublicVariable = "whatever";
    Tracy

  • How do I stop sharing mail with other users on my computer

    How do I stop sharing mail with other users on my Macbook pro?

    You may have to set up different user accounts in the computer if you wish to
    continue sharing the computer among other people, and only use the Mail app.
    Otherwise, if you use a webmail such as yahoo, gmail, or other, just use a browser
    and login each time; then there is no saving of your email to the computer as such.
    I've never used an email client software, nor had an ISP based email account. So
    my numerous computers have never downloaded email into software. No loss.
    But the answers do include setting up extra user accounts, not admin level, so the
    other users do not mess with the operating system; a standard account or just a
    guest account to use a browser to access web-based login email accounts, works.
    There are third-party email client for OS X, some are free applications, others are
    part of a larger browser product, such as SeaMonkey, & other Mozilla derivatives.
    They provide an email segment or client aspect; unlike Firefox that's a browser.
    Setup information should be within the Help viewer in the computer itself. Or by a
    simple search online, including the OS X version and any email client software
    your computer may have installed. Some browser software includes email client.
    Also there are several ways to go in this matter. I don't see questions, only answers.
    To learn how the Mail application works, if you want to import everyone's mail, then
    figure how to set up user accounts in the OS X. Or use web-mail & login by browser.
    Hopefully you can find the best solution for the unasked question.
    Good luck & happy computing!

  • While send/receive email, I have received an error message "Sending of password d"? However with same login details, I am able to login with other application.

    While send/receive email, I have received an error message "Sending of password d"?
    However with same login details, I am able to login with other application.
    I have changed password still the issue remains as it is.

    https://support.mozilla.org/en-US/kb/cannot-send-messages

  • Can i use Airplay with other applications different to iTunes on my Mac Pro?

    Hi,
    I bought a Mac Pro 13' Retina Display two weeks ago and today i bought a Bose SoundTouch 20 and i connected both to my home network by ethernet cord. when i try to use applications like iTunes to send the sound of a song from mac to bose it work perfect, but when i try to do the same with spottily (i downloaded the app for my mac) simply doesn't work and don't know why. Another issue is that either can't send the sound of the movies and videos from mac to bose (i already try this using this configuration: send by airplay the movie to apple tv and from apple tv send the sound to bose, all work perfect because all was connected with ethernet cord).
    So the question is, Anyone know why the Airplay function only work with iTunes and with other applications simply doesn't?

    AirPlay only works with iTunes for Mac OS, iOS devices, and Apple TV.
    Not third party (non Apple) apps such as Spotify
    If the Bose Sound Touch supports Bluetooth, you may be able to stream music to the Mac or Apple TV. That's for sound, not video.

  • How can I communicate with other applications from my Java application?

    Hello,
    I need help about how can i communicate with other application(say textpad.exe/wordpad.exe/MS word.exe) from my Java program.
    More precisely, I need to know how i can get the current position of the cursor whether it is in any .txt/.doc files, then I may write some text in my java application and click a button and then my program will append the line(string) in that position of the file which is running under another appliction(Notepade.exe/MSword.exe).
    Please provide me some help.

    I may be wrong (and anyone, please correct me if so), but Java may not be the best tool for something such as this. I envision that you'd have to make some OS calls such as calls to the user32.dll, and while this can be done through the JNI, you'd still have to have a C or C++ program doing the dirty work.

  • Using AirTunes with other applications

    What I want to do is to stream the audio output from the 2 laptops in my house (MacBooks with Leopard) wirelessly to a hi-fi. I know an AirPort Express will do this with iTunes, but I don't think it will work with other applications, which is what I want.
    Am I right, and is there any cost-effective way to do what I want to do (Apple solution or not)?
    Thanks in advance.

    World Of Ste wrote:
    What I want to do is to stream the audio output from the 2 laptops in my house (MacBooks with Leopard) wirelessly to a hi-fi. I know an AirPort Express will do this with iTunes, but I don't think it will work with other applications, which is what I want.
    Am I right, and is there any cost-effective way to do what I want to do (Apple solution or not)?
    You might try Airfoil:
    http://www.versiontracker.com/dyn/moreinfo/macosx/26038
    Note that I haven't tried it myself.

  • When I'm using a browser (like Safari) in Yosemite, how can I shrink it and share my desktop with other applications?

    I have an iMac, and after installing Yosemite (OS 10.10), all my browsers (like Safari) no longer share the screen with other applications, like Word or even Calculator.  How can I shrink Safari (or any browser) and share my desktop with other applications?

    When I'm using any browser (at the moment, it's Safari), I am unable to resize the window.  The browser BECOMES my entire desktop.  And if I open another application, suddenly the browser vanishes to the right, so I can only see the other app.  AND my dock disappears into a solid black space below the screen, which I can penetrate with my curser (after dragging the curser back and forth above and below the black space until the dock eventually reappears.  But if I select any app in the browser to open, then Safari vanishes instantly to the right of the screen.  I've tried to resize Safari (and Firefox and Chrome) by moving the curser to the bottom right of the browser, but that old standby doesn't seem to work anymore.  The browser takes up all of the screen, except for a small portion of the top, where my curser can reveal Safari's old menus, and the bottom of the screen, which is entirely black until I can locate my dock by dunking the curser up and down in the black ooze.
    I really want the old convenience of my Mac, where several programs can open side by side, but Yosemite seems to have precluded that possibility.  What can I do?

  • When I'm using a browser (like Safari), how can I shrink it and share my desktop with other applications?

    I have an iMac, and after installing Yosemite (OS 10.10), all my browsers (like Safari) no longer share the screen with other applications, like Word or even Calculator.  How can I shrink Safari (or any browser) and share my desktop with other applications?

    Yes, mission control threw everything across the screen (which is way beyond anything I could figure out), but the real answer I needed came from Apple Tech Support, which I finally called, and I learned about the two arrows in the top righthand corner, when I held the cursor there, which turned blue and resized and released the browser from total domination of the screen.  Those two, opposite-pointing arrows allowed me to shrink the browser and let other applications be seen on the desktop.  But thank you for extending a helpful tip, which I can use another time.

  • Opening a file with other applications

    Is there a way to open a file in Java with other applications automatically? For example, *.gif - Photoshop, *.txt - notepad.

    If you are using Windows, then yes there is.

  • After updating my Iphone 4 on iOS7, my microphone stopped working when someone is calling me(or when I call someone). But the mic works with other applications like Skype... Any ideas ? Thanks.

    After updating my Iphone 4 on iOS7, my microphone stopped working when someone is calling me(or when I call someone). But the mic works with other applications like Skype...
    Any ideas ? Thanks.

    Hi Anis289,
    Welcome to the Support Communities!
    As a first step, I would suggest restarting and/or resetting the iPhone:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    Here are some additional troubleshooting steps for sound on your iPhone:
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/TS1630
    Cheers,
    - Judy

  • Can I have personal calendars block time in my ical without sharing contents with others?

    Can I have personal calendars block time in my ical without sharing contents with others?

    The calendar attendant is enabled so meeting requests are handled automatically based availability without needing a human delegate to deal with them.
    Try disabling it and test. ( Maybe test against another dummy account first).
    Letting users place appt directly on a calendar is never recommended, but it could be the calendar attendant is trying to do its thing as well. 
    Twitter!:
    Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • Sharing files with other mac users on iCloud

    May I share files I store on iCloud with other users?

    If you want to try online sharing you might like to look at SugarSync:
    https://www.sugarsync.com/products/sync_sharing.html
    - this page says:
    Collaborate with shared folders
    SugarSync keeps all your shared files up-to-date and in sync for powerful collaboration with your virtual team. With folder sharing, you can collaborate on projects by giving a person, or a group of people, access to a shared folder on your computer. No more wasting time emailing individual files and tracking the latest versions. Just send an email invitation to your clients, coworkers, or family members to join your folder.
    Sync folders of information across teams
    Folder members can sync a shared folder directly to their own computers. Any member of a shared folder can have their own copy of the folder on their own computer. Folder members can edit files locally. Updates are reflected for everyone as soon as the file is saved.
    I've not tried this so you would need to investigate to see whether it suited your requirements.
    There is also a new program, Cloud App, which makes sharing files simple: it runs as a background process and you just drag files to the menu bar icon. Storage is with Heroku and Amazon: it's free with a limit of 10 files per day, maximum 25MB per file, $45 per year for unlimited files, maximum 250MB per file.
    Another possible option is YouSendIt. It provides the facility for you to upload files and send an email to a recipient telling them how to download it: and it's also possible with all but the free plan for others to upload a file for you. The free version allows you to send a maximum file size of 50MB with no upload by others: $9.99 per month gets you 2GB sized files in either direction, and there are upgraded plans.

  • Get DATA with BSP Application

    Hello Everyone,
    I want to get data from table SFLIGHT with BSP Application.
    I have used <htmlb:tableView and tableViewColumn tags
    but i am only getting the structure displayed in the browser, not the data, pls suggest some code to achieve that.
    Thank U
    Ravi Aswani

    Example:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select xmltype('<?xml version="1.0" encoding="UTF-8"?>
      2  <m:report xmlns:m="http://www.bea.com/alsb/example">
      3     <m:startTime>2013-06-04T14:02:08.168+04:00</m:startTime>
      4     <m:endTime>2013-06-04T14:02:23.417+04:00</m:endTime>
      5     <m:duration>PT15.249S</m:duration>
      6     <m:queryId>dummy</m:queryId>
      7  </m:report>') as xml from dual)
      8  --
      9  -- end of test data (in XMLTYPE datatype)
    10  --
    11  select x.*
    12  from   t
    13        ,xmltable(xmlnamespaces('http://www.bea.com/alsb/example' as "m"),
    14                  '/m:report'
    15                  passing t.xml
    16                  columns startTime varchar2(30) path './m:startTime'
    17                         ,endTime   varchar2(30) path './m:endTime'
    18                         ,duration  varchar2(30) path './m:duration'
    19                         ,queryId   varchar2(30) path './m:queryId'
    20*                ) x
    SQL> /
    STARTTIME                      ENDTIME                        DURATION                       QUERYID
    2013-06-04T14:02:08.168+04:00  2013-06-04T14:02:23.417+04:00  PT15.249S                      dummyNote, this is based on XMLTYPE input (you'll have to convert your data to that type)
    As for your timestamps etc. if you require those in TIMESTAMP or DATE datatypes you can convert those in the query

  • How to keep up to date with Sun Application Server 9.1

    Hi All: I'm just starting out deciding between Tomcat and Sun Application Server 9.1. Is there a patch number on SunSolve so I can keep the product up to date with any fixes?
    Any comments on which way to go for this for .war applications that do not have EJBs?
    Thanks,
    Rich

    Hello,
    recently I upgraded from Sun AppServer 9.1 U1 to U2. I downloaded Glassfish V2 U2, what is equivalent to AppServer 9.1 U2. Installing this download there is an option to upgrade the domain of an existing installation of the AppServer.
    This worked pretty well.
    Bernd

Maybe you are looking for

  • Profit center cost center assignment

    Dear All , 1) i need the total list of cost centers assigned to which profit center ? 2) tcode to view the balance sheet pl guide

  • Why does the volume button on iPad stop working

    Sound comes on sometimes works fine other times I go to change volume and it won't sound

  • How can I turn off iBooks iCloud storage?

    It's messing with my total allowed storage (putting me over the limit) and I just want it turned off. Any help would be greatly appreciated. Thanks!

  • CUCM 9.1 last login message error

    Hi, i am coming across an issue wehre AD user try to login CUCM admin and sees incorrect last logiin message. It shows last login from 1 Jan 1970. But if ccmadmin login it shows correct date and time for last login. attached are screenshots.   Not su

  • How to debug an Application Service?

    Hi, I have created an application Service which has  been exposed as as a Web Service. Now how can I debug the Web Service or in other words the application service. I have started the CE server in debug mode and I am able to debug WebDynpro Applicat