From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

crash due to matlab function

Hi All,

 

My LabVIEW VI crash (Exception: Access violation (0xC0000005) at EIP=0x00000000) when it runs to a matlab function "inv". Seems it is a normal matrix function and should be supported in mathscript. After I delete this function, everything works fine. Can someone give me any clue on how to fix this? The crash report is as following.

 

Thanks,

Jiaqi

0 Kudos
Message 1 of 8
(7,416 Views)

PS: The LabVIEW I'm using is 2013 SP1 and the MATLAB is R2013b.

0 Kudos
Message 2 of 8
(7,414 Views)

Are you using the Mathscript Node or the MATLAB® Script Node? Also, what is the size of the Matrix you are dealing with? Are you dealing with 32-bit or 64-bit LabVIEW? 

 

MATLAB® is a registered trademark of The MathWorks, Inc.

Miles G.
National Instruments
Staff Applications Engineering Specialist
0 Kudos
Message 3 of 8
(7,388 Views)

@Kilometers wrote:

Are you dealing with 32-bit or 64-bit LabVIEW? 


The error message says 32bit. Seems the VI is loaded over the network.

 

 

Is your matlab 32 or 64bit?

0 Kudos
Message 4 of 8
(7,380 Views)

Hi Miles,

 

I use Mathscript Node and the Matrix size is 3*3. LabVIEW is 32-bit. The funny thing is it worked fine yesterday afternoon and crashes again today with nothing changed:(. 

 

Cheers,

Jiaqi

0 Kudos
Message 5 of 8
(7,369 Views)

Hi Altenbach,

 

You are right! The VI is loaded over the shared drive. Would this be the reason?

 

Cheers,

Jiaqi

0 Kudos
Message 6 of 8
(7,367 Views)

@jwan887 wrote:

The funny thing is it worked fine yesterday afternoon and crashes again today with nothing changed:(. 


Have you tried to simply restart the computer and try again? Do you run any unusual antivirus software?

0 Kudos
Message 7 of 8
(7,363 Views)

I tried to restart the computer but it didn't work. The antivirus software was installed by the uni IT so should be OK. 

0 Kudos
Message 8 of 8
(7,359 Views)