Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66905

Help with code! NI-9174, NI-9237, NI-9264, NI-9375

$
0
0

Hi All,

Please help! 

 

Goal:

To write a labview program that will control 4 oriental motors(4IK25UGV-UA) motors to run independently while reading torque data from 4 torque analyzers(BMX-50i). The torque wrench is a click type wrench. I need to be able to measure the peak value then count that as 1 iteration. To get the peak value I must compare the last reading with the next reading, if the value is increasing then the compared value will be used to compare against the next reading and so on until the value is decreasing in which case the last high value will be used as the peak value. Then when the readings drop below 50% of the target value it should repeat until the # of cycles has been reached. 

 

Status:

I am able to control the motors, but not independently. Unless I break my vi's up into 4 different vi's which I would rather not due. I can read from 1 analyzer at a time but when I try to read from 4. I get the resource has been allocated error. Please see example below and any help would be greatly appreciated.

 

Code:

 motor.PNGmotor controlsensor.PNGsensor reading


Viewing all articles
Browse latest Browse all 66905

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>