07-28-2020 01:22 PM
Hello,
I am facing an issue, I hope there is a solution.
I acquieres datas from a pressure sensor via the DAQ assistant.
These datas are of the data type "dynamic data". Untill now, I could use the math functions with them without any problem (multipliy them by 2, etc)
problem is : now I need to use shift register and math operations between them, and I have this error :
The type of the source is Dynamic Data.
The type of the sink is double [64-bit real (~15 digit precision)].
I jointed my code, you can see the error in the bottom of the block diagram
Does somebody knows how to fix that ? Like converting the dynamic datas into numerics ? I tried the unbundle function, doesn't work
07-28-2020 01:38 PM
This is one of the reasons I HATE the DAQ Assistant and the accompanying Dynamic Data Type. The DDT abstracts the data type and makes it extremely easy to confuse the data. I recommend you immediately turn the DDT into either an Array of Scalers or a Waveform. Then when you trace the broken wires, you will find that you are mixing scalers (single values) and arrays/waveforms.
07-28-2020 03:23 PM
Thanks !
I can convert it to array yes, but why not into scalers directly :
like this :
I can only take trial in 2 weeks, will it work you think ? with a continous acquiered signal ?
07-28-2020 08:46 PM
Is there a reason you are collecting 100 samples at 1kHz rate, but only care about 1 value?
Do one of these three things.
1. Try 1 sample at a 10 Hz rate.
2. Use a From Dynamic Data Type which is an express VI you can configure to give you an array. Then average that array.
3. Use a From Dynamic Data Type which is an express VI you can configure to give you a scalar.
05-31-2023 12:43 AM
Did it for You? I have the same problem
05-31-2023 12:31 PM
Hi Sr_Zaragoza,
I tried to fix it. Check out the attached code.