ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Replace Array Subset (PXI-7813R)

Hi All,

Thanks for taking the time to read this post.

I have attached a picture of part of a VI I am currently working on.

I am having a problem with the Replace Array Subset function in the middle frame on the flat sequence structure. I initialise a 32 bit array of Booleans (all set to true) in the first frame of the flat sequence structure. I would like to replace the elements of this array with the values FPGA I/O probe "data_out" on the negative edge of the clock. This occurs in the for loop. Each time a bit is replaced in the array the previous replaced bit is set back to the initialised value from the first frame of the flat sequence structure. Is there a way to stop the replaced bits being reset to their initialised values?

Keep in mind this is for a FPGA target.

Thanks,

Michael.
0 Kudos
Message 1 of 3
(3,409 Views)
You're using the original array each time. If you want to use the modified array you should use a shift register to pass the array through the loop instead of tunnels.

___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(3,383 Views)
Hi tst,

Thanks for the quick reply, it was most helpful : )

Regards,

Michael.
0 Kudos
Message 3 of 3
(3,375 Views)