IF-RIO

cancel
Showing results for 
Search instead for 
Did you mean: 

pci-5640R Config.ADC 0 Microport Address write error

I am trying to run the tutorial in the "Getting Started with the NI PCI-5640R IF Transceiver and the LabVIEW FPGA Module" document. I got everything set up, but when I run it, I get an error which says

"Error -61059 occurred at Read/Write Control:Config.ADC 0 Microport Address in Simple Spectrum Analyzer.lvlib:ni5640R ADC address_port_write.vi->Simple Spectrum Analyzer.lvlib:ni5640R ADC read_write.vi->Simple Spectrum Analyzer.lvlib:ni5640R ADC read_write (multi-byte).vi->Simple Spectrum Analyzer.lvlib:ni5640R ADC write_register.vi->Simple Spectrum Analyzer.lvlib:ni5640R ADC 01 - Chip IO Access.vi->Simple Spectrum Analyzer.lvlib:ni5640R ADC Global.vi->Simple Spectrum Analyzer.lvlib:ni5640R ADC Default.vi->Simple Spectrum Analyzer (HOST).vi"

I can't figure out how to fix it.
0 Kudos
Message 1 of 10
(6,632 Views)
I stepped through in the debugger and found that this write is the first access to the hardware through one of those Read/Write Control VIs.

I don't know if this helps or not.
0 Kudos
Message 2 of 10
(6,628 Views)

Hi

Can you try running one of the shipping examples to make sure there are no issues with the hardware?

Jerry

0 Kudos
Message 3 of 10
(6,626 Views)
I opened the analog input project and the host vi has several errors. They all seem to be of the form "You have two or more RefNums wired together, but the RefNums are of different types." They are all wires that should be hardware references. For example, right after the "Open FPGA VI" the FPGA VI reference out connects to the HW Exec Ref In in the Configure Timebase VI. This wire is considered to connect two different types so it appears to be broken.
0 Kudos
Message 4 of 10
(6,624 Views)

It may be that the FPGA Refernce has not been binded.  The issue was that the VIs need to be bound to the ni5640R FPGA VI Reference.ctl control.  This is an option on the popup menu when clicking on the Open FPGA VI Reference VI.  In some cases, it may already be selected in the popup menu.  In this case, unselect the Bind to Typedef option.  For good measure, I usually selected the FPGA VI to use with the host VI, and then I reset the Bind to Typedef option.  In most cases this should fix the ni5640R FPGA VI Reference.ctl control mismatches throughout the VI.  In some cases, I have to Save All, close the host VI and all subVIs.  Then reopen the host VI.  This has always working in all cases for me. 

Jerry

0 Kudos
Message 5 of 10
(6,622 Views)
OK, the FPGA examples work now, but I still get the same error for the spectrum analyzer example.
0 Kudos
Message 6 of 10
(6,619 Views)
I attached a zip of the directory with the project and all its files.
0 Kudos
Message 7 of 10
(6,614 Views)
I have that same error again in the examples now. I don't know why it disappeared for a while, but now it's back. Unbinding and binding again does not help.
0 Kudos
Message 8 of 10
(6,611 Views)
I just got the examples to work. I had to switch to an admin account and move all the files into the root directory. Is there some kind of restriction about file path lengths?
0 Kudos
Message 9 of 10
(6,600 Views)
The simple spectrum analyzer example works in the root directory too. I guess I'll just keep working in a directory with a short path name on an admin account.
0 Kudos
Message 10 of 10
(6,597 Views)