LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquiring 24bit digital samples + Conversion to scalar

Ha!  Thanks for catching that, sometimes you get so wrapped up in your own head...

 

The "Is Not Equal To Zero", of course, converts non-zero data to boolean TRUE.  The NOT operator was included because I realized that my RS422-to-TTL converter inverted the data.

 

I'll go back and replave both with "Is Equal to Zero".  Nice catch.

0 Kudos
Message 11 of 15
(1,091 Views)

James.Morris wrote:

Why do you suggest only reading 24 samples at a time? Wouldn't reading a larger chunk of data and then processing it in a parallelized For loop be faster?


Producer/Consumer  In other words, have this loop read the 24 bits and then send it off to another loop for processing.  It saves some of the array manipulation (1D to 2D function).  And you can't guarantee the parallelized FOR loop since that does add overhead.

 

But here is also another possibility for the conversion.  Since you already have U32s, just shift the data by the bit number and add.  This will save the whole conversion from U32 Array to Boolean Array and then to U32.  Not completely sure if it is more efficient as I have not ran any benchmarks.

 

 

Also note that I have a wait in the FALSE case of that case structure, so that loop is not greedy.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 15
(1,068 Views)

I'll give that a shot.  Note:  For some reason the DAQ is returning U32s that are either ZERO or TWO, so I would have to account for that.

 

This looks like an excellent FPGA solution, not sure if the i7 architecture can't do better with the matrix operations though.

0 Kudos
Message 13 of 15
(1,057 Views)

@Jed_Davidow wrote:

For some reason the DAQ is returning U32s that are either ZERO or TWO, so I would have to account for that.


That seems strange to me.  But if that is what you are getting, then you could just do the shift by i-1.  Simple fix.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 14 of 15
(1,042 Views)

use array resize icon and resize it to 2d array with 24 column  and continuous row 

0 Kudos
Message 15 of 15
(1,018 Views)