04-06-2012 08:48 AM
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
Solved! Go to Solution.
04-06-2012 10:20 AM - edited 04-06-2012 10:32 AM
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.
04-07-2012 11:49 AM
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
04-07-2012 12:12 PM - edited 04-07-2012 12:12 PM
@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?
04-07-2012 12:40 PM
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
04-07-2012 12:41 PM
You actually have Convert TO Dynamic Data rather than FROM.
Lynn
04-07-2012 01:27 PM
Hello, I changed one more time , would you please check it. Many thanks.
04-07-2012 01:55 PM
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
04-07-2012 04:08 PM
Change the Build Array to Append inputs rather than Concatenate.
Lynn
04-07-2012 05:03 PM
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