LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie: Error -61024 when trying to download FPGA Example

Hello,

I'm trying my first steps with a PCI-7831R card. I tried to make one of the examples work, to no success. I tried "Simple Loops - R Series" and "Sine Generator - R serie", but had no success. When I try to download the VIs to the card I get an error -61024.

According to the instrument manager my 7831R is working correctly.

My Software versions are

Labview 8.2
NI-RIO 2.1.0
NI-VISA 4.0

How do I find out what's going wrong?

Best regards

Armin Lambacher
0 Kudos
Message 1 of 11
(19,344 Views)
Hi arminphys,

see the link and do the steps...

http://digital.ni.com/public.nsf/websearch/D38422861E5BBD3B8625704300577849?OpenDocument

If you got an error code next time, try to search on ni.com on your own, most error codes are explained in knowledgebases. But note do not use -61024 to search for - use the searchstring "-61024", otherwise you'll exclude the results regarding you error.

Regards
TomBaum
0 Kudos
Message 2 of 11
(19,287 Views)
Hello,

meanwhile I tried to find out a bit more about the problem.

In the Measurement and Automation Explorer (this is what in this forum is usually abbreviated as MAX, correct?) I find my card under NI-RIO devices and the Resource Name there is "7831R (NI-7831-R)". The Interface name is "RIO0 (NI-7831R. device 0, s/n 0x01187888).

If I click on the card, some tabs open, where on the General tab I first find a name "RIO0::INSTR" with a VISA alias "7831R", the device type is reported as "PXI/PCI RIO", I have the PCI version in the computer. So far this seems to be ok to me, the device status is reported as "This device is working properly".

Then I open the example "Sine Generation - R Series". There I find a "Sine Generator (Host).vi" and a FPGA Target. The full name of the target is "FPGA Target (RIO0::INSTR, PXI 7831R).

If I then try to download the "Sine Generator (FPGA).vi" I get the error message:

"A driver for the target returned the following error. Consult the LabVIEW help database or the target documentation for help in resoving the issue.

Error Code: -61024

LabVIEW FPGA: The device type that has been configured in this function does not match the actual type of the device."


Here my first real problem in understanding occurs. In which function can I configure what?


Then I tried simply to reset the FPGA Target by right-clicking on the "FPGA Target" and choosing "Reset". I get the same error message.

The I tried "Download Bitfile to Flash" by right-clicking on the "FPGA Target" and choosing "RIO Device Setup...". I recompiled the "Sine Generator (FPGA).vi" and chose the resulting bitfile for download. There I get the error message

"Incompatible Bitfile.
The bitfile was not compiled for the current target."

So it seems that I did something wrong when compiling the file, but I could not find a place where I could configure something during compile stage.


This is the first time I use the FPGA module, although I have already some experience with LabVIEW in general.

Can somebody please put me in the right direction?


Best regards

Armin Lambacher
0 Kudos
Message 3 of 11
(19,283 Views)
Hallo Tom,

thank you for the answer. I already was at that page, but did not realize at that moment that this page would also apply to my problem as my software versions are different.

For other newbies:

The mentioned "External VISA Input" is called "Show Resource Input" on my software version.

You cannot activate this menu point unless you assign a vi to the Open FPGA VI Reference.

I did those steps in a blank new project, where I first had to create a new FPGA target by right-clicking on "My Computer" and selecting "New->Targets and Devices" and selecting my card there.
Then I created a new FPGA vi there which I assigned to the Reference in the Host vi.

For experienced users this may be trivial, but it did cost me some time to find out.

So, now the error message has vanished.

Thank you very much and best regards

Armin Lambacher
0 Kudos
Message 4 of 11
(19,266 Views)
Hi,

did I understand you correct? Did you solve your problem using the steps written in the link?

TomBau

Message Edited by TomBaum on 05-22-2007 08:54 AM

0 Kudos
Message 5 of 11
(19,251 Views)
Hello Tom,

yes, it seems that my problem is now solved. At least I got the Sine Generator example vi running with the mentioned steps.

The SetVoltages example runs right out of the box...

Thank you again.

Best

Armin
0 Kudos
Message 6 of 11
(19,223 Views)
Hi Armin,

Let me see if I understand your project correctly. The LabVIEW project contains a target whose type is PXI-7831R, while you physically have a PCI-7831R board. Is that correct?

If that's the case, then should be getting that error -61024 when you try to run something from that LabVIEW project, because the device type of the physical board is different than the one in the project.

I assume that for fixing the error, you might have created another FPGA target in the example project (or a different project) of the PCI type and things are now working for you.

Anyway, glad things are working for you. Just wanted to clarify on what the main root cause for that error code is (different device type configured in the project than what is physically at the RIO address).

JMota
0 Kudos
Message 7 of 11
(19,108 Views)
Hi JMota,

Yes, you are right. In the Sine Generator example FPGA target is named "FPGA Target (RIO0::INSTR, PXI-7831R)".

In my running version I deleted the Target and made a new one, which automatically was named "FPGA Target (RIO0::INSTR, PCI-7831R)".

So this makes the difference, I think. As this is the first time I am dealing with the FPGA system, I just did not notice that point.

Anyway, in the MAX the type of the device is given as "PXI/PCI RIO", so I did not pay special attention to that because I thought that the PCI and thePXI card would be the same kind of target...

Best

Armin
0 Kudos
Message 8 of 11
(18,984 Views)
Armin,

As you have noticed, the PCI and PXI cards although they are very similar they are not identical, especially from within LabVIEW. From LabVIEW, the main difference between the two is that the PXI one has access to the PXI bus lines, while the PCI has access to the RTSI bus.


Anyway, in the MAX the type of the device is given as "PXI/PCI RIO", so I did not pay special attention to that because I thought that the PCI and thePXI card would be the same kind of target...


I will see what we can do for the next (or a future) version of NI-RIO to show the actual type of device and not the generic PXI/PCI text. Hope changing that will prevent future users from running into this confusion. Additionally, I have already filed a suggestion to see if the -61024 error could be more specific as to what actual target was found and what was expected.

If you have any more ideas on how to prevent users from running into this problem, do let me know. Thanks.

JMota
National Instruments - R&D
0 Kudos
Message 9 of 11
(18,504 Views)
Hi JMota,

the reporting of the actual device in MAX would be very helpful, I think.

Would it be possible that upon loading of the .lvproj of an example the system already checks whether the target device is present and a warning dialog opens?

Similar to the case when you open a vi that uses call library function nodes and the dll cannot be properly loaded you get a warning.

So in my case I would have gotten a warning the the target was intended for a 7831R-PXI device and a 7831R-PCI device was found.


Also the idea of a more specific -61024 is very good.

Thank you for your efforts!

Best

Armin
0 Kudos
Message 10 of 11
(18,488 Views)