News:

  • May 17, 2026, 04:41:56 AM

Login with username, password and session length

Author Topic: CTRIO reads from HEICCMRequest  (Read 55393 times)

mbelyus

  • Newbie
  • *
  • Posts: 2
CTRIO reads from HEICCMRequest
« on: September 01, 2009, 01:24:28 PM »
I have a CTRIO that I am moving the counter to V2200.  When I try to read the value @V2200 I get some odd readings.  I looks like I'm grabbing data in the middle of a write.  I am using the counters on a D06 and they read from from CT174 & CT176, but the reading from the H0-CTRIO is odd.  Do I need to check a bit to make sure that the transfer is complete? 

Thanks,
Matt

MikeS

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 261
    • Host Engineering, Inc.
Re: CTRIO reads from HEICCMRequest
« Reply #1 on: September 02, 2009, 09:50:10 AM »
if you haven't scaled the data from the CTRIO, the default is a 32-bit signed value - so the value from each counter channel will consume two consecutive V-locations.

if you've scaled the count in the CTRIO, then the value will reflect that scaled type, but still consume 2 consecutive v-locations.

does this help at all?

the values from the built-in counters in the DL06 are the same as the CTRINT module, so that's not the same format (16-bit BCD, i think) as the CTRIO.
Good design costs a lot. Bad design costs even more.

mbelyus

  • Newbie
  • *
  • Posts: 2
Re: CTRIO reads from HEICCMRequest
« Reply #2 on: September 02, 2009, 05:13:04 PM »
Thanks.  There's no scaling, but it was that I forgot to convert to BCD.   I did that and it worked fine.

Thanks,
Matt