From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert 1D array to scalar

Solved!
Go to solution

Hi Kedar,

 


@KedarGM wrote:

I have attached a file that converts all the data in an array to scalar. understanding this file would enable you to use the concept in your project.


Why do you need so many Rube-Goldbergs to do so?

  • The outer FOR loop is just the same as a ArraySize function!
  • The InsertIntoArray is just the same as BuildArray?
  • Why do you need to insert a dummy element?
  • Why do you need DeleteFromArray with this shift register? Why not use a simple IndexArray instead?
  • Why do you need DeleteFromArray/IndexArray anyway? Why not use autoindexing tunnels instead???
  • Why do you need an inner FOR loop to index one element?
  • Why is the indicator in the loop set to I32, when your array holds DBL data???

Simplified:

GerdW_0-1676875952082.png

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 12
(250 Views)

Thank you very much for the response. 

I thought only output from the loop can be scalar... 😛

 

 

0 Kudos
Message 12 of 12
(237 Views)