LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with dbl data to array generation

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. 

0 Kudos
Message 1 of 15
(4,714 Views)
Shift Register is what you should be looking at.
Thanks
uday
0 Kudos
Message 2 of 15
(4,704 Views)

 thanks for your help but still there is problem in array generation. 

 

0 Kudos
Message 3 of 15
(4,700 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(4,676 Views)

 

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.  

0 Kudos
Message 5 of 15
(4,672 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 15
(4,668 Views)

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.

0 Kudos
Message 7 of 15
(4,656 Views)

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!

check.png

Example: shift register with BuildArray in a loop...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 15
(4,650 Views)

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.  

0 Kudos
Message 9 of 15
(4,638 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 15
(4,635 Views)