03-23-2017 12:38 AM
I try to generate an array from double precision floating value, but after generation array through dynamic array generation only single value is continuous change, no any kind of continuous array produce.
I have attach vi. file please solve it.
03-23-2017 12:47 AM
03-23-2017 12:59 AM
thanks for your help but still there is problem in array generation.
03-23-2017 02:21 AM
Hi Vikas,
after generation array through dynamic array generation only single value is continuous change, no any kind of continuous array produce.
Yes, that's like it is - because YOU have programmed it this way!
Right after the SimulateSignal ExpressVI you convert the DDT wire to a scalar DBL.
What will happen when you would convert to an array of DBL here?
And even better: what would happen, if you would get rid of this ExpressVI and use some of those SignalGeneration functions available in the "Signal Functions" palette?
03-23-2017 02:36 AM
yes It is easy to generate array from ddt signal but I am try to getting arc tangent signal into array and output from arc tangent is dbl form in my design, so i am try to generate dbl signal into array.
03-23-2017 02:46 AM - edited 03-23-2017 02:49 AM
Hi Vikas,
so i am try to generate dbl signal into array.
This is pretty basic LabVIEW stuff: use BuildArray with a shift register or an autoindexing loop. (You already got the suggestion to use a shift register!)
Did you notice the "Getting Started" section on top of the LabVIEW board?
but I am try to getting arc tangent signal into array and output from arc tangent is dbl form in my design
Then why did you present a VI that has NOTHING to do with your real problem?
Btw. ArcTan() is a polymorphic function and accepts array inputs too…
03-23-2017 03:21 AM
Thanks for your help , I am unable to produce array through shift register as shown in vi. file please solve it and send me vi. file or any image of that.
03-23-2017 03:26 AM - edited 03-23-2017 03:35 AM
Hi Vikas,
there is no shift register in your VI. And I didn't suggest to add another FOR loop...
Please learn the LabVIEW basics: shift registers are such basic (and important) stuff!
Example: shift register with BuildArray in a loop...
03-23-2017 03:55 AM
sorry previous i attach with for loop now i am trying with shift register but still problem remain same, if some solution have to send me.
03-23-2017 04:02 AM - edited 03-23-2017 04:07 AM
Hi Vikas,
OMG!
What are you trying to do?
- you have a scalar value and you use ToDDT to create an array from this scalar value: why not use a simple BuildArray for this step? Why use bloated ExpressVIs for even the simplest steps?
- in the loop you put the array using BuildArray into a different array - without adding any new elements and so doing nothing else than "array:=array"…
- you run the loop 1000 times: so you do "nothing" (aka NOP) not just once, but 1000 times!?
- you still use a FOR loop - but I already told you you don't need that additional loop!
Compare all this nonsense with the snippet I added in my previous post…
And PLEASE learn the LabVIEW basics of using shift registers in loops!