08-23-2012 07:19 PM
Dear Forum members,
I have a cRIO and using RT to acquire pressure, temperature, speed and torque signals. I'm also using a shaft encoder of which one of its two channels gives 360 pulses per rev ( 1deg per pulse). I want to acquire another 2 pressure signals per every degree say for 2 to 3 revs. The problem I'm facing is, being inexperience in labview RT, that I'm not too sure how it is done. I have tried to search for examples and could not find any or may be I have not search in the right place.
I would be much aprreciated if you could guide me where to look for it. I have attached an image of the main part of the block diagram.
Regards,
Ash
08-23-2012 11:06 PM - edited 08-23-2012 11:07 PM
Are you asking about the logic to read the pressure transducer value? The speed you are reading is a calibrated value ( conevrted to Engineering unit - rpm)?
I see the configuration of your timed loop as 1KHz and the dt is 1000 so you are iterating the loop every 1 second, not a right approach. Since you have the RT controller you can go for 1KHz with dt = 1 without any problem. Also do not pass the error wire sequentially it may slow down your execution when you are going at a higher rate.
What is the max speed at which you will run? Any specific requirement of acquiring pressure/degree rotation?
08-24-2012 02:38 AM
08-24-2012 11:03 AM
Its bit tough one. See you are running at 6000rpm that means 100 revolutions per second and 0.1 revolution per itertation ( if your loop is running at 1 KHz) so for every iteration you will get 36 degrees at the same timeyou should have taken 36 samples of the pressure value. So in order to achieve this you need to run the loop at 40 KHz.
For torque if you run that much slow you don't need a timed loop. why you keep the loop idle for 900 ms?