LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

pci bus access

ViStatus viIn8Ex(ViSession vi, ViUInt16 space, ViBusAddress64 offset, ViPUInt8 val8) <= viIn8Ex is in the documentation but I get an error when I attempt to used it. 

 

How do I access an external board on the PCI bus which uses a PLX 9656.  I want to access the local bus which starts at PCIBAR3?

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

ekatana, I have a few questions.  What is the error you are seeing?  Is there a code associated with it?  Is the documentation you are referring to the NI-VISA Programmer Reference Manual?

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer
0 Kudos
Message 2 of 5
(3,441 Views)

Error is "missing prototype".

 

viIn8Ex is listed in the help file.

 

Code snippet: 

 viIn8Ex(pxi9656, 0, VI_ATTR_PXI_MEM_BASE_BAR3, (ViPUInt8)myLoc); 

 

 

0 Kudos
Message 3 of 5
(3,435 Views)
it may be that you forgot to #include a file in your source ? maybe...
0 Kudos
Message 4 of 5
(3,408 Views)
You will need to add #include "visa.h" at the top of your .c file to reference the VISA library.
Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer
0 Kudos
Message 5 of 5
(3,386 Views)