10-05-2009 08:28 AM
Hi. I'm using the NI9203 module to detect pressure, temerature and flow rate of water in a cooling system. I have 17 different inputs coming in therefore i'm using 3 NI9203 modules. I've used the example provided with labview as a base for designing my code. The example can be found here : Program Files\National Instruments\LabVIEW 8.0\examples\CompactRIO\Module Specific\NI 9203.
I've had no problems when testing this code out for a single NI9203 module but when i add code for 3 modules the code will not compile as my resources are over mapped. Is there a simpler way to program the FPGA code.
That said how do you go about calibrating the data that's received from the module. Preferably i'd like to write a vi to do the calibrating. Just need help on how to go about writing this vi
10-06-2009 01:13 PM
Hi havok,
Firstly, I would use constants to configure the modules, it'll save some resources on the FPGA. I'm not typically changing the settings on the fly, so using constants whenever possible helps. I would also take a look at the following KnowledgeBase article on other changes you can make to the FPGA VI to compile the code:
http://digital.ni.com/public.nsf/allkb/311C18E2D635FA338625714700664816?OpenDocument
The best changes you can make are to use fewer arrays and front panel elements. This can be done by using a DMA FIFO or constants on the block diagram.
Now actually calibrating the data will require you to do it on the host side. There is an example VI called Binary to Nominal that changes the raw data to something more useful for datalogging, display, etc. It can be found in some of the example VIs, or in the following link:
http://digital.ni.com/public.nsf/allkb/E86D8D460C4C092F8625752F00050A61?OpenDocument