05-06-2009 02:39 PM
Solved! Go to Solution.
05-06-2009 02:43 PM
Any chance you could post your code? It would help a lot. An image would also be useful (.PNG format).
Thanks.
05-06-2009 02:48 PM
I have attached a .png file to this post.
05-06-2009 03:08 PM
Maybe you want to initialize the 2D shift regsiter in the second loop with an empty 2D array? (just right-click...create constant)
See if it makes a difference. ;;)
05-06-2009 03:15 PM - edited 05-06-2009 03:16 PM
I think you are usng way too much code overall. can you attach the actual VI?
For example:
05-06-2009 03:17 PM
05-06-2009 03:17 PM
05-06-2009 03:25 PM
I have attached the code. If you can't tell, I struggle a little with arrays. The data comming out of the instrument is serial with "n" length. I need to count and then reshape to a 2D array. The UUT test freq is only 1D x 1. the reason I used a shift register is so I get the test frequency appended to the end of each row of data. I like it this way. Are you saying I can achieve the same thing by indexing this data line? I will try. As for the reshape array, I tried many different variants, and finally settled on this. I could not get the display format the way I liked it using any other method. But I have attached the code, so if you could show me an easy way.... Kudo's.
Thanks,
T.
05-06-2009 03:50 PM - edited 05-06-2009 03:50 PM
05-06-2009 04:01 PM - edited 05-06-2009 04:02 PM
nw_4wheeler wrote:the reason I used a shift register is so I get the test frequency appended to the end of each row of data. I like it this way. Are you saying I can achieve the same thing by indexing this data line?
No, placing an array in a shift register and never modify it inside the loop is equivalent to just using a plain tunnel. (See image). both provide the same data at each iteration.
(while the code in general is of course bad, the two loops are equivalent).