04-16-2014 10:51 PM
hello!I have an array ,Assuming it has 100 values,it's Arbitrary, I want to insert values:
After two each in the array values to insert a value, such as 0 ,This has been the cycle continues until the end, Then get a new array,how should I do ??
Solved! Go to Solution.
04-16-2014 11:58 PM
Seems like a very simple problem. What have you tried so far?
04-16-2014 11:58 PM
04-17-2014 12:00 AM - edited 04-17-2014 12:28 AM
srikrishnaNF wrote:Please find the attached solution.
Please don't attach "solutions" until you have tested them. You code makes absolutely no logical sense. Ever heard about shift registers?
04-17-2014 12:23 AM - edited 04-17-2014 12:24 AM
@dfaweew wrote:
hello!I have an array ,Assuming it has 100 values,it's Arbitrary, I want to insert values:
After two each in the array values to insert a value, such as 0 ,This has been the cycle continues until the end, Then get a new array,how should I do ??
As a first step you need to describe the problem much more accurately.
If you have an array with 100 elements, do you (1) want to replace every third element with zero, keeping the array size constant, or do you (2) want to insert extra elements, making the final array 50% larger?
Here's a simple draft for case (2).
04-17-2014 12:52 AM
04-17-2014 01:29 AM - edited 04-17-2014 01:32 AM
srikrishnaNF wrote:I am so sorry as i have posted a wrong solution...I just posted another screenshot of block diagram.
Hope this helps you..
You are doing this way too complicated! It also looks very inefficient with the repeated array resizing operations.
Now try to do the same with 10% of the code!
(also please attach the actual VI instead of pictures. we cannot run pictures)
04-17-2014 02:05 AM