Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Skewing in a 2D array manipulation

I have an application that forms a 256 x 256, 2D array arrangement of data measurement points from a 1D array bin 256 elements long.I use a rotate VI to shift the incoming points in and predefined 2D arrays which is initialized to zero at start-up. I can't figure out that the 2D final output is shifted and skewed.Also, I simulate the data source from another loop and uses a Notification.VI for synchronizing the receiver and data source loops; a marker 255 is used to mark end and start of new data stream.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 1 of 3
(2,945 Views)
Hello Dr. Berns,

Thank you for contacting National Instruments.

I am not entirely sure what you mean by "shifted and skewed". I assume shifted means offset by X columns and skewed means not vertically in-line. Additionally, I am unable to run this VI because I am missing all of the IMAQ sub-VIs.
To correct your problem, look closely at your diagram anywhere you have "Replace Array Subset", "Rotate Array" and "Build Array" functions. Make sure these are performing as intended.
If you cannot get it to work, run the VI, set all values to default, and then save the VI.
Repost the VI with these input values and results and I will take a look at it.

Have a great day.

Sean C.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,945 Views)
Hello Sean, thanks. You were right about how arrays does its job, before this reply I had already figured out the bug in the code.First, is that you would'nt really like to have any time delay VIs lying around unwatched because they mess up synchronization VIs (Queues,Notifications)between deep nested loops.It is important to check which index to use for counting the element arrays, this was a key in the debug. The skewing of the bits has pointed to the consumer loop index not neing synchronized with the producer loop. Overall the array does its job only when indexed right probing tools has been very valuable for tracking the data elements.Attached is the screenshot of the actual project GUI.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 3 of 3
(2,945 Views)