LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

RT DLL general protection fault associated with serial I/O

Hello,

 

I'm experiencing Generatl Protection Faults on my real-time PC running LabView Real Time 9.1.0.  The faults occur when oppening/reading/writing from a serial rs-232/422 port, regardless of whether I use the Serial library or VISA library. 

 

How do I debug this? Is there a stack dump stored somewhere on the RT system when a fault occurs?

 

I am using LabWindows/CVI 2009 with the corresponding RT module to do my development.

 

Regards,

 

ndo

0 Kudos
Message 1 of 11
(4,516 Views)

Hi Ndo,

 

Please see the GettingStartedCVIRT.pdf.  You can find this under Start»All Programs»National Instruments»LabWindows/CVI version»LabWindows.  This includes information about ensuring you have CVI support installed as well as how to debug your application.

 

Cheers,

0 Kudos
Message 2 of 11
(4,482 Views)

Hi Michael,

 

Thanks for the response.  When a General Protection Fault occurs, the debuger stops and does not give any details about the fault except for the line that caused it.  That is how I determined that the RS-232/422 comm was causing the problem.  I don't know how to dig deeper to find the exact cause.  On the Windows side, when a fault occurs, there is a stack dump that can be analyzed.  Is there a similar dump file on the RT?  What is the methodology to debug a crash on the RT?

 

--ndo

0 Kudos
Message 3 of 11
(4,474 Views)

Hi Ndo,

 

Please take a look at this KnowledgeBase:  Is There an Error Log File for my Real-Time Controller?

 

Cheers, 

0 Kudos
Message 4 of 11
(4,454 Views)

Thanks Michael.  I'll give this a try.

 

--ndo

0 Kudos
Message 5 of 11
(4,449 Views)

Michael,

 

I was able to get a report of the crash just as the KB instructed. 

 

(Although no report was generated when I ran my DLL in debug mode, the report was only generated when I deployed the DLL to the RT system and a crash occurred. )

 

I've attached the report here, can you tell me why it's crashing?

 

Regards,

 

ndo

0 Kudos
Message 6 of 11
(4,437 Views)

Hi Michael,

 

Any update?

 

ndo

0 Kudos
Message 7 of 11
(4,395 Views)

Update (in case anyone else is having the same issue):

 

I have narrowed down the problem to the RT Symmetric Multicore Processing Extension feature.  If I install SMP on my RT system, my software crashes (runs fine if there is no SMP installed).

 

Currently working with NI to identify the exact problem...

 

ndo

0 Kudos
Message 8 of 11
(4,357 Views)

ndo,

 

Has there been any resolution to this?

 

Matt

0 Kudos
Message 9 of 11
(4,115 Views)

Matt,

 

I've had no update from NI reagrding this issue.  I'm currently only using one core (no SMP).

 

--NDo

0 Kudos
Message 10 of 11
(4,100 Views)