LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve error -61202 with using two FPGA references

Solved!
Go to solution

I met a problem when I programmed for myRIO in LabVIEW. I want to use myRIO to acquire audio data and produce PWM signals in the same time, to form a closed loop control for a robot arm with servo motor. But both the data acquisition and PWM signal production need to use FPGA reference, an error will happen, the error code is -61202. How can I achieve the function without making the error.

code.png

0 Kudos
Message 1 of 20
(6,274 Views)

Did you try a reset?  The program may have not stopped or closed out properly.


Certified LabVIEW Architect, Certified Professional Instructor
ALE Consultants

Introduction to LabVIEW FPGA for RF, Radar, and Electronic Warfare Applications
Message 2 of 20
(6,263 Views)

Thank you. I have added the reset outside the while loop, you can see my picture. It seems I cannot use 2 FPGA reference in the same time. But I don't know how to achieve the function without 2 FPGA reference.

0 Kudos
Message 3 of 20
(6,260 Views)

I was not referring to the reset outside of the loop; just the old 'try a reboot' advice.

 

I only see one FPGA reference; not sure I follow.  If you mean to fork the wire, then that can be done; just do not run Open more than once.


Certified LabVIEW Architect, Certified Professional Instructor
ALE Consultants

Introduction to LabVIEW FPGA for RF, Radar, and Electronic Warfare Applications
Message 4 of 20
(6,255 Views)

There is a FPGA reference outside the while loop, and another FPGA reference is used in the PWM generator which cannot be seen. I have reboot the myRIO, but it doesn't work.

0 Kudos
Message 5 of 20
(6,249 Views)

Yeah, that's a problem 🙂  Reboot would not help that for sure.

 

Are there regular VIs that can give you access to the PWM?  (i.e. non-Express VIs)

Also, an Express VI can be converted to a regular VI by right-clicking and selecting Open Front Panel, http://zone.ni.com/reference/en-XX/help/371361P-01/lvconcepts/create_expvi_subvis/

This is a one-way action but will give you access to the underlying LabVIEW code so you can modify it to not open the FPGA VI Ref twice but feed in the existing one.


Certified LabVIEW Architect, Certified Professional Instructor
ALE Consultants

Introduction to LabVIEW FPGA for RF, Radar, and Electronic Warfare Applications
Message 6 of 20
(6,239 Views)

I have tried that, after I converted the VI to subVI,  but it seems I am not allowed to modify anything in that panel.

123123123.png

 

Download All
0 Kudos
Message 7 of 20
(6,228 Views)

Open the FPGA reference during initialisation of your code and then wire up the reference to both sub-VIs requiring it.

 

You can't deploy two bitfiles to a single FPGA chip.  Deploy once and then re-use the reference.

Message 8 of 20
(6,205 Views)

Thank you. I have solved the problem by using close FPGA reference VI to close one FPGA reference before opening another one in a while loop, but now my code only works when I turn on the highlight execution. It will not have error, but it will not show anything without highlight execution.

0 Kudos
Message 9 of 20
(6,198 Views)

Quick question.  Are the two bitfiles you are opening the same or different?

0 Kudos
Message 10 of 20
(6,194 Views)