LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DATA manipulation #2

hi everyone,
          my name is zhi. I have asked for help in privous post about data manipulation. I am still waiting for the other respond. however, i need to finish my porject within a week. So I really hope someone can help me to get the correct responds from the sensor.

i am geting the reading from the micro-epsilon sensor , ILD-1800. however, i cannot get a proper reading. i know this is because i am no manipulating the data correctly. Since this is my first time doing it. i have no idea which way is the correct way to.  Plus, no one i our school know how to do data manipulation in Labview. please help.

I have an screenshot , VI, and manufacture manual (please take a look at page 31) in attachment.
thanks in advance.


zhi
Download All
0 Kudos
Message 1 of 23
(4,660 Views)

zhi,

Your screen shot shows the incorrect result.  What kind of result were you expecting?

0 Kudos
Message 2 of 23
(4,652 Views)
Our expected value should be like 1.22222 mm. Although the manitube doesnt matter. The problem is when I place the gage block under the sensor, it reading keep fluctuating.  Even when I send a STOP command to sensor, it still keep outputing the data. This is what my problem is.


0 Kudos
Message 3 of 23
(4,644 Views)

I think I found the problem.  I have posted a picture of what your bit manipulation should look like.  When you convert a number to a boolean array, index 0 of the array represents bit 0 of the number.   You had this reversed in several places.

 

 

0 Kudos
Message 4 of 23
(4,635 Views)
You can do the bit manipulation without having to deal with arrays (aside from the initial one to get the 2 bytes):






Message Edited by smercurio_fc on 04-24-2008 02:06 PM
Message 5 of 23
(4,629 Views)

smercurio,

5 stars for some sweet bit manipulation!

0 Kudos
Message 6 of 23
(4,611 Views)
smercurio and centerbolt,
           For smercurio's solution,  I  do not know what function they are, such as fing the V16 in the function pellete, and other function.  can any of you help me with that?

sincerely

zhi
0 Kudos
Message 7 of 23
(4,604 Views)
Those functions are in the Numeric -> Data Manipulation palette. Attached is the VI of the example I posted. You can just copy and paste the code.
0 Kudos
Message 8 of 23
(4,601 Views)
Hi Zhi,

I'm guessing you're looking for the Join Numbers and the Logical Shift. 

I'll post some screenshots that show where they are.






Message Edited by pallen on 04-24-2008 03:46 PM
---------------------
Patrick Allen: FunctionalityUnlimited.ca
Download All
0 Kudos
Message 9 of 23
(4,594 Views)
Thanks for all your help.

I have try smercurio's VI,  it woks, but not the number I want. I am sure that the way you are tell me is correct. I am just wandering if i have confused or mix any concept in get the the data, can anyone take a look at the manual and tell me what happend? Please. Becuase my lack of knowledge. Thanks



since I am using the VISA serial read. I am wandering if the number of "Bytes read" matter  affect the number that we get ?


Message Edited by zhao.lin on 04-24-2008 03:01 PM

Message Edited by zhao.lin on 04-24-2008 03:02 PM
0 Kudos
Message 10 of 23
(4,588 Views)