06-21-2011 06:49 PM
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
.
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.
06-28-2011 03:14 AM
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... 🙂
08-08-2013 05:42 AM
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.
08-08-2013 05:47 AM
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.
06-20-2019 03:46 AM
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.
06-21-2019 12:17 PM
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!