Send To context menu arguments with LabVIEW executable
Hi,
I am have written a VI (and built it as an exe) to perform operations on a file, or array of files. I get the list of files as application arguments. I have added my exe to the Send To folder in windows so it appears in the context menu when I right click on a file. The problem is, LabVIEW opens the file with its registered application. I have read that Send To will pass the file selected to the application as arguments. The question is how do I set up LabVIEW (or Windows) to pass the selected file(s) as an argument rather than launching it?
Thank you,
Michael.
Problem solved. I had forgotten to check the box 'pass all command line arguments to application' when I built the VI. What I find strange is that LabVIEW intercepted the argument I was passing and tried to open it using the program registered with windows. I guess there is some reason this is expected behavior. I have attached the VI which does not work (wrong settings) just for interest. (built with LV2010)
Thanks,
Michael.
Attachments:
Application.zip 359 KB
Similar Messages
-
How to Add New Parameter in Cluster with LabVIEW Executable Program?
In this VI,it can write the parameter in Cluster to the database (Access 2003).it run well.
But When I add another parameter in Cluster,such as EE,I have to modify this Cluster. And at the same time,I have to modiy the database (I should add a column of EE).if this vi build to exe, how can I achieve it?Can LabVIEW have any way to increase new parameter EE in Cluster and in Database in executable program?
Would you give me some advice?Thank you
Attachments:
Add ParaMeter In Cluster 20130206.zip 105 KB
Cluster.JPG 9 KBIt's rather unclear what you try to do here. In your first post you talk IMHO about the high level Datatbase Toolkit functions that take a cluster and translate it automagically into the appropriate SQL Query/Update.
Your second question seems to be about the user interface of your application.
Proper application design would mean to separate the user interface aspect from the actual database query in some ways. I definitely wouldn't use the same cluster for both. Also if you simply hide a control on the frontpanel (possible also in an executable) it still is present logically and if you end up using the high level database toolkit functions with that cluster it will result into a query or update of the database with all the data in the cluster, also the hidden ones.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Sending custom windows messages (SDK) with LabVIEW
To communicate with other applications, especially LabWindows/CVI I want to send and receive windows messages. In LabWindows/CVI that can be done quite simple. But for LabVIEW I only found ways to receive messages (standard messages like WM_MOUESEMOVE etc.). Every standard message has a number, so I would like to send a message with my own number.
For the communication between CVI and LabVIEW, NI recommnends to use ActiveX or Datasocket. Windows Messages would be much faster. Can someone help me out?Just yesterday Ed Dickens showed me an example that listed many of the C datatypes and their LabVIEW version. I am not sure what version of LabVIEW first had this, but it is in 7.1.
In the example finder (Help -> Find Examples), search for DLLs. The one that you want to look at is Call DLL.vi.
Hope that this helps,
Bob
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected] -
Explorer Context Menu Convert Sends Files to the Printer
Right-clicking PSD files and choosing "convert to PDF" sent the files to the printer!!! I had hoped it would have brought up a dialog to convert the files to PDF...
(I was looking for "combine as PDF" -- I'm not sure what happened to it?)
I'm running Acrobat 11 on Windows 8.1
-DonaldAll that context menu stuff is handled by the registry. The explorer application simply gets its information from there. So Labview can write to a registry key to add itself to handle a file type. This is why you can have multiple applications handle the same type and show up in the context menu.
My point is that after I run LV 8.0, I will see both LV 8.2 and LV8.0 in the context menu (along with a couple of others). However, after I run LV 8.2, the LV8.0 option is removed. I'm guessing that this is related to a program's behavior in checking and setting the registry key to make sure that it is the default handler for the appropriate file types. NI would need to strengthen this code to be sensitive to previous versions of Labview.
A rough example of how to do this is at http://www.codeproject.com/w2k/extendingshell.asp
Brian Rose -
Disable Right Click Context Menu in XP "OPEN WITH ADOBE READER 8"
How can I eliminate the right click context menu "OPEN WITH ADOBE READER 8" in Windows XP?
I have general familiarity with removing context menus. I see no option for this one in msconfig, or various context menu editors. I am unable to find a setting in Adobe Reader 8. If you know where the setting is, or have solved this problem, please let me know.
Thanks,
JoeyThat would be the device Metadata from the print driver vendor. It's part of the Device Stage feature mainly for client OS.
Here is some MSDN documentation on the feature.
http://windows.microsoft.com/en-us/windows7/products/features/device-management
If this is a print server, use the tools include by the print team if you are performing any management on the server.
Printmanagement.msc
The Devices UI is really about devices it's not designed for print management, the spooler team had minimal input on the UI design.
Alan Morris formerly with Windows Printing Team -
How to add icon in front of Send To menu in context menu?
Is it possible to add icon to the Send To entry in the windows explorer context menu?
Hi,
To add icon to send to context menu, please locate following registry key:
HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\SendTo
1. In the right-pane create a String value (REG_SZ) named Icon
2. Double-click Icon and type the path to an icon (.ico) file, or mention the icon library file name and the icon index.
3. Exit the Registry Editor.
Hope this could be helpful.
Kate Li
TechNet Community Support -
Cannot change "Open with" (in context menu) from CS3 to CS6
I have CS5 and CS6 installed, and now I've also installed CS3 (because of problems with ps actions that does not work properly), and in the context menu "Open with", "Open" and "Edit" now starts CS3 instead of CS6.
How change all that to CS6?
Note:
when choosing "Open with", "Select standard program", and browse/selecting the CS6 exe-file, then STILL the CS3 is displayed in context menu and the CS3 starts. It's like there is some assocciation from CS6 to CS3 that cannot be altered??
Do I have to uninstall CS6 and install CS6 again, or what?
OS: Windows 7.
And yes, all my PS versions are legit.When you install a version of Photoshop the install will associate many image file types the the Photoshop versions your installing. You may want to re-install CS6 on top of itself and the update it. You will still have all your Photoshop preferences and CS6 add-ons install and CS6 will be the default application for image file types. Or you can manually change all the image file type associations. Adobe Bridge CS6 may also be able to change image fie types associations in its edit preferences UI. I not sure about the bridge fie each version of the bridge I have installed shows that the same level as tne bridge version of Photoshop is associated with image file file type. After I installed CS2 I manually change Image File association back to CC. However I had to re-install CC a couple of times since then. I have CS2, Subscription CS6 version and CC installed on my workstation.
If you have old CS3 actions that do not work in CS5 and CS6 you can edit them and modify them to work in CS5 and CS6. If the action add adjustment layers and that is where your you having Problems.. Adobe introduced options in CS4 adjustment panel that can cause Photoshop to work incorrectly. If you set the option to Adobe defaults setting you may fine that your actions that add Adjustment layer work correctly. For some unknown reason Adobe refuses the address the bad options they added to the Adjustments panels fly-out menu. The options change Photoshop Behavior some time which simply put is a bug waiting to bite. -
Remote front panel with labview 8.6 executable
I am trying to create a remote front panel of my application, built in an executable using Labview 8.6. I want to run that application on a target machine (not the one used for developing the project) and view and control the front panel of the VI from a web browser on another computer.
I have followed these steps:
How can I use remote front panels with Labview Executables?
But when I finally open the web browser and navigate to the URL I obtain that the page cannot be found.
I have my Labview project created and I have built a web page using Web publishing tool. I have saved it in my Labview 8.6/www directory and added it to the project. I have built my executable including HTML file and copied all the obtained folders to the target PC.
Then, I have modified the .ini file like in the step 7, but when I arrive to the step 8 I don't know what to do. Which niwebserver.conf should I modify? The one localized at Labview 8.6 directory of the target machine? Or the one that is created in the directory where I have copied the executable when I run the executable?
In the DocumentRoot tag I have to replace the default Labview/www with the location of my HTML file. Should I use quotation marks or no?
Have you got any ideas of what is happening?
Thanks!Ok, but when I create the executable, in the folder where the application.exe and .ini are there isn't a file called niwebserver.conf. When I run the application a file with this name appear in the directory (the one I include), but it hasn't the section Directives that apply to the default server as in the manual.
What I have done is to copy the niwebserver.conf file ubicated in the Labview 8.6 of the target machine in the same directory of the executable but it doesn´t work...
niwebserver.conf
ServerRoot "."
ErrorLog "./logs/error.log"
LogLevel 3
ServerName default
DocumentRoot "./../../www"
Listen 80
ThreadLimit 10
TypesConfig mime.types
DirectoryIndex index.html
LoadModulePath "./modules" "./LVModules" "./.."
LoadModule LVAuth lvauthmodule
LoadModule LVSnapshot lvsnapshotmodule
LoadModule LVRFP lvrfpmodule
LoadModule LvExec ws_runtime
LoadModule dir libdirModule
LoadModule copy libcopyModule
AddHandler LVAuthHandler
AddHandler LVSnapshotHandler .snap
AddHandler LVRFPHandler
AddHandler LvExec
AddHandler dirHandler
AddHandler copyHandler
CustomLog "./logs/access.log" "%h %l %u %t \"%r\" %>s %b"
KeepAlive on
KeepAliveTimeout 60
Timeout 60 -
TCP/IP communication with LabVIEW Full?
Hi,
I would like to know if the TCP/IP VIs are included with the Base or Full version of LabVIEW?
I was looking at the different versions of LV and one of the features of the Pro version is 'Network Communication'.
I have done TCP/IP communication a while ago and I am quite sure it was with the Full version. I have the Pro version now but this is for a customer.
This brings another question: Is there a trick to be sure your code is going to work on a system with LV Base if you develop on a system with LV Pro?
Thanks!I think that was a good answer to your first question. To answer your second question, if you are creating executables to be run on a computer with LabVIEW Base there will be no problem running the executable because LabVIEW Base has the run time engine. If you are sending VIs to another computer with LabVIEW Base they will not be able to access any VIs that are not included in there package. There is no simple way to tell that these VIs are not included except through the link in the previous post. In LabVIEW 8.6 many of the help documents state what LabVIEW package installs the VI. If all of the VIs state that they are installed with LabVIEW Base you will have no problems.
Vince M
Applications Engineer -
In Windows Explorer, when I right click a file, I can open the VI by selecting an application from the "Open With..." item. However, whenever I run Labview 8.2, it removes my Labview 8.0 item from the list, making it cumbersome to start up an older project. (I have to start Labview 8.0 with a desktop icon and then open the VI).
What I would like to see is for each version to add its own item to the menu bar, but still leave the old ones there. That way when I want to open an older project, I can simply right-click and pick the appropriate version.
Alternatively you could have a handler that determines the version from the VI and starts the correct version of Labview.
Brian RoseAll that context menu stuff is handled by the registry. The explorer application simply gets its information from there. So Labview can write to a registry key to add itself to handle a file type. This is why you can have multiple applications handle the same type and show up in the context menu.
My point is that after I run LV 8.0, I will see both LV 8.2 and LV8.0 in the context menu (along with a couple of others). However, after I run LV 8.2, the LV8.0 option is removed. I'm guessing that this is related to a program's behavior in checking and setting the registry key to make sure that it is the default handler for the appropriate file types. NI would need to strengthen this code to be sensitive to previous versions of Labview.
A rough example of how to do this is at http://www.codeproject.com/w2k/extendingshell.asp
Brian Rose -
How to change the default position of context menu item? (C#)
Hi,
I have included a calendar context menu item with my Outlook Addin. But by default, its positioned at the last as shown in the picture below:
I need a way to make it as the fourth item instead of last one. Also, I want set an icon for the same. How can I do that?
Appreciate if you can give some sample examples.
Thanks in advance.
Thanks PrasadHello Prasad,
The
Customizing Context Menus in Office 2010 article in MSDN describes the basics.
You can specify the IdMso value of the built-in control after/before you need to insert your own:
<button id="MyBtn" label="MyButton" insertBeforeMso="OpenSelectedItems" />
See
Office 2013 Help Files: Office Fluent User Interface Control Identifiers
for IdMso values. -
this is the third time i've had this problem with firefox...
firefox hangs when trying to download images, files, etc. the right click context menu opens (with bookmark, save page, save image, etc options) but after selecting an option, save image or whatever, the actual save as dialogue box doesn't open and firefox locks up.
many pages say to open the download pane and clear the history... i can't do that as trying to open the download pane locks it up, too. as does trying to open any other dialogues.
the first time this happened the only solution i could find was a total wipe and re-install (simple uninstall/re-install didn't work... it had to be weeded out of the registry manually).
the second time i just happened to be rebuilding my system, so i just did a fresh install on a fresh OS.
this time i can't seem to resolve the problem with uninstall and re-install...
help?found out what was doing it!
after trying firefox safe mode and windows safe mode and any number of other things i'd kinda given up for a bit there, but i woke from a dream in the middle of the night thinking "based on the behaviour involved it *must* be something in the shell that's causing this." (sorry, i dream in geek.)
so i grabbed a shell viewer editor - ShelleExView (http://www.nirsoft.net/utils/shexview.html) (had to use an icky, lesser browser to be able to download it) and gave it a run.
i listed all the extensions by the date they were added as a clsid and tried to think back to when the problem began... about a month or so after a fresh system reinstall. and through a little trial and error disabling i found the culprit.
it was an icon overlay handler put in by something called WagerLogic. after looking into the company name i'm going to have to assume this was related to one of the annoying "come lose real money at our virtual casino" pop-ups that infest the net nefariously panning for an easy mark like dickensian orphans.
i disabled it et voila! firefox is back to full function again. -
Way to communicat​e with labview with my own scripting language
Hi guys
My objective is to design my own scripting language that can communicate(sending inputs and receiving outputs) with labView for my project. I do have little knowledge about labView . But I dont have any idea how to design scripting language or where to start learning about it since i dont have any computer science background. Can some one guide me about this??
Thanks in advanceWhy do you want to design your own scripting language? That wheel has already been invented. There's a free Python toolkit and a Lua toolkit that you can buy to do scripting in LabVIEW.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice -
Web Application Context Menu - Problem posting comments
Hi all,
We are using SAP BW 7.0 (nw2004s) and the web interface to the reports (Web Applications). Some specific reports have to enable users to insert information about specific lines (comments about non-conformity issues). We were planning to insert documents (via context menu) integrated with portal KM.
Using the Analyzer, we had no problem at all. All the information posted was saved in KM and we could read it using "RSA1 - Documents" and using the Analyzer. The commented value shows a flag that indicates the comment (a small "paper" picture). But when we try to use the Web Application to post this information, it is saved ok but it can only be read using "RSA1 - Documents" and not by the Web Application (it always shows no new documents) and there's no indication in the commented value at all. Has anyone seen something like that? We need to use the web interface. Using the Analyzer is not an option.
Thanks in advanceThis is not the 2004s runtime in the 2004s system. The url you provided is the BW 3.x runtime in the 2004s system. Make sure on the client side in IE, you don't have and script blocking or popup blocking. For client side settings in IE, make sure your settings are specified as outlined in this blog:
Troubleshoot the SAP NetWeaver 2004s BI Frontend Installation
Also, make sure your url has the fully qualified domain name for your server. -
Execute an applescript with labview 7.1
Is it possible to execute an applescript with labview? In my opinion an applescript isn´t a appleevent or? So i can´t execute the script. Is there a possibility to communicate with programms on the macintosh? I want to start a applescript with labview and want to read the information from the .txt file which the script writes also with labview. The reading from the .txt file is no problem but to start the script....I found a file which can do scripts. but something is strange with the file. It would be nice if someone could have a look to file and correct it or maybe have good tips for me.
Thanks a lot
volgi1
Attachments:
DoScript2001.vi 20 KBYour VI is missing the CIN resource file. The error message says:
"This Code Interface Node has no code to execute. Right-click the node, select Load Code Resource from the shortcut menu, and select the object code file (.lsb)."
In LV7.1 there is an Apple event vi called AESend Do Script.vi at Functions >> Communications >> Apple Events. It sends a script to a scriptable application. I have not used Apple events much so I really cannot help you beyond this point.
Lynn
Maybe you are looking for
-
Why would the Firewire Port and/or External DVD-RW suddenly not work?
Hi, it's me again. I swear, I must be destined to just use Windows machines... Anyways, I have a used/refurbished iBook G3 500MHz 320MB RAM Dual USB (1 Firewire)laptop running OS 10.2.8 that I bought a few months ago. I went and purchased an external
-
Since upgrading to IOS6 on my 4s, some of my sms messages (international) are no longer delivered to other phone users (nokia, etc.), even though it shows sent in the message screen. I do however receive sms messages from these numbers. These numbers
-
How do I change the default window color?
Having white screens is too bright for my eyes!! I always change the default window color in Windows (hiss hiss) to a light shade of gray and that setting carries thru to all windows (i.e. Word, Excel, notepad....). Is it possible to do a similar thi
-
How to transfer files from mac to ipad without using itunes
how to transfer files from mac to ipad without using itunes ??? as i want to use my ipad for official use as well...please suggest..
-
No german umlauts in OHW 2.0.2 topic view
I used OHW 1.1.5 before. Now switching to OHW 2.0.2, in the table of contents the german umlauts are not displayed correctly. The rest of the installation is identical. Its the same OS, the same JDK, the same Tomcat servlet engine and the same client