Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Where do I find the Analog Waveform Editor startu ppath so I can call it from my program

I want to add a button to my application to run the Ananlog Waveform Editor. Is there a place to query the path?

0 Kudos
Message 1 of 6
(6,203 Views)

I did find the Registry path:

 

HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\AWE\CurrentVersion\Command

 

Is there a way to have AWE load an .HWS file when it is started?

 

0 Kudos
Message 2 of 6
(6,202 Views)

Hi TrackerMan,

 

To open the Analog Waveform Editor from your program you can use the Process command in C# (or visual basic as it may be).

 

Here is he msdn page on how that call would work:

 

http://msdn.microsoft.com/en-us/library/system.diagnostics.process%28v=vs.100%29.aspx

 

From your perspective it would be something like

 

Process.Start(@"C:\Program Files\National Instruments\Analog Waveform Editor\Analog Waveform Editor.exe");

 

Depending on where your actual application was installed. It does not look like you can have the AWE open a file by command line however. I will actually be looking for feedback to see if this is desired behavior and if not file a CAR.


So what it appears you will have to do is make the call Process.Start() call in your button clicked event and then on the open dialog select the file you want to open.

 

Hope that gets things rolling!

 

Cheers,

James W.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 6
(6,183 Views)

I have it working. I would be interested in a command line feature to load a file into AWE. My application stores the path to the file and it would be nice if the user did not have to browse to the file.

0 Kudos
Message 4 of 6
(6,161 Views)

I agree that it would be better if the Analog Waveform Editor had file associations with hws files and I did note a suggestion to include that in a future update to the product. I would recommend going to the idea exchange and starting a thread as then our developers will see the actual need coming from customers which could give more drive to implement the change.

 

Glad things are working otherwise!

James W.
Applications Engineer
National Instruments
0 Kudos
Message 5 of 6
(6,152 Views)

I too, would like to pass an input file to AWE via the command line.  I just recently purchased AWE (Dec 2012), and it is a 2007 version.  So me thinks the update will not be done any time soon 🙂

G

0 Kudos
Message 6 of 6
(6,062 Views)