From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Start CVI application when particular file type is double clicked

I'm developing using Labwindows/CVI 2013 on Win7

I'm trying to get my installed Labwindows/CVI application (the app is called KSALogViewerV100) to run when a file with a particular extension is double-clicked.

 

I went to Control Panel:
Control Panel\All Control Panel Items\Default Programs\Set Associations

 

I found my extension (.klg) and and clicked Change Progam, then Browse and navigated to:

C:\Program Files (x86)\KSALogViewerV100 and selected KSALogViewerV100.exe

 

So far so good.

But when I open Explorer and find a file like MyFile.klg and double click it I get this:

 

Error.png

 

Any ideas what I'm doing wrong?

 

0 Kudos
Message 1 of 3
(3,482 Views)

Why do you want to do this?

If you have CVI Runtime engine installed then your application should automatically start without any association.

 

May be you need to handle command line parameter (Filename) in your CVI application.

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 2 of 3
(3,449 Views)

OK, my bad, I was mis-handling the argc, argv stuff and overwriting a string.

 

Now when I double-click a .klg file the appliction comes up just fine.  The full path-name of the file I double-clicked is in argv[1].

 

Not sure I followed you though--

Are you saying I should not have to go into control panel to associate .klg file types with my KSALogViewerV100.exe application?

 

Kirk

 

 

 

0 Kudos
Message 3 of 3
(3,438 Views)