LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build Array -You have connected two terminals of different types

Solved!
Go to solution

Hello, I am getting data from my vibration sensor using my USB cdaq 9171 and NI 9234. I want to display the vibration signal, save to a file , do all kind of possible statistics and display the statistics table on the front panel in update mode, attached is my VI based on some example in the example finder, it has an error, can any one help me to make it works. Many thanks in advance for your cooperation. Ihab 

0 Kudos
Message 1 of 10
(7,674 Views)

That's one of the reasons I hate dynamic data: Way too much packing material!

 

You are basically getting N scalar values out of the statistics express VI, but they are each shrink wrapped into a dynamic data container, which you autoindex at the loop boundary to create a 1D array of dynamic data, which you then build into a 2D array of dynamic data.

 

You simply need to convert the dynamic data to plain data and things will fall into place. Insert a "Convert from dynamic data" for each output right after the statistics express VI and select single scalar for the conversion.

Message 2 of 10
(7,663 Views)

Thank you for your prompt reply , you are right, I added the "convert from Dynamic" please find attached the modified VI.

But still need some fine tuning. Any more comment or suggestion to  modify it further? Thanks. Ihab

0 Kudos
Message 3 of 10
(7,624 Views)

@Ihab wrote:

 I added the "convert from Dynamic" please find attached the modified VI.


No, you added "convert to dynamic data", which is the exact opposite and makes no sense at all since the data is already dynamic.

 

Your entire program makes very little sense. How many time does the loop typically iterate? How fast does the loop spin? What do you actually want the program to do? How big should the table get?

 

Message 4 of 10
(7,619 Views)

I would like to see all the statistics of the signals in a tabular format and updated to the current value programmatically while keeping the first value on the top row as a Reference value. Thanks

0 Kudos
Message 5 of 10
(7,614 Views)

You actually have Convert TO Dynamic Data rather than FROM.

 

DDT to from.png

 

 

Lynn

Message 6 of 10
(7,613 Views)

Hello, I changed one more time , would you please check it. Many thanks.

0 Kudos
Message 7 of 10
(7,605 Views)

Thank you for your prompt reply, I changed it, but it still some fine tuning on the "transpose array" is causing the vi error, can any one help? Thanks . Ihab

0 Kudos
Message 8 of 10
(7,587 Views)
Solution
Accepted by Ihab

Change the Build Array to Append inputs rather than Concatenate.

 

Lynn

Message 9 of 10
(7,572 Views)

Thank you very much, it works fine now. Except it shows results of course after while loop finishes it deliver the results to the tunnel.

Thanks again. I am really appreciated. Ihab

0 Kudos
Message 10 of 10
(7,565 Views)