LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CRIO FPGA Timing Loops - Which do I choose

I have a CRIO 9012

 

I will be be doing very basic voltage, mv, and thermal couple readings.

 

Data rate of once per second is to read the input is fine.

 

Modules being used - 9221, 9215, 9211

 

Also using a GPIB-RS232 converter via the com1 on teh CRIO,  this is being used to adjust DC load modules in an

 

Agilent N3300A DC Load Bank.

 

 

Test Plan

 

FPGA gets AIs,  feeds data to CRIO Host VI,  PC Host interacts with CRIO Host VI through Network shared variables.

 

Logging takes place on  PC  as PC also has a USB Elm compliant OBDII device that is polled to retrieve the trucks RPM.

 

 

Basically wondering what is the best timing engine for an app like this.

 

Thanks

Tim C.

1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 1 of 4
(3,361 Views)

Tim,

 

I'm exactly sure what you mean by "timing engine", but depending on what backplane you have, you can use the scan engine on your cRIO to do your data aqusition from your c-series modules. You can also very easily configure the scan engine to update at a 1HZ rate or use a timed loop that runs once a second with your scan engine variables in it and have your scan engine updating more quickly.

 

I would also reccomend having seperate loops in your Real-Time code for your different functions. By this I mean have a loop for your scan engine I/O and a seperate loop for your GPIB control.

 

On your PC Host Code, I would also reccomend having seperate loops for your I/O, Control, and Logging.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ben Sisney
FlexRIO V&V Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Message 2 of 4
(3,341 Views)

The FPGA wizard lets you select

 

Single Point Continuous Loop

 

Signle Point Timed I/O Loop

 

Buffered DMA

 

 

 

Thanks

 

Tim C.

1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 3 of 4
(3,314 Views)

Tim C.

 

Thanks for reminding me of the FPGA Wizard, I wasn't thinking about that.

 

You can generate all three timing engines in one VI with the wizard and inspect them to see which you like better. I would reccomend starting with the Single Point Timed as this will allow you to set the loop rate to 1HZ which isn't fast enough to warrant using DMA's. 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ben Sisney
FlexRIO V&V Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
0 Kudos
Message 4 of 4
(3,306 Views)