12-05-2006 07:13 PM
12-06-2006 08:56 AM
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".
12-06-2006 12:31 PM
12-06-2006 01:10 PM
05-10-2007 02:38 PM
05-11-2007 10:35 AM
06-01-2007 12:24 PM
06-01-2007 01:11 PM