02-05-2014 07:47 AM
Hi there,
i'm trying to get the dot product of a vector array of an SVD of differnt inputs (signals). But it only outputs NaN to me. The arrays are the same size and they are not empty but it still reads it. Can anyone help? 🙂
Kelly
Solved! Go to Solution.
02-05-2014 07:59 AM - edited 02-05-2014 08:00 AM
02-05-2014 08:05 AM
Hi GerdW,
Many thanks for the reply! That's it yeah I know its staring me in the face but can't figure it out. Would it be my RT data causing problems you think? I've attached 2011 versions of vis 🙂
kelly
02-05-2014 08:12 AM
Hi kelob,
to judge the possible problem you need to attach a VI with some real data embedded!
Run your VI until it shows some typical data in your indicators. Then stop it, select all controls/indicators, choose "set selected values as default" from edit menu (may sound similar, don't have an English LV version in use) and save your VI. Then re-attach it…
02-05-2014 08:22 AM
Hi GerdW,
I followed your instructions and attached. 🙂
Many thanks for your help!
02-05-2014 08:28 AM
02-05-2014 08:36 AM
Hi GerdW,
Apologies I forgot to attach that vi as well the last time. I have attached it here. Though it is only 3 simulated signals I have set up myself to work with as an exmaple for the time being as I have not recorded data yet. I am hoping I can find the dot product between my real time data array and each one of my arrays in the Footstep_trainingSet so I can decide whether the real time data can be classified as 'no event', 'tap' or 'bang' 🙂
Kelly
02-05-2014 08:49 AM - edited 02-05-2014 08:51 AM
02-05-2014 09:00 AM
Cheers gerdW,
I was looking for a reading of some kind all right but wasn't sure what i was looking for as there is no real help online for LabVIEW and is much different to text based.
Many thanks for your time it is greatly appreciated,
I shall restart it and hopefully won't read at NaN 🙂
Regards,
Kelly
02-05-2014 09:17 AM
You'll need to expand the number of decimal points you're displaying in your result- those components of the dot product are on the order of 10^-13.