LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

About "access violation(0xc0000005)"

Solved!
Go to solution

I'm trying to use the write/read control to transfer an array from Host to Fpga repeatedly.

 

In detail, I set an controller(Radar data from host(array type)) on fpga front panel and an indicator(Radar data indicator) of it. Then I successfully generated the bitfile of this fpga. On the host, I open the reference of the bitfile and use write/read control to write an array(controller) into "Radar data from host". Then, I use write/read control to read "Radar data indicator" to an indicator to check if fpga successfully receive the array transferred from host.

 

It's runnable. And when I change the array elements value wrote into "Radar data from host", the indicator value changes simultaneously. But the error "access violation(0xc0000005)" occurs and labview breaks down when the program runs about 1 or 2 minutes during which I keep changing the value of the array randomly. Any thoughts on this problem? Thanks a lot!

0 Kudos
Message 1 of 5
(3,347 Views)

Hi K,

 


@K.Gao wrote:

But the error "access violation(0xc0000005)" occurs and labview breaks down when the program runs about 1 or 2 minutes during which I keep changing the value of the array randomly. Any thoughts on this problem?


Thoughts: there is a problem in your code!

 

Suggestion: when we should discuss about problems in your code then it would help a lot when you would attach your code

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,315 Views)
Solution
Accepted by K.Gao

@GerdW wrote:

Hi K,

 


@K.Gao wrote:

But the error "access violation(0xc0000005)" occurs and labview breaks down when the program runs about 1 or 2 minutes during which I keep changing the value of the array randomly. Any thoughts on this problem?


Thoughts: there is a problem in your code!

 

Suggestion: when we should discuss about problems in your code then it would help a lot when you would attach your code


Gerd, I suspect with a Radar code is not allow to be posted. I'd love to be wrong.
Failure to close a reference (causing memory leak) or race condition would be my guesses without seeing the code.


CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 3 of 5
(3,301 Views)
Solution
Accepted by K.Gao

Problem solved, a stupid mistake that I put Open Ref in a loop. I'd love to post the code but it's kinda classified I believe. Thanks for your time!

0 Kudos
Message 4 of 5
(3,296 Views)

Glad to hear you solved. But since you marked your post as a solution, please explain in detail what was the mistake. Or add an example (unclassified) vi where you show it.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 5
(3,287 Views)