Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

communicating with an HBM t12 torque transducer

Replica,

 

I'm sorry I missed your code in the last post.  I have taken a look and this is the preferred method limiting the CPU usage of a while loop.  However, in your case, it seems that this is causing a problem with the read.  Have you tried using Highlight Execution () to see how the data flow is going?  Does the problem happen with all values of wait (longer than 400 ms, or shorter than 100 ms)? For example, the 5 ms wait in the Default case of the case structure.  Does this cause the same problem?

 

If you are worried about the size of logfiles, you can always decimate the data in some other way.  One way would be to store the data in an array, then use the Decimate 1D Array.  Another would be to put the log function, and only record every 3rd, 5th, 100th, etc data point as below

.

t12.png                      t122.png

 

I would try to avoid having a while loop with no wait at all in it, as this will eat up a lot of your processor time, but if no other way can be found with this third party dll, the options above may provide some alternatives.

Drew T.
Camber Ridge, LLC.
0 Kudos
Message 11 of 16
(2,768 Views)

Drew,

 

We've made some progress on the matter.

 

We didn't get the broadcast method working so we took another look on the query method. Apparently the T12 is quite slow when updating the values. We just added some 150ms wait after the query to make sure the value is properly updated. Perhaps we'll come bask to the broadcasting methot when we get this one done.

 

Thanks for all the help.

 

Offtopic: Seems like our next project is also concerning timing problems... this time with two Keathley 2700s... Well, let's hope this one is a bit easier to solve... 🙂

0 Kudos
Message 12 of 16
(2,746 Views)

Hi,

 

I am also using HMB T12 to get torque and rotational speed via PCAN-USB. 

 

I tried your two examples, but as you said, I got similar issues with intermittently spiky data in speed / torque.

 

Have you finally got working VIs that you can share?

 

How to scale the raw-torque (speed) data to the actual torque data in unit of N.m (RPM)?

 

Thanks.

0 Kudos
Message 13 of 16
(2,450 Views)

Hi,  Do you have some working VIs to share?  I am also using a T12 (100 N.m range) to measure torque and rotational speed via PCAN-USB.

 

Do you know how to convert the gathered raw torque and rotational speed data to the ones in units of N.m and RPM, respectively?

 

Thanks.

 

 

0 Kudos
Message 14 of 16
(2,448 Views)

Hi,

Myself praveen

 

I am using NI 9862,  cRIO 9047 controller to read HBM data, I am facing issue on setting up the SDO address/index to read back.

NI 9862 supports XNET but the can open is not seems to be supported.

Is it possible to communicate with HBM T12 using Xnet interface?

 

Please advise.

 

Thanks in advance.

0 Kudos
Message 15 of 16
(936 Views)

Hello Praveen! 

 

It looks like this is a very old thread, it is more likely to get answers from the community if you create a new thread. You can always link this forum in your new post if you think it may add value to it. 

 

Regards!

0 Kudos
Message 16 of 16
(932 Views)