08-07-2015 02:12 PM
I have a 1D array of digital waveform and I need to work with the data from it. I can't seem to get the "numbers" from it to work with any array function or any other type of function for that matter.
I need to be able to convert these so I can find a particular value in the array.
Thanks.
Solved! Go to Solution.
08-07-2015 02:14 PM
Have you tried getting the components..?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
08-07-2015 02:16 PM
Yes, all of the digital data functions don't work with the 1D array of digital waveform.
08-07-2015 02:22 PM
So... you're just trying to get inside the array? Use a For loop or an Index Array node.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
08-07-2015 02:23 PM
Please don't start new threads for existing discussions.
If you do it anyway, at least provide a link to the old discussion to prevent duplication of our efforts.
Thanks!
08-10-2015 07:40 AM
Now, is there any way to find the index when a value is 1 (as opposed to 0).
What I was trying to figure out here: it turns out the array is a 1D array of Digital Waveform not a boolean array.
08-11-2015 04:15 PM
Have you tried separating the array into individual waveforms using Index Array VI? You should be able to use the Get Waveform Components (Digital Waveform) VI on each wavefrom once you separate the array into its component waveforms. Then you can convert the digital waveform into a Boolean Array using the Digital to Boolean Array VI. You can then use boolean logic to determine when both waveforms output 1s.
03-04-2017 03:28 AM
Thank you James. I was facing the same problem and your reply was helpful.