LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

search numbers from an array

Hai
     Pls help me how to do this,
My read CAN data is like this
       First frame -10 11 58 05 52 35 F1 52
Conse. frame 1 -21 04 E8 52 10 E8 56 11
Conse. frame 2 -22 E4 56 12 E4 62 11 E4
 i want to extract the red coloured numbers from the array.
 
Thanks
sk
 
 
___________________________________________
I am using LabVIEW 7.1 & NI PCMCIA CAN card
0 Kudos
Message 1 of 3
(2,408 Views)
Hello Sk

You should probably just use a forloop and check your array for the values you want.

I made a smal example. Hope you find it usefull.

Cheers.

//Beckman
0 Kudos
Message 2 of 3
(2,399 Views)

If instead you want to extract certain data bytes from each message, you should use the 'Index Array' function from the Array palette.

This will extract individual elements from the array as specified by the connected Index inputs. The image below shows the setup needed to get the elements for your First Frame.

Ed

Message Edited by Ed Dickens on 01-18-2007 07:57 AM



Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 3 of 3
(2,387 Views)