02-27-2007 07:23 AM
03-06-2007 03:40 AM
03-18-2007 04:17 AM
Hi Wolfgang
I have two 5661-RFSAs, two preamps and two RF-multiplexers installed in one chasis. I can use MAX to reset all boards and to do all selftests without any problem. Programs run in release mode. In VC++6.0 debugging mode the aforementioned first chance exception could be ignored since it is usually handeled by Windows. But I still want to get rid of it as I'm not sure if it causes stability problems in the release mode. Strange is that, I initialize the 5661s, preamps and RF-multiplexers in the same way, and the first chance exception only happes when initializing 5661. I wrote a simplified test program that includes only the 5661 relevant parts, and the same can be observed.
When watching the Disassembly in the debug window I can see the exception happens at the last line (00441D15) of the following code extraction.
2287: // Initialize RFSA 0
2288: DeviceName = "DownConverter5600_0";
00441CD9 mov dword ptr [ebp-0Ch],offset string "DownConverter5600_0" (00510ac8)
2289: ViBoolean DigitizerIDQuery = VI_TRUE;
00441CE0 mov word ptr [ebp-0DCh],offset CDVBQOSView::OnMainViewBtnBootpxi+1F7h (00441ce7)
2290: ViBoolean DigitizerReset = VI_FALSE;
00441CE9 mov word ptr [ebp-0E0h],offset CDVBQOSView::OnMainViewBtnBootpxi+200h (00441cf0)
2291: ViError = niRFSA_init (DeviceName, DigitizerIDQuery, DigitizerReset, &DigitizerHandle0);
00441CF2 mov ecx,dword ptr [ebp-4]
00441CF5 add ecx,186BCh
00441CFB push ecx
00441CFC mov dx,word ptr [ebp-0E0h]
00441D03 push edx
00441D04 mov ax,word ptr [ebp-0DCh]
00441D0B push eax
00441D0C mov ecx,dword ptr [ebp-0Ch]
00441D0F push ecx
00441D10 call niRFSA_init (004a76ea)
00441D15 mov dword ptr [ebp-1Ch],eax
Thank you for any hints.
Vedis
03-18-2007 04:20 AM