Ni-daqmx stand-alone matlab

Dear all,
I am about to compile my matlab code into a stand-alone program, which works fine. However, as soon as I start the data acquisition the program fails to initialize the DAQ-board.
I'm using the NI-9201 USB-ADC in combination with the NIDAQmx driver.
I localized the problem: When trying to initialize the ADC the program fails, since the required dll's are not available. I also localized the dll's and copied them into reach for the stand-alone, but it doesnt work.
As long as the MATLAB\toolbox\daq\daq\private folder is reachable for the programm/Windows, the software works. However, on the custumers computer I dont want to have MATLAB installed (what sense does it makes to have the option for distributing a stand alone version if the customer has to buy a MATLAB licence?). 
Can anybody help me solving this problem?  Are there any dll's I may copy into reach of the stand-alone? 
(Just as information:  The NI - Measurement and Automation was installed on the "customer-computer", In fact it was the exact same computer with the only difference that I renamed the MATLAB folder)
I'm looking forward to your suggestions!
    Bastian

The MTALAB toolbox of question is the dataacquisition toolbox, everything else works fine
The Matlab run-time is not the problem in generell, since everything except of the NIdaqmx-dll's is linked in the program. Here a short description how it works in matlab. 
- you write code, GUI's etc. and test the program in Matlab
- then you compile the application into a stand-alone
- if you hand it to a thrid person that has no Matlab licence, you also distribute the MATLAB-Runtime-Environment (MRE)
- the person installes this freely-distributable MRE on his computer and then runs the compiled program
All functions in the program are able to run, except of the NIdaqmx. As soon as I the program tries to communicate to the ADC (i.e. open a channel) the program fails. However, when I provide the dll's mentioned in the exact same directory as they were in Matlab, it works. So I'm not sure what tells the MRE that the dll's are in that folder, since it didn't work, when I just copied the dll's in the run-time directory of the stand alone. 
Since the program that I would like to distribute is quite complex, re-writing the hole thing in LABView is not an option for me (also, I have no experience with LabView at all, which would require some time to get into it).
The solution I aim for would be:
1st (best solution)
I just do something in the program to have the dll's compiled and linked to in the stand-alone
2nd
when installing the program I provide the dll's. (But I dont want to provide them in the folder ..\MATLAB\...\daq\daq\private\...)
 If you dont have the experience with matlab, do you know someone I could ask for this?  Maybe a Matlab forum that addresses NI-ADC questions?
Thank you for your support!
   Sebastian

Similar Messages

  • How to use matlab codes in a stand alone application without matlab license?

    Hi,
    I am not an expert in programming and i don't know about C++, i have a program using matlab codes and now i want to transfer it to a computer without matlab license. I've read something about using DLL, but i think i have to know C++ programming  to wrtie "WRAPPER" and add some lines to the program, now transformed in C++.
    I just would llike to know that really isn't any other way to integrate matlab for a stand-alone application? i read somethings in Matlab help about using COM (Common Object Model ) but i am not sure that labview works with it, and also about runtime engine and "mglinstaller.exe".
    my labview version is 8, matlab is 2006, and the real problem is using matlab codes in another computer without matlab license.
    Thanks
    Amir

    Hello Amir,
    There is a MatLab script node in the LabVIEW function palette (see screenshot of the help topic) but as you can see this structure is not in the "Base LabVIEW", you might need to purchase the FDS (Full Developpment System) or the PDS (Professionnal Developpment System) of LabVIEW...
    Do you know which one you have ?
    Hope this helps
    Message Edité par TiTou le 11-24-2006 06:38 PM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    mlab.png ‏71 KB

  • Stand-Alone application with LabView 7.0 getting error can't find DAQmx clear task.vi

    I have attempted to create a stand alone vi with the Build Application or Shared Library(dll) in LabVeiw 7.0
    When I put it on another PC to test it I get the error "can't find DAQmx clear task.vi"
    the other PC has Labview 7.0 and DAQmx 8.1 also.
    I believe my problem is in the source tab where you are supposed to add support and dynamic vi's I have search the forums and Ni's data base and have not found a solution.
    Solved!
    Go to Solution.

    Hi LabTech09,
    When you run the executable on the other computer is when you get this error?  Do you have the exact same versions of LabVIEW and DAQmx on both computers?  Does the dialog allow you to navigate to the DAQmx clear task.vi?  If so, you can find these VIs in C:\Program Files\National Instruments\LabVIEW 7.0\vi.lib\DAQmx\configure\task.llb.  Does the executable work on the development machine (the machine it was compiled on)?
    Regards,
    Jim Schwartz

  • Connect host pc running winXP to Stand-Alone cDAQ 9139 running win7 embedded via Daqmx

    Hi
    trying to connect Stand-Alone cDAQ  9139 running embedded win7 to host PC running winXP via Daqmx 9.6 , both 9139 and host pc has Daqmx9.6 installed and connected with direct ethernet cable .. i need to review any steps available to do this task , the only one i found yet is for Stand-Alone cDAQ  9139 running Real Time mode not Win7 mode.
    Best Regards
    MyKat

    Hey MyKat-
    I just noticed that this post is in the 'Measurement Studio for .NET Languages' forum, so I wanted to make sure my message was not misleading.  If we added a feature for remotely targeting WES7 cDAQ controllers, it would be a LabVIEW-based solution.  I do not expect either RT or WES7 systems to be remotely targetable from Measurement Studio/Visual Studio environments.  Apologies for any confusion.
    Tom W
    National Instruments

  • How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application?

    How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application? The DAQmx assitant won't allow me to create a task with hardware that isn't in my system.

    You will need to have at least the DAQ device in your computer to add the chassis. When you add the chassis, don't auto detect the modules. You will have to add the terminal blocks and tell MAX which SCXI module will be connected to the DAQ device. Just make sure you don't test the chassis, when its not there.
    I hope this helps.
    Joshua

  • I have trouble in building stand-alone application, "you must intall Labview run-time engine on any computer on which you want to run this application"

    I have installed the LabVIEW 7.0 run time engine and checked all in the advanced setup on the installer setup slide. but I still get such a message saying that the target computer needs to have LabVIEW 7.0 run-time engine. What I want is a real stand-alone application even without having labview ... I used to think that's due to my program contains MATLAB nodes. But this is not true, since even without Matlab, it's still wrong. Please help, thanks!!!

    As was stated elsewhere, you have the option of building the runtime engine into your application when you build it. However, you can also create a "runtime engine application" by simply opening the application builder and doing a build without adding any source code files. The result is a small program (named lvrt.exe) that can run any LabVIEW code--whether or not its built into an executable.
    Such an application can be helpful if you are wanting to install several LV-based applications on the same computer in that it reduces the amount of redundant code on disk. All you have to do is make sure that Windows on the target computer associates the llb and vi file extensions with the runtime engine program.
    It can also be helpful during testing to run test code that isn't built into an executable.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to run stand alone executables developed with different versions of LabView on the same system

    I am using LabVIEW 8.2 to develop a stand alone executable for a target system.  The target system already has a stand alone executable written by another vendor, using LabVIEW 7.1.  I installed the LV RunTime Engine for 8.2 which left the 7.1 engine intact (as it should).  The problem I am now having is that the drivers installed on the target system are incompatible with the NI-DMM vi's that I am using.  My concern is that if I replace the old drivers with the ones I am using on my development platform I may end up breaking the old software.  What would be an appropriate work around to ensure that the target system will be able to run both executables?  (FWIW the system will NOT be running both executables concurrently.)
    The target system is an embedded PXI card cage, running Windows XP, with a NI PXI-4070 DMM (among other instruments, however I have had not had this issue with the NI-DAQmx drivers).

    Hi Yerffejj,
    Thanks for sharing your issue with the community. I am struggling to see what you mean by "break the software." If you only have the two executables and LV Run-Time versions 8.2 & 7.1, then you just need to go to http://www.ni.com/support/ » Drivers and Updates » Search within Results: » enter "NI-DMM" » GO to get the DMM driver you need. To see the driver you were using on the development machine, just go to Measurement & Automation Explorer (MAX). The DMM driver should also automatically install DAQmx, NI-VISA, and NI-IVI, fyi.
    Best wishes to you, and please let us know if that does not solve your problem.
    Regards,
    Dan Richards
    Dan Richards
    Certified LabVIEW Developer

  • Can't install Lightroom 5 on a second computer, I am NOT a creative cloud customer, I am a stand-alone user.  How do I enter my serial number???

    I can't install Lightroom 5 on a second computer, I am NOT a creative cloud customer, I am a stand-alone user.  But when I try to install on my laptop, it always trys to sell me the monthly membership.  How do I enter my serial number in the second copy of lightroom?  It won't ask me for it, and I cannot enter it anywhere in the settings?  I am stuck

    You probably downloaded the Cloud version.  Get the licensed version thru the following linked page...
    Lightroom - all versions
    Windows
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Windows
    Mac
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • Migrating stand alone programs to web based application

    Hi,
    I have a small application consisting of .class files. I created these using Swing components and it's based on Client/ server model where it accesses Oracle Database.
    I want to deploy these programs in Java App Server so that it can be accessed thru web browser.
    Please tell me how to do it.
    Thanks in advance.
    Rajeev.
    Message was edited by:
    Rajeev.Asthana

    If this was the thing, Sun, Microsoft and IBM
    wouldn't have even giving a thought of migrating
    legacy application (I'm talking about Mainframes and
    AS/400 here). If this kind of migration is possible,
    can't we migrate a java code from stand-alone
    "version" to web enabled.
    Migration is not really a term to use to for converting a stand alone application to a web application. Unless of course again you are prepared to turn it into an applet.
    The flow and control of a web application are entirely different from a stand alone app. You will not be able to reuse Swing GUI's from a web server. I don't know how to make that any clearer.
    Hopefully you have a good design for your existing application and you can relatively easily reuse your existing business logic components.

  • Need help in creating a web application that runs on a stand alone sys.

    I am planning a small java web application complete with database. I need to know if there are any ways to deploy that application on a stand alone system and that if there is any way to make an executable for that application so that the user need not go through the process of deploying the app and starting the server whenever he restarts the system. Can anyone help me in this regard? Thanks in advance.

    Hi Alex,
    Since I had a Gmail test servlet kicking around, I ran it on the latest V3 nightly build.
    On the first run, I encountered the following nested exceptions:
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465
    --> java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
        --> java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
            --> java.security.UnrecoverableKeyException: Password must not be nullThe UnrecoverableKeyException is a manifestation of [https://glassfish.dev.java.net/issues/show_bug.cgi?id=6938|https://glassfish.dev.java.net/issues/show_bug.cgi?id=6938]
    I worked around this by adding the following JVM config options to domain.xml
    <jvm-options>-Djavax.net.ssl.keyStorePassword=changeit</jvm-options>
    <jvm-options>-Djavax.net.ssl.trustStorePassword=changeit</jvm-options> (Note: the default master password is "changeit")
    These lines are placed in /domain/configs/config/java-config of domain.xml for the particular server config you're using. There's only one server config in the default domain.xml shipped with V3. Then restart the server.
    I retested the code on both port 465 and 587, with and without the above config changes. Without the change, they both fail the same way, and with the change, they both work. Let me know if this helps.
    -Peter

  • SAP PI Installation on Stand alone machine

    Hi,
    Thanks to one and all for having such a nice forum as it has answer to all the questions which I have posted.
    I have been given a very interesting work for anlying if SAP PI could be installed on a standalone machine without having any SAP box. My requirement is to install SAP PI tool for non SAP integration.
    I will distribute my question in 2 parts
    1. Can I install SAP PI in a stand alone desktop?
    2. Is is important to have a SAP R/3 system to install SAP PI tool?
    Please do share your thoughts and if possible please share the document which could be used as proof.
    Thanks in advance.
    Gautam

    1. Can I install SAP PI in a stand alone desktop?
    Yes.
    2. Is is important to have a SAP R/3 system to install SAP PI tool?
    No.
    If you are trying to install 7.1 then have a look at the video blog (easily available on SDN) for the same....will help you.
    Regards,
    Abhishek.

  • Recording Stand-alone Soft Synths & Virtual Instruments in Audition 3

    Hi People,
    Have a little problem which I'm struggling to figure out.
    I have been using Cool Edit Pro for several years. My set up has always enabled me to record any standalone Software Synths via my sound card. I have always had it set up so my sound card plays through patch one and records through another patch enabling me to record in the multi track editor with no problems at all and my set up records only the soft synth/instrument, and not any waves previously recoded. Instead just plays them back so I can build up my music and play along at any given time. Although this is a rather different approach to doing things, it suites me down to the ground and I'm happy to create this way
    My problem has come upon whilst trying out the new Adobe Audition 3, which is based around ASIO Drivers. Because of this I can no longer run another program (Stand alone soft synth), because Adobe hogs the ASIO driver and will not allow another program to be run at the same time. I can use the Adobe windows driver for audition no problems and I am able to continue recording how I did with Cool Edit, but I would much prefer to go along with auditions ASIO drivers to make sure I am recording with the best quality and reliability.
    My Sound card is an E-MU 1616 with breakout box. I have tried numerous ways with the patch mixer to get around this, for example I have tried using my sound cards driver for audition and ASIO4ALL2 for my soft synths. One of which is Hypersonic 2, and the other being SampleTank. I cannot for the life of me get my set up and running how it was with cool edit.
    I must admit that although I have played around with my settings, it could be something simple I need to do that just hasn't jumped out at me yet. My evaluation of Audition 3 runs out in 20 days and I'm almost sure that there is a way to enable my set up to work how I want it to before I can go out and buy Audition 3. I'm very comfortable with audition 3, naturally. I love the changes and extra features it has now along from the cool edit days.
    I have looked into other solutions as well after scouring message boards, one of which was Cycling 74 Soundflower, this sounded like it could be an answer but unfortunately it is Mac only. If Adobe did Audition for Mac then I wouldn't hesitate in going down that route...
    My other solution is to have a second computer, either a modified mid range P C, or even a Mac, to act as my synth station and have my various software synths and such running on there and playing out to my recording PC with Audition on. This would free up the ASIO to be used by Audition solely. It's a long way around but wouldn't cost the earth and would be a simple enough idea to set up. But surly, I shouldn't need to go this far out to get my ideal setup.
    Anyhow, I would much appreciate any advice and ideas to help me solve this problem; I will keep working at it in the mean time.
    Hope my explanation makes sense above, I can appreciate that there are other ways like just going along with another program and such, but in all honesty I like the way I work and don't really want to move on, I'm more bothered about just getting on and recording new ideas in the environment I'm so use to. I love the way Cool Edit/Audition works for me and I have developed my own methods with the software over the years. Working with just audio suits me to the ground as I record and chop up my own Guitar bass and drums, along with sounds from my field recorder and a host of other methods and ideas.
    Thanks in advance

    Hi!
    As long as your softsynths comes in the VSTi format (most of them do now), you can insert it on a track in Audition, which has 'host' capabilities from V3.
    In the Multitrack, insert a new MIDI track from the 'Insert' menu (note: MIDI Track, not just 'MIDI').
    On that track pane hit the 'Sequencer' button, and it will open in a separate window. In the pane left of the keyboard you can insert your VSTi of choice, and make your MIDI connections.
    Back on the Main track pane, engage the 'L' button for Live monitoring. Actual recording (of MIDI) is done in the Sequencer window.
    The usual, and recommended workflow is to keep the MIDI tracks 'open', i.e. you can edit the sound in your instrument and even the notes played at any time in the process, compiling the actual audio as the last step in the mixing.
    If you kind of 'insist' on doing it the old way, you can export the audio from your recorded MIDI+VSTi creations track by track like this: Leave the Sequencer window open, make a selection in the multitrack that covers the time span you have played. Solo the track (will mute all others), and use File / Export Audio Mixdown. Use 'Master' as the source. This will give you a wave rendering of what's currently in the MIDI sequencer. Qualitywise this is better since it's all internal and digital instead of in/out of soundcards with DA/AD conversion etc.
    I haven't found a method for a 'live' wave recording while you play, but there may be one...
    If you purchase Audition it comes with Help files explaining this in more/better detail. ;)

  • Download LR 5.5 as stand-alone

    Hi,
    I am using LIghroom 5.4 and have heard about the updated version 5.5 which I would like to download and install as it worked fine since I started using LR as from version 3.
    I want to use it as a stand-alone program and have no interest to join the Adobe cloud.
    How and from where can I download the latest update without installing the cloud desktop software?
    Update:
    found the solution myself:
    I went to the download page , pressed on the the windows version of LR 5.5 (german in my case). This opened up a text page with links. Here you scroll down (press page down couple of times) until you see Downloads, and here you press "Proceed to download" which will download the 920 MB exe file on the local harddrive.
    I got frustrated because I missed that I had to scroll down so far, so all I ended up a couple of times was the cloud installer.
    For amateurs this is not the way how I will continue. I will stick to LR as long as it is offered as a stand-alone program. I am not willing to go into the cloud and make it a cash cow for adobe....
    best regards,
    Matthias Brand

    You don't need to be attached to the cloud constantly for the newer versions to work. They only have to connect once every four months or so. I believe they also offer enterprise/government versions that don't require a connection at all, but you would have to contact Adobe sales to find out about that. Also, you can pay in yearly increments instead of monthly (and there may be more options for government versions).
    The only perpetual licenses you can get are for CS6 and equivalent versions, but nothing newer.

  • Using a Mac Mini Server as a traditional stand alone desktop

    Hello all, currently I have a late 2008 model 17" MacBook pro, Time Capsule, Apple TV and an Iphone 3GS and Ipod Traditional. I would like to add a desktop system to coordinate all of these items, to be the centerpiece is you will, in my home. I'm interested in buying a mac mini, I began to do research however and saw the Mac Mini Server which has greater memory capacity 4GB vs 2GB RAM, and dual 500Gb vs the standard Mac Mini which has one at 320GB. I would like to take advantage of these upgrades as I'm a writer and will be constantly on the web for work as well as likely keep a lot of items on the hard drive.
    However I noticed the Mac Mini server utilizes Mac OSX snow leopard SERVER as opposed to the user grade Mac OSX. *My question is if the Mac Mini Server with MAC OSX server can still be used as a stand alone desktop, connecting it to a spare LCD television I have and a mac wireless keyboard/mouse?*
    I'm aware that unlike the other mac mini and imacs it does not come with ilife and other pre-installed software, and *I want to know if it's still possible to purchase after market and install said software utilizing them in the traditional manor?*
    Thank you in advance for any feedback you can provide and I apologize if my question was difficult to comprehend due to my lack of computer knowledge. I also apologize if this question is similar to others you've received lately as I did a quick scan of google and these forums and did not seem to find the specific answer I was looking for.

    Welcome to the Apple Discussions!
    Let me clear up a misperception that you have. Both the Mac mini and the Mac mini Server have a capacity to address 8 GB of RAM. There are two SO-DIMM slots in each model. The mac mini comes preconfigured by Apple with 2 GB of RAM (2 x 1 GB). The mini Server comes preconfigured with 4 GB of RAM (2 x 2 GB). You can buy and install yourself up to 8 GB of RAM (2 x 4 GB).
    You can even install Mac OS X Snow Leopard client, which will meet your needs a bit better than Server, now that folks have figured out how to do it;
    http://discussions.apple.com/thread.jspa?threadID=2539663&tstart=0
    And yes you can buy and install iLife, and pretty much everything else that you want to include in your kit. Either model of mini works fine with wireless keyboards and mouses. If your LCD TV has an HDMI port, then a simple HDMI to HDMI cable would be the simplest manner to connect it to the mini.
    Dah•veed

  • HT201485 My iphone won't let me download apps and refers me to my computer for verification. My computer will not access itunes due network issue. How to make iphone stand alone for downloads & updates.

    In iTunes my iPhone refers me to iTunes on my computer for verification. iTunes won't work on my computer. How can both my iPhone and iPad stand alone?

    Turns out that when my iPod Touch was restored, the restrictions had been turned ON for Facebook and several other apps. This is what was preventing the Facebook app from accessing my Camera Roll for picture downloads. This is odd since all of my iPod backups would not have had those settings turned on. This is also the first time this has occurred given the few times I've had to restore my iPod Touch.
    Anyway if you experience the same behavior from your iPod or iPhone with iOS 8.0.2, just go to the General settings and review your settings under Restrictions. Once you set them to allow for changes, you should be back in business.

Maybe you are looking for

  • Poor internet speed with time capsule or Airport extreme

    I'm trying to find away to increase the throughput of my 1st generation tme capsule. i'm getting a 33% drop in speed over wireless compared to wired conncetions. current setup Virginmedia XXL broadband  100Mbit down  5Mbit up. Modem standard virginme

  • Oracle 8.1.5 - jdbc driver problem

    I am using Oracle8.1.5 (personal oracle) for database. I am trying to retrieve the data from JAVA(JDK 1.3). I use the following driver and its manager in the Java program:- DriverManager.registerDriver(new Oracle.jdbc.driver.OracleDriver()); Class.fo

  • Adobe Photoshop CC cannot be opened because of a problem.

    This is what I get when I try to open Photoshop Check with the developer to make sure Adobe Photoshop CC works with this version of OS X. You may need to reinstall the application. Be sure to install any available updates for the application and OS X

  • SAP CRM Navigate from custom search page to email component

    Hello Experts, I implemented my own search page and added a link on every row of the returned query that should direct me to the email component eg. CRMCMP_CCS_EMLV. I did something similar with Business partners and Task and it works. For BPs and ta

  • Scroll bar on editor not working

    I recently upgraded to phtoshop elments 11.0 to 13.0 In the editor mode I cannot use the scroll bar. The scroll bar works fine in the orgnizaer mode. I have tried three different mouses and there is no difference. Tom Fitch, San Antonio Texas