Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Is NI-9142 RIO supports C ANSI Text-Based Code programming?

Hi,

 

I hope the question is clear enough from the title...

 

And I really hope for positive answer...

Tanx for advance (even for negative answer...)

Aviad

 

0 Kudos
Message 1 of 8
(5,894 Views)

Here is some good information on the matter:

 

'C/C++ Embedded System Design Tools'

http://www.ni.com/white-paper/14623/en/

 

 

~ Q ~

0 Kudos
Message 2 of 8
(5,731 Views)

Thanks  Queue-tip!

 

I guess I don't clear my self...

I want to build driver for the instrument that connected to the RIO chassis, e.g: I connect NI-9211 to the NI-9149 chassis and want to  read the outcome temperatures. With labView Its strait forward, Can i do it with C\C++?

 

Thankes again,

Aviad

0 Kudos
Message 3 of 8
(5,719 Views)

You can program the RTOS on a cRIO using C/C++ code (e.g. using the Eclipse). The FPGA on a cRIO must be programmed using LabVIEW FPGA. The following image depicts this information:

 

C_C+++Interface+to+LabVIEW+FPGA+v2.png

 

The NI-9149 is an expansion chassis meaning that is has an FPGA backplane but no controler runnng an RTOS. Thus, if I am understanding your question correctly, you cannot directly program the 9149 using C/C++.

 

~ Q ~

0 Kudos
Message 4 of 8
(5,699 Views)

Aviad,

 

The c/c++ api is very similar to the labview interfactace for a RIO device. You can open a reference to the FPGA reference of a remote target with the c/C++ api just as you would with LabVIEW. Once you install the C API for FPGA you should be able to create interact with a FPGA on the 9149 across the network. 

 

LabVIEW FPGA C Interface API

http://www.ni.com/download/fpga-interface-c-api-14.0/4946/en/

 

Here is an example. if you look at the notes for the nifpga.h you would reference the resource by rio://mysystem/RIO .

https://decibel.ni.com/content/docs/DOC-31772

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 5 of 8
(5,688 Views)

Thanks All!

 

I am little bit confuse Smiley Frustrated.

At that step of the project, I don't need the FPGA features. I only want to communicate with the modulus that connected to the NI-9149 Chassis, like NI-9211 or NI-9200.

Can I do it without the RIO FPGA?

 

Thanks for advance,

Aviad

0 Kudos
Message 6 of 8
(5,670 Views)

Aviad,

 

There is not c interface directly to the modules. They are all affixed to the FPGA so at some level the FPGA needs to be programmed to interact with the modules. 

 

What loop rates are you looking for?

Are you doing across network control?

Can you describe your application a little more?

 

 

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 7 of 8
(5,657 Views)

Hi Kyle,

 

In general description:

My system sample:

  • 12 channels of AD convertors (3 x 4 ports NI-9234) @ 24Khz
  • 12 Analog lines channels (16 ports NI-9220) @ 24 KHz
  • 4 channels of T (NI-9211) @ 1Hz
  • Servo Motion control via NI-9516 - Asynchrony

Thankes for the help,

Aviad

0 Kudos
Message 8 of 8
(5,650 Views)