Dynamically import .m file into Matlab Script
I would like to dynamically load a Matlab .m file into the Matlab Script function in a VI.
In other words, based upon a path to a .m file (control on the FP), load the .m file into the Matlab Script and then execute it.
Does anyone know how to do this?
Solved!
Go to Solution.
Hi RedSoxFanatic,
It's not possible to do what you're asking. However, I can think of a couple options that will give you the same behavior.
1. If you only have a few of your .m files that will be called you can use a case structure with these files already loaded. The user can then choose which case to run.
2. You can have the Matlab Script Node run you particular .m file based on an input (number maybe), but this does also require you to have a predefined list of your .m files.
Justin D.
Justin D.
Applications Engineer
National Instruments
Similar Messages
-
How to insert data from file into matlab script node
I have interfaced input data from file to be processed using matlab script node. But the problem is that I could not capture the multiple data into matlab script node and to convert it into matrix. Further to this I need to process the data by plotting graphs from it. Thank you in advance for the advice
Zarina,
To clarify your problem, you have a script node contaning your Matlab code. Are you then using the standard LV functions to load in your data from a file and pass it into the script node?
Regards
Tristan -
Hello,
I would like to import tdms file (Labview version 2009) into Matlab (R2012a). I tried to follow a few solution given in this forum, however I couldn't find any that could help me.
I hope anyone can give guidance on how to import these file.
Many thanks
Best regards
Hafisohfie wrote:
Thanks to all for the advice..
If you really want to thank them, give them kudos, and mark the answer to the question.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously. -
Does anyone know how to read in a TDMS file into Matlab?
I am trying to read a TDMS file into Matlab. Are the two compatible? How can I import this file into matlab?
A search can turn up wonderful things, such as:
Reading TDM/TDMS Files with The MathWorks, Inc. MATLAB® Software -
Import Text Files Into Apple Notes?
Hello,
Is there a way for me to automate importing text files into Apple Notes? I can certainly do this manually via copy/paste, but have over 700 files to transfer.
Peace,
Dr. Z.Automator is Apple's simple way to do tasks like this, but Notes app doesn't have any actions for this so I assume you need to use Applescript to do this. Double check Automator - I am on 10.9 & maybe 10.10 added support for Notes in Automator? Enter 'Note' in the search field to see if Automator can make new Notes.
There is an example for making notes at…
http://www.macosxautomation.com/applescript/notes/04.html
See the "Create New Stylized Note" script <- click script icon to download it, copy & paste seems to fail because of how the browser displays characters.
You would need to adapt that script to import from the text files.
I'm not sure you really want to do that anyway - Notes app has such poor support that putting serious data into it looks like a mistake - how difficult will it be to export data when Apple eventually abandon it? It seems like a toy app to me for new iPhone users, it;s unclear if it will ever be able to compete with other options. There are third party apps to export from Notes.app, but why rely on third parties? A notes app should allow you to import & export your data!
Notational Velocity seems like a better choice…
http://notational.net/
It will handle notes as text files if you desire, so you can store them in Dropbox if you want. You can also set it to sync to Simplenote on iOS.
http://simplenote.com/
If you need images within notes or text styling you could use Evernote or one of the many other notes apps.
Sorry to sound so negative on Notes.app, it's OK but I don't think its the best place to put over 700 notes. -
Can i import .sql file into oracle apex?
i'm new to oracle apex....
Can i import .sql file into oracle apex?
i've to import a table into apex...
what script i have to write into the .sql file....
pls help...
Edited by: 794244 on Jan 31, 2011 9:31 PMHi Mahesh
Navigate to the APEX documentation page - all the documents are listed there ;) (including direct links to the step-by-step "how-to's" - great stuff)
http://www.oracle.com/technetwork/developer-tools/apex/documentation/index.html
Enjoy the wonderful world of APEX!
Mike -
Adobe Technical Communications Suite - Importing Framemaker Files into Robohelp
We have just started using the Adobe Technical Communications
Suite to import our Framemaker files into Robohelp. (We have about
a year’s experience of taking Framemaker files into Web Works
Publisher, with good results so we were hoping for a similar
experience with Robohelp).
Please can you help us with the following two problems:
1. Importing FM files into Robohelp has posed some immediate
table formatting problems. We imported the FM files by reference
according to the instructions but cannot format the tables, ie.
Colors etc.
2. Can you also tell us if there is a way to set up our
graphics in Framemaker to import into Robohelp without first having
to run them through a batch file scenario to change the size for
online help. Also, can you explain why the imported graphics are
being put into separate folders in Robohelp – is there a
system option where we can stop this from occurring.
We are a little frustrated because we are long-time users of
Robohelp and Framemaker and are finding some of the new features of
TCS are not as helpful as we first thought. I am sending these
questions after spending several hours going through the Robohelp
Help and the Adobe website and not finding the answers.
Thanks for your help,
Asra S.I have purchased the Technical Communications Suite and am
working with it now. I am finding several short comings in the
product – 60% great product and 40% not so great. I have been
using FrameMaker and RoboHelp for about 11 years and also I am a
Webworks (ePublisher) user. I was expecting (at a minimum) to have
the same functionality as ePublisher in TCS - ePublisher works
seamlessly with FrameMaker. Quadralay worked with me the first
month to answer my questions to ensure I was pleased with the
product - and welcomed/appreciated my feedback. In some cases they
provided me with scripts to accommodate my needs. I am finding on
message boards and forums that a lot of users as very disappointed
with your product so far. Are there any plans on
improving/enhancing the product to accommodate our basic requests?
The standard answer we get concerning graphics and tables is
to use conditional text. This is not single-sourcing and is a
horrible recommended work-around – a hack if you will. We use
conditional text to handle differences in program functionality. I
understand there is some set up required when you create a new
project in RoboHelp, but after that I would like to run the Batch
File process to simply generate my newly updated FM files to online
help. How efficient is that? VERY!
I have provided a list of the basic missing
functionality/oversights that would greatly improve the product and
satisfy a lot of your current users. Some of these issues may be
user misunderstanding and in that case I seek guidance on what
I’m doing wrong. Take the other issues into consideration
because these are not just my issues, but a TON of your users.
Hopefully you are user focused and are as concerned as we are.
Please welcome this feedback as a way to improve the product.
- No Breadcrumbs supported with MS HTML Help - supported in
your other outputs and is available in ePublisher, so it must be
possible.
- Table formats are not configurable – why? Sometimes
the converted table format from FM isn’t 100%.
- Imported file structure (folder for each chapter) totally
hoses my fix to poor graphic rendering. Currently I use a batch
file to run a Photoshop macro/action on my graphic source files to
reduce the file size by 50% and sharpen. I replace the graphics
with my graphics and they look marvelous in online help. I copy my
source graphics back into my “graphics folder” imported
into FM at 260 dpi for my printed docs. Can we have the option on
the structure for imported FM files to put them all into one
folder?
- Text entered into the Auto numbering field is not converted
when importing by reference. It is when just doing a straight
import. This is used for standardizing my inserted tables with
pre-populated column titles– Troubleshooting, If/Then, etc.
- Too many CSS issues. It would be nice to have one main
template that we can sync to when the master template is changed.
- Can’t specify a default template to apply to all FM
files when imported.
- My output .chm file is not picking up my Project Settings.
It will not display Favorites, My Window Size, it’s not
showing the TOC.
- Cross-references – sometimes they work and sometimes
they don’t.
- Markers – we use markers for glossary terms and the
character tagging carries forward throughout the rest of the
sentence.
I started testing the product four days ago and these are the
major issues that are keeping me from moving forward with my
overall plan to move to structured FM. I’m now between a rock
and a hard place because now my department does not have the
software to do their job. Do I go to management and tell them that
I made the wrong decision in my tool selection? I choose your TCS
over the updated Quadralay ePublisher that works with FM8…
Maybe they went up on their price because the knew their former
users would come back and be willing to pay the increased price for
their software that generates online help with just a click of a
button.
Thank you for taking the time to read this and for your help
in advance. Please direct these concerns to those in charge of
enhancing the product (Product Evangelist). A reply and technical
support is greatly appreciated.
Director of Technical Publications - Horizon Software
International, LLC
Nikki Bridwell -
How to Import XML file into SAP B1
Dear All,
I have a scenario like,
I am receiving a XML file from a 3rd party application for the daily Creation,Update of Item Master,BP Master, Marketing Documents. I want to import this file into SAP B1 through its approp objects. I understand DTW has limitation in its file types (Semicolo,Tab,Comma,ODBC). How do i do this ? Please guide me.
Thanks,
Thanga Raj KHy folks,
I´m frim Brasil and I've been studying the tool EFM (Eletronic File Manager) to learn more about it!
There I saw that we can extract to XML "any" infomation from the database we want, mainly through the GEP.
However, as I've seen, this Add-On can not import any XML file into SBO, unless for the BFP wich can be imported in conjunction with the BTHF Add-on.
So I ask: how is it possible to import XML data into SBO database? Is it possible to be done through the EFM? or it´s really necessary to write a code specifically to do that?
Besides, I know that de B1iSN fit to this necessity... but when I tried to use it, by the custom "object" for BP, for example, there are some data wich the mapping conteined in this custom "process" that can not be imported... I tried to understand how to map those other fields not imported by the custom but this has been dificult to me as I am a implementation consultant focused in administrative process not on development...
Could you please help me with this subject!
Thanks a lot,
Denis -
Problem importing ics files into iCal
Importing ics files into iCal is the problem, but first here is the background on why I'm trying to import.
I have an iMac and iPad, and recently changed my iPhone 3G for an iPhone 4S. Having got the iPhone 4S I have now set up all my devices to use iCloud. In moving iCal to iCloud an extra calendar was created "automatically" in iCal, called "Me". This "Me" calendar contains a partial duplicate of my main calendar, which is called "My Calendar". In fact, some of the events from "My Calendar" seem to have been moved to "Me", and some have been duplicated.
It seems as it I now need to merge the "Me" and "My calendar" calendars to get back to where I was.
I have tried to export one of the calendars and then re-import it into the other. The export seems to work fine, but every single time I try to re-import the ics file iCal crashes at the end of the import process, and the import is not completed.
Can anyone help? This has been driving me absolutely crazy today!
I even tried manually moving events from one calendar to another, but they reappeared. I think this was because my iPhone/iPad were re-syncing via iCloud and overwriting the changes I had just made.
I don't mind if I end up with one calendar with duplicates as I can remove them with iCal Dupe Deleter.
Or if there are any other alternative solutions I'd love to hear them!
All help greatly appreciated!
(P.S. Is it just me, or is Apple software slowly getting as unreliable as Windows used to be? I get more problems with software updates now than when I first got a Mac about 8 years ago!)Not a great answer but I dragged the attachment either to the finder - app - ical or the icon. It placed it on the calendar. I clicked in and accepted. So, no auto populate. Need to drag and drop. So glad I paid the 20 bucks to upgrade to 10.8
-
How can I import a file into my Windows Phone 8.1RT App?
Hi All,
I'm running into a bit of an issue associating my app with a custom file type. Users create a file using my app and upload it to their OneDrive for sharing. So I then want to give the users the ability to download the file from a share link and
have that file open automatically in my app. I've got the appropriate declarations set and file type associations, but I'm getting a file access exception when I try to open the file. Whats the best way to import a file into my app? Here's
the code I've got so far:
protected override async void OnFileActivated(FileActivatedEventArgs args)
var path = args.Files[0].Path;
var name = args.Files[0].Name;
StorageFile newFile = await StorageFile.GetFileFromPathAsync(path);
await newFile.CopyAsync(ApplicationData.Current.LocalFolder, name.Substring(0, name.Length - 4));
The path comes back as
C:\Data\Users\DefApps\APPDATA\Local\Packages\microsoft.microsoftskydrive_8weke\LocalState\OpenWithTempFolder\e68c261-db3b-472d-a8b7-93427450\File Name.extension
and the exception is
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Clearly I'm trying to access the file in an inappropriate way, so what's the best way to get the file into my app's local storage?You have the StorageFile in arg.Files[0] already. Just use that rather than getting its path and then trying to create a new StorageFile from it.
var path = args.Files[0].Path; // <= Path is unnecessary and unhelpful
var name = args.Files[0].Name;
await args.Files[0].CopyAsync(ApplicationData.Current.LocalFolder, name.Substring(0, name.Length - 4));
See my blog entry Skip the path: stick to the StorageFile for more details. -
Is there a way to import Raw files into LR catalog ..including..any edits performed in an external raw file editor such as Capture One?
I can import the Raw file successfully but cannot see any edits that were applied in Capture One. Im assuming no but just checking.Your assumption is correct, Capture One, Lightroom and other third party raw processors have their own proprietary processes and profiles for rendering the raw data.
They do not make permanent changes to the raw data and store the changes to an .xmp file or to a catalog file like Lightroom. -
Looking for a Notes app that I can import CSV files into?
As the title says, I'm looking for a good notes application for my iPhone that I can import CSV files into. I have tried both Appigo and Notespark, but I can't easily scroll through them, as I have 2,000+ notes. Is there any app that I can import my notes into and also scroll through quickly? I'd like something that works similarly to how you scroll through songs on the iPhone/iTouch, with the column on the right where you can skip to songs (notes, in this case) that start with a certain letter.
Thanks!Hi Tx Tar Heel,
I've been using Office2HD: https://itunes.apple.com/us/app/office2-hd/id364361728?mt=8
Its cheaper than Numbers and it also works for Word and PowerPoint files too. I like the Dropbox integration. I can start on my Office docs (Word, Excel, PowerPoint) in the office and then edit those files with Office2HD when I'm out of the office. Files saves right back to Dropbox so that when I get back to the office the files are already updated. Not bad for a $7.99 app!
Hope this helps!
~Joe -
Error while importing tpz file into XI Design
Hi All,
When i am trying to import latest exported tpz file from Dev system into Q system i am getting below error.
Also the tpz file i am importing , with same file name already i have imported earlier into Q system through other Dev system. Now i am importing the exported file through prod fix environment dev system. Please help me , how to import the file without this error. Also, how to avaoid duplicate file name for importing tpz files or overwrite exiting imported tpz file which is having same file name.
Batch rolled back. Caused by java.sql.BatchUpdateException: ORA-00001: unique constraint (SAPSR3DB.SYS_C00136623) violated at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343) at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10698) at com.sap.sql.jdbc.basic.BasicPreparedStatement.executeBatch(BasicPreparedStatement.java:263) at com.sap.sql.jdbc.oracle.Oracle10gPreparedStatement.executeBatch(Oracle10gPreparedStatement.java:100) at com.sap.sql.jdbc.direct.DirectPreparedStatement.executeBatch(DirectPreparedStatement.java:1129) at com.sap.sql.jdbc.common.CommonPreparedStatement.executeBatch(CommonPreparedStatement.java:991) at com.sap.engine.services.dbpool.wrappers.StatementWrapper.executeBatch(StatementWrapper.java:270) at com.tssap.dtr.pvc.basics.transaction.StatementReleasingConnection.executeBatch(StatementReleasingConnection.java:297) at com.tssap.dtr.pvc.versionmg.DefaultIntegrator.fireSQLBatches(DefaultIntegrator.java:1072) at com.tssap.dtr.pvc.versionmg.DefaultIntegrator.executeDBUpdates(DefaultIntegrator.java:384) at com.tssap.dtr.pvc.versionmg.DefaultIntegrator.integrate(DefaultIntegrator.java:337) at com.tssap.dtr.pvc.versionmg.VersionSet.integrate(VersionSet.java:183) at com.sap.aii.ib.server.pvcadapt.ImmutableVersionSet.integrate(ImmutableVersionSet.java:197) at com.sap.aii.ib.server.versioning.integration.VersionSetIntegratorImpl._integrateUnconditionally(VersionSetIntegratorImpl.java:300) at com.sap.aii.ib.server.versioning.integration.VersionSetIntegratorImpl.integrateClosedVersionSet(VersionSetIntegratorImpl.java:119) at com.sap.aii.ib.server.versioning.integration.VersionSetIntegrator.integrateClosedVersionSet(VersionSetIntegrator.java:52) at com.sap.aii.ib.server.propagation.PropagatorImpl.integrateObjectVersions(PropagatorImpl.java:261) at com.sap.aii.ib.server.propagation.Propagator.integrateObjectVersions(Propagator.java:174) at com.sap.aii.ib.server.transport.impl.pvc.PvcTransport.pvcIntegrate(PvcTransport.java:191) at com.sap.aii.ib.server.transport.impl.service.InternalTransportServiceImpl.integrateVersionset(InternalTransportServiceImpl.java:480) at com.sap.aii.ibrep.server.transport.impl.service.InternalRepTransportServiceImpl.autoIntegrate(InternalRepTransportServiceImpl.java:546) at com.sap.aii.ib.server.transport.impl.service.InternalTransportServiceImpl.importZippedStream(InternalTransportServiceImpl.java:716) at com.sap.aii.ib.server.transport.impl.service.InternalTransportServiceImpl.importFromImportSource(InternalTransportServiceImpl.java:362) at com.sap.aii.ib.server.transport.impl.service.TransportServiceImpl.importFromImportSource(TransportServiceImpl.java:151) at com.sap.aii.ib.sbeans.transport.TransportServiceBean.importFromImportSource(TransportServiceBean.java:75) at com.sap.aii.ib.sbeans.transport.TransportServiceRemoteObjectImpl1_0.importFromImportSource(TransportServiceRemoteObjectImpl1_0.java:730) at com.sap.aii.ib.sbeans.transport.TransportServiceRemoteObjectImpl1_0p4_Skel.dispatch(TransportServiceRemoteObjectImpl1_0p4_Skel.java:100) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:199)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Thanks in advance.
Rajesh
Edited by: rajesh amrabad on Sep 11, 2008 10:35 PMIn addition to abobe answers,
Keep this .tpz file at below mentioned location
\usr\sap\<SID>\SYS\global\xi\repository_server\import\XI7_0_SAP_BASIS_7.00_09_00.tpz
then login to the IR and peoceed as Tools -
> import design objects. Her you will get this .tpz file, just import it.
follow the steps given in this link and check if you are doing the correct thing.
http://help.sap.com/saphelp_nw04/helpdata/en/93/a3a74046033913e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/ef/a21e3e0987760be10000000a114084/content.htm
The steps that you require are listed below,
1) You must have the role SAP_XI_ADMINISTRATOR or SAP_XI_CONTENT_ORGANIZER to be able to export and import XI content.
2)You import the XI content by first copying the provided export files into an import directory on the host of the Integration Builder and then importing the files into the Integration Repository.
3)Copy the export files into the import directory for the Integration Repository (<systemDir>\xi\repository_server\import).If the files are packed, you must unpack them before importing.The actual export files have the extension .tpz. You must not unpack these files.
4)The import directory is created the first time you call the Integration Builder.
5)Start the Integration Builder and call the Integration Repository.
To do this, perform the following steps:
a. Log on to the SAP system on which your Integration Builder has been installed.
b. Open the Integration Builder start page by calling it either from your user menu or with Transaction SXMB_IFR.
c. Choose Integration Repository.
Choose Tools u00AE Import design objects to import the XI content.
6)Only the files from the import directory are offered to be imported. The sequence in which
you import the export files is not important.
7)After a successful import, the Integration Builder moves the imported TPZ files into the directory <systemDir>/xi/repository_server/importedFiles. The support package stack of imported software component versions is displayed on the Details tab page for the relevant software component version in the Integration Builder. If an error occurs, this information is important for support.
Hope i have been of some help. -
Can no longer import Word files into InDesign
Hello,
For many months I have been importing Word files into InDesign CS3 (Mac OSX 10.4.11) with no trouble, but I started having a problem yesterday.
When importing a 17-page Word file with 16 footnotes, I got none of the text and only the footnote numbers. This is what I get in InDesign:
12345678910111213141516
(Endnotes)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
These are the things I've tried already: restarting, deleting preferences, changing the import options, using CS2, importing someone else's Word file, importing a Word file that I imported successfully a couple of months ago. None of this works.
It has been suggested that I save the Word file as rtf, but since I have 200 files to import and I'm using Word's character styles for italics, bold, small caps, etc., I'd rather try to fix this problem.
Can someone help?
Thanks,
TinaI am using indesign CS2 and i'm trying to import a Word document into a new chapter for a book i'm laying out. it's about 30 pages, but there are at least 80 foot notes. i'm able to get about 1/2 of the document with the footnotes to flow correctly, then EVERYTHING disappears. the only way i've been able to get the remaining text to appear is by adding characters to the text. i'll hit "vvvvvvvvvvvv" a bunch of times and "magically" a little chunk of text and it's footnotes appears. then the ole disappearing act happens. so i do it again. i'm able to get all the text to appear finally, but when i delete the "vvvvvvvvvv" from the places i inserted them, the text disappears again. i have no idea why this is happening or how to fix it. any ideas?
thanks so much,
travis -
Import DMP file into Oracle 8.1.5 on Windows 2000
How to import DMP file into Oracle 8.1.5 database on Windows 2000 ?
Please mention a coding example
Thanks,
Vivek GuptaImport has a lot of options, so it depends on what you want to do.
C:\> imp help=y
will show you all possible options. An example of full import :
C:\> imp <username>/<password>@<TNS alias> file=<DMP file> full=y log=<LOG file>
Message was edited by:
Paul M.
...and there is always [url http://download-uk.oracle.com/docs/cd/F49540_01/DOC/index.htm]The documentation
Maybe you are looking for
-
Downloading windows support software through boot camp stuck around 20 percent of the way.
downloading windows support software through boot camp stuck around 20 percent of the way. tried several times same thing. I don't have original snow leopard disks. MBP mid 2010 8gb ram 15'. is there any other way to get the drivers for Windows? I do
-
Hello, What tools are within the XDK for simply pulling the data out of Oracle tables and creating XML output files? Bart Torbert [email protected]
-
CVE-2014-6271 and CVE-2014-7169 Patch Availability Document for Oracle Linux
Hi, Can you suggest from where we need to download bash rpm for OEL 6 :- bash-4.1.2-15.el6_5.2.x86_64.rpm bash-doc-4.1.2-15.el6_5.2.x86_64.rpm Thanks in Advance !! Mukesh
-
[b]Hi could anyone help me - Grid on image[/b]
Hi could anyone help me please it is URGENT. I am trying to create a grid in a Panel which has a image. I want to strech the image by using the grid. Here is an exmple of what i mean http://www.ssec.wisc.edu/~curtis/stretch.html Thank you
-
How can i add to PXI-1044 a new Power Supply
Hi everbody. I have a PXI-1044 chassis and i want to replace its power supply with a new one because of i have no 220 AC main to supply the 1044 at the working area. So that i kindly request to be answered this question whether i can replace internal