RF Measurement Devices

cancel
Showing results for 
Search instead for 
Did you mean: 

unknown error code from RF Signal Generator

I have a RF Vector Signal Generator (PXI-5660), which has a RF Downconverter (PXI-5600) and a Digitizer (PXI-5620).  I am using C# to wrap the niRFSA.dll and I am trying to call InitWithOptions.  I am getting the following error, which in hex is BFFA40CB.  I can not find this error code in any of the header files, niRFSA.h, ivi.h, visa.h, visatypes.h nor vpptypes.h.
 
InitWithOptions("Dev5", false, false, "DriverSetup=DAQ::2");
 
Instead of DAQ::2, I can use PXI18::9::INSTR and I will get the same error.
 
If I put in an invalid Digitizer resource name, I get the error BFFA40CD (I can't find this error code either), so I believe it is recognizing the Digitizer for what it is.
 
If I don't specify "DriverSetup", I get 'Digitizer Resource Name Not Found', error code: 'BFFA4006'.
 
If I put in an invalid Downconverter resource name (instead of "Dev5") I get 'Invalid Resource Name', error code: 'BFFF0012'.
 
Thanks
Robert
Message 1 of 8
(10,507 Views)

I'll explain how to get text for your errors in a minute, but you've got a bigger problem: RFSA does not support the 5660 via niRFSA.dll.  There is support in LabVIEW via some legacy VIs for the 5660, but this probably won't help you with your C# application.  The 5661 is supported via niRFSA.dll, which uses a different digitizer.  Instead of using niRFSA.dll, you'll want to use the NI-Tuner and NI-Scope APIs to control your 5660.  The "NI RF Signal Analyzers Software: The NI-RFSA and ni5660 APIs" section of the RFSA readme describes this somewhat.

Now on to the errors you are getting.

When an error happens, RFSA stores info about the error with the session.  You can use niRFSA_GetError to get error text associated with the error stored in the session.  There is some dynamic info that can't be captured by a simple error code (like the actual text or value that you entered) that is stored in the session, so this is the preferred way of getting an error explanation.

If you no longer have the session, you can use niRFSA_error_message to get the static error text associated with an error code.  I used this to get the static text for the errors you are getting:

BFFA40CB = The specified tag is not supported. Refer to the user documentation for information about the DriverSetup syntax.

BFFA40CD = No value was found for the tag. Valid DriverSetup strings have the form "tag:value; tag:value; ... tag:value". Refer to the user documentation for information about the DriverSetup syntax.

Basically what is going on is your options string is invalid.  Instead of "DriverSetup=myDigitizerName", use "DriverSetup=Digitizer:myDigitizerName".  This works for DAQmx devices, since their names don't have ':' in them (which is a delimiter for driver setup strings).  If the 5660 were supported in RFSA, the options string for your device would probably have the optional 'DAQ::' text removed: "DriverSetup=Digitizer:2".

Message 2 of 8
(10,490 Views)
Thanks, this helps.
 
I was able to find the dll and header files for NI-Scope and was able to call init properly.  However, I can not find the dll or header files for NI-Tuner.  I have installed RFSA and selected NI-Tuner.  It has installed the CVI examples, but nothing else that I can find.
 
Where can I find the dll and header file for NI-Tuner?
 
Thanks
Robert
Message 3 of 8
(10,484 Views)
Robert,

you can find the header file for niTuner in your VXIpnp directory (usually found on c:\vxipnp\winnt\include) and the DLL can be found in the windows\system32 directory.

The name of the DLL you will want to use is nipxi5600u.dll

hope this helps some more

-Serge
Message 4 of 8
(10,479 Views)
hello guys who have an idea of modulation wcdma
0 Kudos
Message 5 of 8
(10,192 Views)
Hi etudiant2 -

I'm sorry, but I have to repeat the NI response given here.  If you need another response or more help, please reply there and we'll be happy to continue helping you.

I also strongly encourage you not to post in new threads on this topic.  Please keep the topic to one thread, where everyone can find information if they need.
David Staab, CLA
Staff Systems Engineer
National Instruments
Message 6 of 8
(10,170 Views)
Hello etudiant2007,
These Discussion Forums are provided by National Instruments as a tool to provide technical support and connect the communities of users of various National Instruments products. If you have a question you would like to pose or a problem you would like some assistance solving, I invite you to post to the  forums.

If you have constructive feedback relating to National Instruments products or services, I invite you to post this as well. However, continued use of these forums to post profane comments, regardless of the language they are in, will not be tolerated.

Please stop using profanity in your postings.

Regards,
Andy Hinde
National Instruments
Message 7 of 8
(10,065 Views)
i am sorry but any one want to help me i was here for a month i want to simulate a wcdma just a software with labview 8.0 and i have ni modulation tool kit 2.0 . i want some information how to spread my signal. i have not a solution . if you have a solution send me it i want it . because i read some articles . i can't implement it t o in labview . thanks
0 Kudos
Message 8 of 8
(10,053 Views)