07-01-2021 01:01 AM - edited 07-01-2021 01:19 AM
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!
Solved! Go to Solution.
07-01-2021 01:39 AM
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…
07-01-2021 03:56 AM
@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.
07-01-2021 04:18 AM
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!
07-01-2021 04:48 AM
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.