NI Labs

cancel
Showing results for 
Search instead for 
Did you mean: 

C Interface to LabVIEW FPGA

    I tried running the C API genator again, the header file generated has the same signature constant as before, and CVI still can't load the lvbitx file. I will try recompile the FPGA VI to produce a different signature. But i  believe it may still not solve the problem since i have done that process before.

    In the NiFPGA.h, the description for the error code is 'The parameter to a function was invalid'. Do you know any other possible reasons that may lead to this error? Thanks

 

Regards

0 Kudos
Message 31 of 79
(10,306 Views)

Hi koutnym,

 

Thanks for the reply. It seems that the integer types defined in vxTypes.h are conflicting with those in stdint.h. vxTypes.h must be included before stdint.h, at least indirectly. I'm glad you got it working, though.

You actually should be using the vxworks-6.3 package, since the VxWorks kernel used by LabVIEW RT nowadays is version 6.3. You may run in to other problems, perhaps at runtime, if you continue to use the vxworks-6.6 package.

0 Kudos
Message 32 of 79
(10,296 Views)
Frank-Fang,

Have you ensured that the bitfile that NiFpga_Open is trying to open is not an older .lvbitx than you are now generating? If NiFpga_Open is trying to open an older .lvbitx with a newer signature (from newer headers), then you can run into this problem. If you're not sure which .lvbitx is being opened, try passing an absolute path to NiFpga_Open instead of a relative path.

I hope this helps!
0 Kudos
Message 33 of 79
(10,275 Views)

hi,

I plan to use the FPGA labview interface for our signal processing lab to get some experience with the software.

i have following questions:

1) the C interface allows programming the real time processor on RIO type system or does it allow programming the FPGA usin C?

2) if the 2nd option is correct, does labview have a mathsript type feature for writing HDL codes ,and using them direcly in labview with FPGA I/O incorporated in front panel,and programmed graphically?

thanks

sidharth

0 Kudos
Message 34 of 79
(10,102 Views)

sidharth,

 

1) The C Interface is for writing applications in C/C++ that run on the processor and interface with the LabVIEW FPGA VI running on the FPGA. It is not a "C-to-gates" feature.

 

2) The LabVIEW FPGA Module does have something called the HDL Interface Node, which you can read more about here: http://zone.ni.com/reference/en-XX/help/371599D-01/lvfpga/hdl_input_node/

Message 35 of 79
(10,083 Views)

hi

thanks a lot.just by chance, u have any information about such tool. i searched through xilinx DSP generator toolkit,and mentor graphics Catapult C. they dont serve the purpose

sid

0 Kudos
Message 36 of 79
(10,079 Views)

sid,

 

I don't know anything about such a tool.

0 Kudos
Message 37 of 79
(10,074 Views)

I like the C interface idea.

 

What development software is required to program NI-cRIO-9012 in C/C++?

I prefer to use C/C++ over Labview...but there not much information or support.

 

Why develop a C interface for cRIO....when C is not supported by the NI Developer Suite.

Are there any plans to futher support C in the future.

 

Thanks.

Message Edited by sparkymark567 on 06-30-2009 10:07 AM
0 Kudos
Message 38 of 79
(9,966 Views)

You need WindRiver Workbench 2.3 (or later) OR GNU Toolchain for VxWorks (see this tutorial).

 

The C API was created to give embedded customers another option when developing applictions for Compact RIO hardware. LabWindows/CVI is a great way to do this within an National Instruments environment.

 

The NI-Labs release of the C Interface has been very successful, and we expect to release this feature in the near future. Watch for an announcement in this forum.

 

Thanks for the feedback!

NI Software Engineer - RIO
0 Kudos
Message 39 of 79
(9,954 Views)
Thanks, I look forward to the release.
0 Kudos
Message 40 of 79
(9,944 Views)