Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 21, 2012, 08:30:16 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: CTRIO reads from HEICCMRequest  (Read 1264 times)
mbelyus
Newbie
*
Posts: 2


« 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
Logged
MikeS
Host Moderator
*****
Posts: 176



WWW
« 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.
Logged

Good design costs a lot. Bad design costs even more.
mbelyus
Newbie
*
Posts: 2


« 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM