LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create an array of 16 * 16 with information that I read from the card

As Greg pointed out, you could use more shift registers to achieve it.  I guess you are new to LabVIEW, try to check out few NI Examples under Help-->Find Examples...  Hardware Input & Output --> CompactRIO-->DAQmx-->Analog/Digital Inputs.  This will give you some idea on how to use fetch data from singlechannel and multi channels.

 

NI Example Finder.png

--
Ajay MV


0 Kudos
Message 11 of 17
(1,597 Views)

Hi Ajay,

 

who's "Greg"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 17
(1,573 Views)

Oh, c'mon, it's a simple typo -- GerdW -> GredW (which makes no sense at all!) -> Greg ...

 

Bob Scorch

Message 13 of 17
(1,548 Views)

@GerdW wrote:

Hi Ajay,

 

who's "Greg"?


Oh.. sorry dude.. mispelled your name.. GerdW...

 

As Bob Schor pointed..

Oh, c'mon, it's a simple typo -- GerdW -> GredW (which makes no sense at all!) -> Greg ... Smiley HappySmiley Very Happy

 

-Ajay

--
Ajay MV


0 Kudos
Message 14 of 17
(1,522 Views)

I still can not understand how I'm building a 2-dimensional array 16*16.
Every time I read 8-bit data converts to a number, and I need to put it in the next  place in the array

0 Kudos
Message 15 of 17
(1,498 Views)

Hi Fnachum,

 

as has been said before:

- initialize a 16×16 array, store it in a shift register

- every time you read a new sensor value you replace one element in the array using the known coordinates and the sensor value…

 

This is very basic array handling in LabVIEW and you should have learned this by going through (free) online resources offered by NI and creating small VIs learn LabVIEW "by doing"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 17
(1,474 Views)

 


@Fnachum wrote:

I still can not understand how I'm building a 2-dimensional array 16*16.
Every time I read 8-bit data converts to a number, and I need to put it in the next  place in the array


16x16.png

 

This is what GerdW is getting at. It's a quick-n-dirty example to demonstrate what you need to do. I would run this and examine the code and modify as you see fit.

0 Kudos
Message 17 of 17
(1,465 Views)