01-11-2013 11:44 AM
I want to add a button to my application to run the Ananlog Waveform Editor. Is there a place to query the path?
01-11-2013 12:16 PM
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?
01-14-2013 03:36 PM - edited 01-14-2013 03:38 PM
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,
01-21-2013 10:42 AM
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.
01-22-2013 08:31 AM
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!
03-14-2013 02:07 PM
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