LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simple application

Hello all,

 

I have a compact rio system 9014 with modules: 9217, 9203, 9205, 9263, 9264, 9474, and 9505. I am new to all these

how can i start programming the controller. can anybody upload or direct me to do a simple application that runs on the real time CRIO and send back values to my computer using any of the modules ( other than examples found in labview), which is the simplest mode of sending data back and forth from the controller. for example my application requires to send AO from one module to an heater instrument or such and read from the same instrument and AI to other module.

 

Thanks

0 Kudos
Message 1 of 4
(3,056 Views)

Hi freemason,

 

Good evening and I hope your well today.

 

Thanks for your post.

 

Have you got much experience with programming cRIO application including the FPGA?

 

What version of LabVIEW are you using? You could considering using the NI Scan Engine if you using LabVIEW 8.6 or later and you only require rates of upto 1kHz.

 

The easiest way to communciate between a Windows Host PC and the cRIO Controll is via TCP/IP in the form of Shared Variables. The NI Scan Engine publishes the data automatically as shared variables - which is another advantage of them. The biggest advantage is you don't have to program any FPGA code to use it .. and you can use it for one selected modules if you wish.  The 9014 does support Scan Engine, but you need a non 1 Million gate array backplane like a 9103. What do you have?

 

What were you issues with the NI Example Code? You should be able to combine a combination of them to create your basic application outline. You can have seperate FPGA loops for each task. You can use DMA FIFOs to communicate between the cRIO and the FPGA (Max of 3). So if some of your modules require the same rate, you could combine them into the same FIFO. Are you familar with FIFOs?

 

There is one big example in the NI Example - cRIO Data Logger, did you look at this?  

 

I have an example of Analog Input and Analog Output.. on my work machine, I can send this to use for reference if you wish?

 

Have you tried this so far, or are you planning that far? If you wish to discuss this further could you post what you hope to use the cRIO to do... and the tasks it needs to carry out? 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 4
(3,039 Views)

Thanks for the reply, I have 9104 backplane, i would want to use FPGA but i am very new to its programming in labview, so i would like to start with using only the real time CRIO.

i have 8.6, no issues with the examples but they have too many things that i am getting lost in, (except few).

i tried to build a stand alone application of RTnetwork communication.lvproj in network comunication folder of RT examples, i used build specifications of RT target and when done, i run the application but it is running on the host machine i guess, since its running even though im not connected to the CRIO (without crossover cable), and also how do i see the front panel of the RT application (how do i find if the application is running on the target).

 

i have few mass flow controllers, ultrasonic flowsensor, heater strip. i want to heat the strip using voltage A0, and also sense how much it is heated using AI of other module, i want this stand alone application to be running on the CRIO and occasionaly want to see the values on my desktop Front panel.

 

how can i use timed loops to my advantage in this issue.

 

Thanks

0 Kudos
Message 3 of 4
(3,027 Views)

Have a go at this document which shows simple steps to get started wtih programming a cRIO using LabVIEW using the RIO Scan Interface:

Getting Started with CompactRIO and LabVIEW

 

You should probably start with programming one module and then proceed to the next. Choose which one you want to begin with, follow the tutorial and, if you have any questions, post back with your project as an attachment and we can help you further.

Message Edited by Adnan Z on 06-03-2009 10:23 AM
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 4 of 4
(2,997 Views)