05-18-2006 10:38 AM
05-19-2006 11:43 AM
I have attached a couple of links that should be helpful. Let me know if you have any questions.
Using LabVIEW to read a 32 bit encoder
cFP-Quad-510 Operating Instructions
http://www.ni.com/pdf/manuals/323350b.pdf
Regards,
L. Allen
05-19-2006 12:03 PM
Hi Allen,
Thanks for the reply.
I can understand what it says in the link and the vi that you posted. But in MAX, seems like the Position 0-4 are already 32 bit reading I don't have to combine 2 16 bits channels to calculate 32 bits position. And I did a little practice, if I use Position 0 as a tag name, the reading is a number but not an array of 2 elements. So my questin is what the channel index the position 0 should be in this case.
Thanks allen.
Have a good weekend.
05-22-2006 04:54 PM
Hi Yahoo,
I am not really sure what you are asking here " what the channel index the position 0 should be in this case". Could you please clarify this for me? I looked at the example that Lon posted and it appears to be exactly what you are looking for. The FP Read VI will automatically convert all of the data for you.
Regards,
Hal L.
05-23-2006 09:30 AM
Hi Hal,
If I need position 0, Position 1, velocity 0 and velocity 1, should I know which channel index they are or tag name are enough? For my understanding, any tag name should be assosiated with a hardware channel, what hardware channel for position 0? if they are LSB and MSB, that should be channel 0 and channel 4 in FP-QUAD-510 operating instruction. How about if I read Position 0 directly not calculate from LSB and MSB?
THanks.
05-24-2006 06:56 PM
Hi Yahoo,
I believe that you're overthinking this one a little bit. Channel 0 and Channel 4 are in MSB and LSB respectively as you know. The FieldPoint driver and FP Read VI automatically combine this data for you, but this calculation still needs to be performed.
Regards,
Hal L.