Executable and dependencies
Labview 2012/Windows 7.
On my developemnt machine I created a project w all my vis to run a test. That works fine. I then created an exe and that works fine. Then I created an installer for the target machine and the code doesn't work. I get that its missing files and those files just happen to be listed under "dependencies" of the project on the devmnt machine. To name a few..."vi.lib", "instr.lib", nidmm_32.dll", niswitch_32.dll". In the build I included DAQmx and visa as well as the RT engine. I selected my "Main Menu" as the "startup vi. Main menu calls all of the "other vis" which are in folders in the project under main menu. The discussion grps have some confusing info. Should I put the "other vis" that my main menu calls in the "Always Include" box or when I select main menu as my startup vi Labview is smart enough to include those called vis??
What am I missing that I get an error when I port my code to the target machine ? ..."vi.lib", "instr.lib", nidmm_32.dll", niswitch_32.dll".
Hi Clint,
as you miss "nidmm.dll" I guess you need to install the NI-DMM driver as well with your exectable…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Similar Messages
-
Standalone executables and dependencies in the Java World
I'm a very seasoned C/C++ developer who's just learning Java. I have this gnawing question that's bugging me. It's rather elementary but it requires someone with experience to answer it.
If I'm delivering a standalone executable (C/C++) to a Windows or Linux customer, it is possible to deliver simply a "*.exe" file (windows) or a Linux Executable file (Linux) which can be installed and run immediately with no dependencies not included in a typical installation. (although, on linux, if there is a gui involved, a typical default Linux install may be missing some dependencies for the gui )
But in the Java world, since the JRE is not necessarily included in a Standard Windows or Linux default installation, my customer would always have to install the JRE on their machine before they can run any code that I produce in Java ...correct? And there is no way to execute a jarfile as a standalone; it always must be executed by the JRE ("java -jar <jarfilename.jar> ) ...right? And if I were to code a new GUI application in Java on the Linux platform, it would have to be run via "java -jar <gui_jarfilename.jar> ...correct?R2me2 wrote:
"Your questions cause me to suggest that you look into Java Web Start;"
No, this is exactly what I'm not asking. I mean really standalone ....as in the executable runs by itself without user having to install anything else* (via CD, web or anywhere). So I suppose the answer to my question is that NO, there's no such thing in the Java World and that whenever a java program is installed, it always has the JRE as a dependency and that the installation of a java executable is not complete until the JRE is installed.Not to sound like a noob but what were you expecting. Java runs on the JRE and that is what makes it portable as the JRE can be installed almost anywhere o.O
This is not the inconvenience that you are making it out to be. No user is gonna beef with you if they came to you asking for a java application to be installed and I most certainly have played the client role, having to download the latest JRE to run my bank applets. No so long as you provide the user with all the info they need like a link to JRE download etc you will be fine.. :) -
How to add NI VI's in a executable and installer
I have a working program made in Labview, but I have problems withy creating an executable and installer.
The first thing I did was create a project, I have the Main program and under the Dependencies I have the Vi's and the VI.lib from labview 8.6 directory.
I made an executable and after that an Installer. But when I run the installer version it's missing some Vi's.
These Vi's arer mainly the VI's that come from the vi.lib from the LAbview 8.6 directory. Some how these Vi's aren't taken into the executable and installer.
What am I doing wrong????
Kind regards,
Barry BomerHi Bomer,
normally all vi's you need are automatically in the executable. Do you use some dynamic called vi's, maybe the report generation toolkit?
Mike
Message Edited by MikeS81 on 01-15-2009 09:27 AM -
Post Author: usaitconsultant
CA Forum: JAVA
Would you know if there's a way to mimic Deski
document from BOXI server(CMS) to local machine, pass parameter, execute and
save in a mutiple report format then store in a local drive or network
drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only and not desktop intelligence. Please let me know your ideas. I would really appreciate your help. Thanks.Post Author: usaitconsultant
CA Forum: JAVA
Hi Ted,
Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below.
Error Message:
A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks. -
Post Author: usaitconsultant
CA Forum: JAVA
To Guru's, Would you know if there's a way to mimic Deski document from BOXI server to local machine, pass parameter, execute and save in a mutiple report format then store in a local drive or network drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only. Please let me know your ideas. I would really appreciate your help. Thanks.Give Chronosync a go - have been using for over a year and it works great; if you like Syncback you'll like this app.
-
On Word I was copying a sentence, but the command has not executed and the timing cursor has been circling for over 10 minutes. How do I get out of this?
You probably will need to force-quit Word. Go to the Apple menu, choose "Force Quit", locate and select Word in the list of applications and click the "Force Quit" button. You will of course most likely lose any changes you made to the document since you last saved it (or it was auto-saved, if you have that option turned on in Word).
Regards. -
Convert executable and supporting files to msi
Hello all,
Wanting to know if it is possible, or if anyone has tried, to roll a labview executable and supporting files into a .msi microsoft installer package. Wanting to do this for its auto exection and encryption. I have attempted using third party applications like "Advanced Installer" and Altris wise package studio with no avail. I found the following old post describing this exact problem using a different third party applicaiton and labview 6.1. I am currently running Labview 2011 professional.
http://forums.ni.com/t5/LabVIEW/Repackaging-Labview-using-Veritas-Wininstall-fails/td-p/89442
I know that Lab-windows can be used to package a .msi installer but I do not have access to it nor am I trained to use it.
Just wanting some information, any information, on how to make this happen.When you built the exe in the project, you should have noticed the option to create an installer. Fully documented in the LabVIEW help.
-
Database parse execute and fetch shows 9 counts.
for one of the SQLs, database parse execute and fetch shows 9 counts along with query - fetch 21 the rows - fetch shows 2,
I also observe the below for the other sql statements,
this stats have been collected by level 12 trace and then generating tkprof. please let me know few relevant links / notes through which can dig further into this.
call count cpu elapsed disk query current rows
Parse 10 0.01 0.00 0 0 0 0
Execute 33 0.01 0.00 0 0 0 0
Fetch 33 0.00 0.00 0 199 0 33
total 76 0.02 0.01 0 199 0 33
Regars.Exactly, you have understood it right(Sorry i was way involved with this tkprof when I initially posted the thread) .
I've couple of sql's in my tkprof(leverl 12 trace) which are showing similar results and looks like its doing lot of work and fetching less number of rows.
Bbackground
1.A program was taking less than a minute to complete and now it is taking approximately 30 mins( The data being fetched is all the same) ..
2.There are no changes applied to the database since last run.
3.DB - 10.2.0.3.0
would like to know ways to dig further into it. -
Hi, I created an executable and would like to add browser access ip addresses. Can this be done by editing the corresponding .ini file
if so how should I add a new line or can I modified an existing one (key).
ThanksThese lines, for example, enable access for everyone:
server.tcp.enabled=TRUE
server.tcp.access=+*
Other lines can set things like the port number, but I don't have them at the moment because I use the default. If you search the LAVA wiki, you should find an article about INI settings you can use.
As I said, if you compile the executable and use the original LabVIEW menu structure (VI Properties>>Window Appearance>>Customize>>Show Menu Bar), you will have the option of going into the Options screen of the application. In there, you will be able to set this. You can then compile the application again without the menus visible.
Try to take over the world! -
Execute and CanExecute with Delegate
Hi,
I'm trying to create a reactive UI and i have to use Execute and CanExecute to enable/disable buttons.
In my app i have 3 button, validate, refuse and delete.
My problem appear when i use the button delete; i get an error from function CanExecute of button valid. This is a null error.
The button delete is define like this : (he call a setter)
private ICommand _MatinSupprimeCommand = null;
public ICommand MatinSupprimeCommand
get
if (_MatinSupprimeCommand == null)
_MatinSupprimeCommand = new Framework.Windows.DelegateCommand(
() => { // Execute function
TypeCongesMatin = TypeCongesDefaut; //that call a setter of TypeCongesMatin
() => //CanExecute
if (Matin != null)
return true;
return false;
return _MatinSupprimeCommand;
The setter called is defined as following: (Matin variable is delete)
private TypeConges _TypeCongesMatin = null;
public TypeConges TypeCongesMatin
get
return _TypeCongesMatin;
set {
_TypeCongesMatin = value;
if (_TypeCongesMatin.Libcourt.In("P", "WE", "FE"))
if (Matin != null)
DataAccess.EntitiesContext.Context.DeleteObject(Matin);
Matin = null;
RaisePropertyChanged("TypeCongesMatin");
RaisePropertyChanged("TypeCongesMatinSelection");
RaisePropertyChanged("Matin");
RaisePropertyChanged("MatinCouleur");
RaisePropertyChanged("MatinCouleurForeGround");
To finnish my button valid :
private ICommand _MatinValideCommand = null;
public ICommand MatinValideCommand
get
if (_MatinValideCommand == null)
_MatinValideCommand = new Framework.Windows.DelegateCommand(
() => //function to execute
if (Matin != null)
Matin.Status = Presence.StatusDemandeConges.Accepter;
RaisePropertyChanged("MatinCouleur");
RaisePropertyChanged("MatinCouleurForeGround");
() => //Can execute function
if ((Matin != null) && (Matin.Status != Presence.StatusDemandeConges.Accepter)) //When i use my command delete the var Matin is set to null but he conser as non null value and call EstValidant.
return Matin.EstValidant(MainContainerViewModel.Courant.Utilisateur);
return false;
return _MatinValideCommand;
The problem is (Matin != null), in the setter of TypeConges i set matin
to null but in this case he's not consider as null in CanExcute.
If you have any idea.
Edit : I have to give information about the error.
The error is throw by EstValidant.
public bool EstValidant(Personne Validant)
int IDValidant = Validant.ID;
if (this.Personne.MesResponsables.FirstOrDefault(P => P.ID == IDValidant) != null)
return true;
return false;
The error is on Personne.MesResponsables because Personne is null.
Normally the function Validant
should not be
called.
Thanks a lot for all futur answer.
Ps : Sorry for my terrible englishI set matin to null when i do : MatinSupprimeCommand
i call setter with TypeCongesMatin = TypeCongesDefaut;
I'm doing Matin=null; in the setter of TypeCongeMatin
Matin is defined as following.
private Presence _Matin = null;
public Presence Matin
get { return _Matin; }
set {
if( _Matin != null )
_Matin.PropertyChanged -= MatinDemandeConge_PropertyChangedEventHandler;
_Matin = value;
if (_Matin != null)
_Matin.PropertyChanged += MatinDemandeConge_PropertyChangedEventHandler;
RaisePropertyChanged(this.GetPropertyName(() => Matin));
PropertyChangedEventHandler _MatinDemandeConge_PropertyChangedEventHandler = null;
public PropertyChangedEventHandler MatinDemandeConge_PropertyChangedEventHandler
get
if (_MatinDemandeConge_PropertyChangedEventHandler == null)
_MatinDemandeConge_PropertyChangedEventHandler = new PropertyChangedEventHandler(MatinDemandeConge_PropertyChanged);
return _MatinDemandeConge_PropertyChangedEventHandler;
void MatinDemandeConge_PropertyChanged(object sender, PropertyChangedEventArgs e)
if (e.PropertyName == "CodeStatus")
RaisePropertyChanged(this.GetPropertyName(() => MatinCouleur));
It's little more complicated because i choice a day in calendar via the right click (mouse) and i select a day.
This is a calendar compose by ObservableCollection<Jour>
I load all jours, for each jour set the value of Matin if the personne have something register.
For exemple i
have morning
off on the 01/01/2015, so i set value of matin with this value, else he's set to null.
Depends of the holliday of the guy. By default Matin value is null
I'll try to give more information.
I access to same variable Matin in each CanExecute but one of this command set him to null and other didn't detect the null value. (it's delegate).
I tried to add copy with Presence matin = Matin; but matin is not null... same problem appear -
No of times Report is executed and execution dates
Hi,
I want to know how many times my ZReport is executed and on what dates it is executed? Please suggest.
Regards
K Srinivas>
Thomas Zloch wrote:
> where n > 500
And that's just last week. -
Hello Every one.
I know i should not be doing duplicate posting but i think this section will have pointer.
Please look into this. What am i missing.
Re: View and dependencies
Thank you in advance.Thank you for your reply.
I am sorry it is not getting me the result.
I think of two things, the table is on DBLINK and is there any think to do with dependecy_type='HARD'
.>ed
Wrote file afiedt.buf
1 CREATE OR REPLACE VIEW V_test
2 AS
3 SELECT rpt_date,
4 client_id,
5 SUM (no_received) no_received
6 FROM xxx.daily_summery_rpt@ARCHIVE
7 WHERE client_id = '4398000000'
8 AND rpt_date BETWEEN trunc(sysdate-60)
9 AND trunc(sysdate)
10 GROUP BY rpt_date,
11* client_id
.>/
View created.
Elapsed: 00:00:03.07
.>SELECT *
2 FROM user_dependencies
3 WHERE TYPE = 'VIEW'
4 AND NAME = 'V_TEST';
no rows selected
Elapsed: 00:00:01.03
.>I am not sure what am i missing. -
Executable and shared library portability
Hi,
What are things that one should keep in mind when trying to deploy executables and shared library built on one machine to another.
Thanks1. Use compiler options to generate code for the most generic of the machines you intend to support. For example, if you intend to run on UltraSparc II systems, don't generate code for US III. The option -xarch=v8plus is suitable for all 32-bit Sparc systems less than 10 years old. Avoid -xchip, -xcache, and other processor-specific options.
2. Build on the earliest version of Solaris that you intend to support. If you allow your clients to use Solaris 8 or later, you must build your libraries and applications on Solaris 8. Binaries created on later versions of Solaris cannot be expected to work on earlier versions of Solaris, but can be expected to work on later versions.
3. Do not link system libraries statically. Always link the shared library. Static versions of system libraries can't be expected to work a a different version of Solaris, or on a different patch level of the same Solaris version.
4. Make a note of the patch level of system libraries on your build system. For C++, check especially the patch level of SUNWlibC. Clients might need the same or later patch levels on their systems. For our products, we set up our build machines with the earliest patch levels that allow our products to work. We document those patch levels, and provide the minimum patches with the product installation. If a client system has a later patch level, the patch we supply won't be installed, and the later patch level should allow the product to work correctly. -
Create an API to Launch an LabVIEW Built Executable and Pass it Input Parameters
Hello,
I'm looking for a way to create an API to Launch/Close an executable, created with LabVIEW, which in additional to Launching/Closing tht executable, will also allow me to pass input parameters.
To give you some background, I'm working on a logging utility, basically a background dameon, which I currently have implemented as a LabVIEW packed library and my API is a few VIs to launch that daemon and pass it a filename and a logging rate. Functionally it works just fine however is executes within LabVIEW not as an independent process. So instead of using a packed library, I would like to compile my logging daemon down to an executable but I still need a way to launch it and pass it parameters from an external application (such as Teststand).
I know you can launch executables and pass parameters using windows command lines, but I'm wondering if there is a more direct method such as a DLL that I could call in Teststand? Thanks.
Post CLD and when I'm a CLA when someone asks who I am, I can spin around in my chair and say "I am... the architect."When Teststand Launches the Logger, it does so by opening a reference to the logger daemon using the "Open VI Reference" primitive and then it launches an instance of the dameon using the "Start Asynchronous Call" node.
This currently, launches the logger within labview not teststand. If I were to directly call the logger daemon VI itself as a step in TestStand, then it could run in a new teststand thread. At that point I would need a way to stop that logger which I should be able to do by storing a reference to its control queue within the teststand thread that it is running in. Since teststand let's you specify VI execution in the runtime engine instead of LabVIEW that might do the job.
The one catch is once the sequence completes, the logger does some cleanup, post processing, etc that depending on the amount of data captured can take some time so if a set of sequences needs to be executed, this could hang up teststand until that post processing is completed. That is one reason why I wanted it to execute outside of testtand so that additonal sequences could continue to run while the daemon finishes up in the background.
But, it's something I'll have to look into.
Post CLD and when I'm a CLA when someone asks who I am, I can spin around in my chair and say "I am... the architect." -
What is the relationship between CGI-Executables and cgi-bin?
I am trying to get CGIs working locally on my Mac and am having difficulty understanding the relationship between CGI-Executables/ and cgi-bin/.
I have activated CGI in my httpd.conf file, and have the following perl test script: /Library/WebServer/CGI-Executables/test.cgi file, and have the file permissions set appropriatly
If I call the script from the actual url: http://127.0.0.1/CGI-Executables/test.cgi, it doesn't work. If I use: http://127.0.0.1/cgi-bin/test.cgi, it works fine.
Why cgi-bin and not CGI-Executables? What is the relationship between /Library/WebServer/CGI-Executables/ and cgi-bin?
And how do I get CGIs working in individual users' Sites/ file? Do all CGIs go in the /Library/WebServer/CGI-Executables/ directory, or can each users' Site/ directory have it's own cgi-bin?
Ti Powerbook G4 Mac OS X (10.4.4)Now I am having trouble getting CGI to work in the user directories. I have a perl script that works for 127.0.0.1/cgi-bin/test.cgi, but not for 127.0.0.1/~joe/cgi-bin/test.cgi.
My apache error log says:
[Tue Feb 14 08:14:23 2006] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /Users/joe/Sites/cgi-bin/first.cgi
Permissions for Library/WebServer/CGI-Exectuables/test.cgi and /Users/joe/Sites/cgi-bin/ are 777.
I think the problem is somewhere in my directory configs. Apache has so many, it's hard to know what's what.
Here's the first directory directives in httpd.conf:
# First, we configure the "default" to be a very restrictive set of
# permissions.
<Directory />
Options FollowSymLinks
AllowOverride Options
</Directory>
Farther down, there's this, which I added ExecCGI and index.cgi:
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
<Directory /Users/*/Sites>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
DirectoryIndex index.html index.cgi
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
Then down at the bottom of the file is something I suspect was added automatically when the user account was created:
Include /private/etc/httpd/users/*.conf
<Directory "/Users/joe/Sites/">
Options Indexes MultiViews Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
To further confuse things, there is another file /etc/httpd/user/joe.conf that has additional user-directory directives:
<Directory "/Users/joe/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Is there something in all these directory configurations that is preventing the user from accessing cgi-bin? Can I add directives to an .htaccess file in the user directory.
Ti Powerbook G4 Mac OS X (10.4.4)
Maybe you are looking for
-
Calling a Oracle stored procedure in orchestrator
I am trying to execute a stored procedure using the query database IP in orchestrator. I can select data from the oracle db so i know the prereqs are setup correctly but it fails on executing the stored procedure. The syntaxe is execute SPNAME('PARA
-
HT1918 Apple ID for kids without providing credit card information
I want to create an Apple ID for my 10 year old son, without providing credit card information. on the web I found a video telling that it is possible to set the payment information to "none" - but this choice does not show up in my settings
-
Problems renting with Itunes store
I just paid to rent a movie using the Itunes store and waited an hour for it to download. It is not working now and it says: "We could not complete your Itunes store request. An unknown error has occured (-42110)". Is there any way to fix this? Thank
-
L_TA_HINZUFUEGEN with L3 551
Hi Gurus, During my testing, while I was trying to create a TO document to pick the quantities from delivery I am getting the following error "Update was terminated", this error was comming in the form of SAP Express document (Workflow document) on t
-
Facebook ios 4.2.1
Hello, I had to restore my iPhone to default settings. My iOS version is 4.2.1 Is there any way to reinstall facebook ? (which is only compatible for iOS 4.3 and more) Thanks