10-26-2013 06:22 PM
I have attached vi, but encrypt XTEA is a labview package. I am not sure how to attach that.
10-26-2013 07:06 PM - edited 10-26-2013 07:12 PM
You don't need to attach the subVI, it is irrelevant as long as it give the correct result.
Your use of the conditional terminal still seems wrong. You are wiring half the array size to N (seems right), but then you are comparing it with twice the iteration value. For example if the array is size 16, you want to iterate 8 times (as wired to N), but the loop will stop prematurely when 2 x [i] = 8, or in othere words [i]=4, i.e. it will only iterate 5 times. You don't need the conditional terminal!
You still use two index array nodes, only one is needed.
(... and please don't maximise all windows to full screen, it is annoying. There is not enough content to require that)
Do you have some documentation on the subVI? Are you running this on FPGA? Are you sure you are using it as intended (seems wasteful to pad all U8 values to U32, increasing the data structures 4 fold with basically hot air).
Personally, I would recommend the "reshape" solution posted earlier. Cleaner code and less clutter. 😄
10-27-2013 10:50 PM
I am planing on using the NI cRio to implement the code.
Documentation on the XTEA subcode: http://www.ni.com/white-paper/7520/en/
I am not sure what you mean by maximising, but I will look into.
Good point I will change it,so that it the previous solution. I added a conditional statement as a fail-safe.
10-28-2013 10:04 AM
"Maximizing" means the window is maximized to fill the whole screen. People like Altenbach who have large monitors or multiple monitors don't like it when what is otherwise a small VI blows up to fill the entire screen obscuring everything underneat.
Hit the middle button to "restore" the screen. Then size the window to be just large enough to show the front panel. Also be sure to put it towards the upper left of your leftmost monitor (if you have more than one). What I find more annoying than having a maximized window is someone who has the VI all the way off the right edge of my screen because they happen to use multiple monitors.