RF Measurement Devices

cancel
Showing results for 
Search instead for 
Did you mean: 

NI RFSG / RFSA .NET API compatibility with Visual Studio 2022

I have VS 2022 Professional Installed and I installed NI RFSG / RFSA from:

 

ni-rfsa_25.0.0_offline.iso
ni-rfsg_25.0.0_offline.iso

 

Which are I believe the latest offline installers. (Offline installation is a hard requirement for me.)

The problem is that these install support for .NET 4.0 and 4.5 APIs. I opened an example project and tried updating it to .NET Framework 4.8 which is what VS recommended, but I get a problem when trying to compile:

 

Assembly 'NationalInstruments.ModularInstruments.NIRfsg.Fx45' with identity 'NationalInstruments.ModularInstruments.NIRfsg.Fx45, Version=25.0.0.49449,
Culture=neutral, PublicKeyToken=4febd62461bf11a4' uses 'Ivi.Driver, Version=1.4.0.0, Culture=neutral, PublicKeyToken=a128c98f1d7717c1' which has a higher version
than referenced assembly 'Ivi.Driver' with identity 'Ivi.Driver, Version=1.3.0.0, Culture=neutral, PublicKeyToken=a128c98f1d7717c1'	SingleToneGenerationIQDevice.2012
C:\Users\Public\Documents\National Instruments\NI-RFSG\Examples\VS2012\GettingStarted\SingleToneGenerationIQDevice\cs\CSC	1	Active	

 

I assume this is the result of upgrading the example with a new .NET API.

 

The other option is to download a compatibility pack for .NET 4.5, but I'm wondering if I should really have to be doing this.

What's the right way to solve this? Are there not versions of these APIs compatible with newer .NET versions?

 

Thanks.

 

0 Kudos
Message 1 of 4
(77 Views)

I tried uninstalling NI RFSA and RFSG and reinstalling - same problem.

 

I then tried uninstalling all NI software and reinstalling:

 

LabVIEW 2025 Q1

ni-rfsa_25.0.0_offline.iso
ni-rfsg_25.0.0_offline.iso

 

Unfortunately this didn't solve anything and added two new errors:1

 

Severity Code Description Project File Line Suppression State Details
Error CS0012 The type 'ComplexDouble' is defined in an assembly that is not referenced. You must add a reference to assembly 'NationalInstruments.Common, Version=19.1.40.49152, Culture=neutral, PublicKeyToken=dc6ad606294fc298'. ArbitraryWaveformGeneration.2012 C:\Users\Public\Documents\National Instruments\NI-RFSG\Examples\VS2012_copy\ArbitraryWaveforms\ArbitraryWaveformGeneration\cs\MainForm.cs 129 Active

Severity Code Description Project File Line Suppression State Details
Error CS0012 The type 'ComplexSingle' is defined in an assembly that is not referenced. You must add a reference to assembly 'NationalInstruments.Common, Version=19.1.40.49152, Culture=neutral, PublicKeyToken=dc6ad606294fc298'. ArbitraryWaveformGeneration.2012 C:\Users\Public\Documents\National Instruments\NI-RFSG\Examples\VS2012_copy\ArbitraryWaveforms\ArbitraryWaveformGeneration\cs\MainForm.cs 129 Active

Severity Code Description Project File Line Suppression State Details
Error CS1705 Assembly 'NationalInstruments.ModularInstruments.NIRfsg.Fx45' with identity 'NationalInstruments.ModularInstruments.NIRfsg.Fx45, Version=25.0.0.49449, Culture=neutral, PublicKeyToken=4febd62461bf11a4' uses 'Ivi.Driver, Version=1.4.0.0, Culture=neutral, PublicKeyToken=a128c98f1d7717c1' which has a higher version than referenced assembly 'Ivi.Driver' with identity 'Ivi.Driver, Version=1.3.0.0, Culture=neutral, PublicKeyToken=a128c98f1d7717c1' ArbitraryWaveformGeneration.2012 C:\Users\Public\Documents\National Instruments\NI-RFSG\Examples\VS2012_copy\ArbitraryWaveforms\ArbitraryWaveformGeneration\cs\CSC 1 Active

"C:\Users\User\Desktop\FROM_USB\ni-labview-plus-2025_25.0.0.49247-0+f95_offline.iso"
"C:\Users\User\Desktop\FROM_USB\ni-rfsa_25.0.0_offline.iso"
"C:\Users\User\Desktop\FROM_USB\ni-rfsg_25.0.0_offline.iso"

0 Kudos
Message 2 of 4
(27 Views)

I installed additionally ni-sync and ni-modulation-toolkit (which were installed originally) leaving me with the following rollout:

 

LabVIEW 2025 Q1

ni-rfsa_25.0.0_offline.iso
ni-rfsg_25.0.0_offline.iso

ni-modulation-toolkit_23.5.0_offline.iso

ni-sync_25.0.0_offline.iso

 

This got me back down to the one original compilation error:

 

Severity Code Description Project File Line Suppression State Details
Error CS1705 Assembly 'NationalInstruments.ModularInstruments.NIRfsg.Fx45' with identity 'NationalInstruments.ModularInstruments.NIRfsg.Fx45, Version=25.0.0.49449, Culture=neutral, PublicKeyToken=4febd62461bf11a4' uses 'Ivi.Driver, Version=1.4.0.0, Culture=neutral, PublicKeyToken=a128c98f1d7717c1' which has a higher version than referenced assembly 'Ivi.Driver' with identity 'Ivi.Driver, Version=1.3.0.0, Culture=neutral, PublicKeyToken=a128c98f1d7717c1' ArbitraryWaveformGeneration.2012 C:\Users\Public\Documents\National Instruments\NI-RFSG\Examples\VS2012 - Copy\ArbitraryWaveforms\ArbitraryWaveformGeneration\cs\CSC 1 Active

 

 

0 Kudos
Message 3 of 4
(12 Views)

Installing IVI.NET 1.4 fixed it. Seems like this is a hoop you shouldn't have to jump through but at least it's fixed.

0 Kudos
Message 4 of 4
(2 Views)