RF Measurement Devices

cancel
Showing results for 
Search instead for 
Did you mean: 

Revisited: Problem adding NI-RFSG *.dll to install bundle

Referencing the original post included below.

The application compiles and loads now, but when I attempt to run it a path box comes up asking for 'Find the Shared Library Named "niRFSG"  '.

After cancelling this dialog box and quitting several dialog boxes informing on the failure to find particular functions, a partially funcitoning application comes up.  This application has a corrupted "Help" menu.  Some of my items have been lost and LabVIEW items have been inserted!

Also the size of the application directory (the executable is 1MB):
    before adding RFSG functionality -- 60MB
    after successful(?) compiling with RFSG functionality -- 600MB!!!!!

I compile with the following two selections from the "Additional Installers" option
    NI LabVIEW Run-Time Engine 8.2
    NI-FGEN 2.4.1

___________________
Original Post:

I've successfully created install bundles for my application and installed and run them on other machines.
I've added modifications to the program to use a NI-RFSG board if it's installed.  It runs on my computer.
It needs the niRFSG .dll to run on other computers.

When I create the new installer, I now select NI-FGEN 2.4.1 from the "Additional Installer" category o fthe "Install Properties" dialog box that pops up before clicking on "BUILD".

Now a new dialog box pops up asking:

    LabVIEW cannot locate some components necessary to build the
    installer.  The components are from the following distribution(s):
       Distribution name:  NI_RFSG 1.2.1, Disk 1
       Last known distribution path D:\

I don't have such a disk.  I installed form the Nov. 2006 Developer Suite, which has a 3-disk set of Device Drivers (disk 2 of which contains a folder "NI_FGEN").  If I put in the disk1, the "NI Device Drivers" installer pops up.  If I put in disk 2, I can't get the installer builder to recognize any file or directory.  (It seems to be asking for a directory, but the browse dialog box will only accept a file?!)

When I cancel the build attempt, the dialog box gives "Details:"

    Visit the Request Support page at ni.com/ask to learn more about
    resolving this problem. Use the following information as a reference:

    CDK_Item_OnDblClick.vi.ProxyCaller >> CDK_Item_OnDblClick.vi >>
    CDK_InstallerConfiguration_Editor.vi >> CDK_Build_Invoke.vi >>
    CDK_Engine_Main.vi >> CDK_Engine_Build.vi >> CDK_Engine_PromptForMissingDist.vi

    Loading product deployment information
    Loading product deployment information
 
    **************
    *** Error: An internal error occurred for which the cause is unknown. (Error code -41)
    *** End Error Report
    **************
______________
This post was responded to by Marian, who suggested I locate and use the NI-RFSG 1.2.1 CD.  This seemed to solve the problem until I actually tried to run the application on another machine, hence the above new post.

0 Kudos
Message 1 of 18
(10,593 Views)
Some additional information:

On my machine (with the Developer's Suite installed), I have a directory "instr.lib" under "\Program Files\National Instruments\LabVIEW".
On the install machine (Developer's Suite absent), the directory "\Program Files\National Instruments\LabVIEW" exists with many of the same subdirectories, but it does not have a "instr.lib" subdirectory.

Thanks to all who answer.

Tom J
0 Kudos
Message 2 of 18
(10,591 Views)
Hi Tom

'The application compiles and loads now, but when I attempt to run it a path box comes up asking for 'Find the Shared Library Named "niRFSG" '.
I was under the impression that you accounted for this problem, since you could not selected NI-RFSG in the
"Additional Installers" dialog.

Now the good news, starting with the February release, NI-RFSG is now included on the NI Developer Suite. Additionaly  the deployment feature is now supported by the NI-RFSG 1.2.5 installer (so that NI-RFSG is now selectable in
"Additional Installers" dialog). If you don't want to wait until the February Edition of the NI Developer Suite arrives, you may download NI-RFSG 1.2.5 from http://www.ni.com/support (starting tomorrow) or directly from ftp://ftp.ni.com/support/rf/ni-rfsg/1.2.5 (where it is available right now).


Also the size of the application directory (the executable is 1MB):
    before adding RFSG functionality -- 60MB
    after successful(?) compiling with RFSG functionality -- 600MB!!!!!

All I can do is acknowledge, that NI-FGEN (and NI-RSFG) will cause the installation of many infrastructure components which may not all be required to run your application. Unfortunately, at the moment I can not offer you a solution to reduce the installed harddrive footprint.

Sincerely,

Marian

Message Edited by GDEV on 03-19-2007 11:06 AM

Message Edited by GDEV on 03-19-2007 11:07 AM

Message 3 of 18
(10,585 Views)
Marian replied:
>    'The application compiles and loads now, but when I attempt to run
>    it a path box comes up asking for 'Find the Shared Library Named
>    "niRFSG" '
.
>I was under the impression that you accounted for this problem, since you
>could not selected NI-RFSG in the
"Additional Installers" dialog.

I had an application without the RFSG board that compiled, installed and run on another computer.  Initially after adding the RFSG capablity it compiled but did install.  I then recompiled with the "Alternate Installer"  NI-FGEN (NI-RFSG not being an option).  It then gave me the described errors of the original post when compiling.  After finding the NI-RFSG 1.2.1 disk and recompiling (6 disk swaps, NI-RFSG, Developer's Suite and Drivers; and 20 miniutes later)  It successfully compiled and installed but still failed to run, giving the messages described in the second post.

>Now the good news, starting with the February release, NI-RFSG is now
>included on the NI Developer Suite. Additionaly  the deployment feature is
>now supported by the NI-RFSG 1.2.5 installer (so that NI-RFSG is now
>selectable in
"Additional Installers" dialog). If you don't want to wait until
>the February Edition of the
NI Developer Suite arrives, you may download
>NI-RFSG 1.2.5 from http://www.ni.com/support (starting tomorrow) or
>directly from ftp://ftp.ni.com/support/rf/ni-rfsg/1.2.5 (where it is available
>right now).

Thanks for the link.  I download and try it.

>  <snip discussion on application harddisk footprint>

Regarding the alteration of the application menu, it's not just a change of the "Help" submenu, the entire menu is the standard LabVIEW application menu.  Is it standard practice to load this menu (with application's otherwise front panel) if the application fails to load properly?

Thanks,

Tom J
Message 4 of 18
(10,574 Views)
Oops, my first paragraph should start:

    I had an application without the RFSG board that compiled, installed and run on another computer.  Initially after adding the RFSG capablity it compiled but did NOT install.
0 Kudos
Message 5 of 18
(10,568 Views)
Hi Tom,

regarding full LabVIEW menu in your application.

Every LabVIEW front panl compiled into an application links to the default LabVIEW menu (provided by the LabVIEW Run-Time Engine). In a lot of cases application developers simply hide the menu (via VI properties in Application/Distribution Builder). This works for most instances as long as the displayed VI is running. In your case the VI comes up broken and therefore not running.
If you want to limit the menu displayed in your LabVIEW application you can create a custom menu and link to it from your top level VI(s).
To do this select Edit>>Run-Time Menu in your top level VI (in edit mode).

P.S. If you never want a Run-Time Menu displayed, you need to create a custom menu without any items in it.

Sincerely

Marian
Message 6 of 18
(10,554 Views)
Marian,

I downloaded the files from ftp://ftp.ni.com/support/rf/ni-rfsg/1.2.5, and tried to install them.  I got an installation Error no. 1722, in part 25 of 98 (at least it continued with part 26 when I hit the continue button).  I've attached a Word doc with the error box pasted in it.


Tom J
0 Kudos
Message 7 of 18
(10,547 Views)
Hi Tom,

I apologize for not responding right away.
Unfortunately this error code is very generic. I would appreciate if you could rerun the NI-RFSG 1.2.5 installer with the following command option: setup.exe /log <path to log file>. The log file should contain a more detailed error message.

Thank you for your patience,

Sincerely

Marian
Message 8 of 18
(10,529 Views)
Marian,

Here's the log file.  I've included a doc file of a couple of screen captures as well.

Tom J
Download All
0 Kudos
Message 9 of 18
(10,524 Views)
Hi Tom,

I looked at the log file you attached in your previous post. It looks like you run your custom installer (created via LabVIEW) with the command argument instead of the NI-RFSG 1.2.5 installer.

If that is correct, could you please run the NI-RFSG 1.2.5 installer with the command '<path to NI-RFSG 1.2.5 distribution>\setup.exe /log <<path to log file>?

Sincerely,

Marian

Message Edited by GDEV on 03-21-2007 03:06 PM

Message 10 of 18
(10,527 Views)