LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to modify the ni 9237 example code for 3 9237 modules

I would appreciate your ideas and help in modifying the ni 9237 example vi(for only one module) to three 9237 modules.

I have tried a number of ways, but they don't seem to work well.

 

Many thanks,

 

Enoch

0 Kudos
Message 1 of 6
(2,286 Views)

Hi Enoch,

 

We would be glad to help out. Can you please give me some more information?

 

1. What version of the 9237 are you using? (cRIO,cDAQ, USB, Ethernet, etc.)

2. What example are you trying to modify?

3. What version of LV do you have?

 

Thanks,

Carisa

Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(2,266 Views)

Thank you Carisa, for you reply!

1. I am using cRIO-9012, with a 9102 chassis

2.I am trying to modify the NI 9237 Getting Started.lvproj

3. LabVIEW 2010 version

 

Enoch

0 Kudos
Message 3 of 6
(2,255 Views)

Hi Enoch,

 

Try copying the loops on the FPGA. Hope this helps!

 

-Carisa

Applications Engineer
National Instruments
0 Kudos
Message 4 of 6
(2,231 Views)

I do not get what you mean, could you explain further?

Thanks

0 Kudos
Message 5 of 6
(2,225 Views)

The FPGA VI has a a while loop inside of the "Acquire Buffer" case.  This reads each channel on one module for a specified number of samples.  You will need to mimick this behavior for all three modules.  Carisa is right, one way to modify this would be to create a loop for each module. That will also require you to create additional fifos, which are a limited resource.  I would recommend simply expanding the elements being read.  There is the I/O node in the example where reading is done from Mod1/AI0:3.  You should expand this node to aquire data all your modules.  Then in the Host program you will have to modify your read from fifo method to match the number of data points you are reading in the FPGA VI.  

 

Let me knwo if this is clearer.

 

Ryan 

Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(2,214 Views)