LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using MAX API to generate report

I am trying to automate a software installation procedure through the use of the NIMAX_GenerateReport() function. We have a software installation that requires a manual edit operation after the installation.  After installing the software the user examines the memory range of a 6602 counter/timer card in NI-MAX and then edits the value into an INI file that the software reads at run time.

 

I am exploring the possibility of automating this step by having the installer call the NIMAX_GenerateReport() function to generate an XML report and then read the memory range from the XML report file and finally edit the INI file with the memory range value read from the report. To test this out I wrote a small command line LabWindows program that called the generate report function. It worked fine on my build machine but when I tried to run it on the target machine I get the following error return from the generate report function call: "An unknown error occurred".  The version of NI-MAX on the target PC is 3.1 and the version on the build PC is 4.6.2. I was wondering if the version of NI-MAX on the target PC is too old to support the NI-MAX API. My questions are:

 

1. Is this a valid way to programmatically obtain the memory range information from the 6602 card or is there a better way?

2. How can I upgrade the version of NI-MAX on the target PC. I'm not sure what installs it.

 

Thanks,

Jim

0 Kudos
Message 1 of 2
(2,683 Views)

Hello Jim,

 

The way you are going about your coding sounds correct.  Per your second question, MAX installs when you update the computer drivers.  To do this go to ni.com/drivers, search for DAQmx, and then download the most current version of DAQmx that is compatible with your computers.  By installing a newer version of DAQmx MAX will automatically be updated.  

 

Regards,  

 

Marcus

Marcus M.
PXI Product Support Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,673 Views)