grendesb

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by grendesb

  1. Hi I got a start and a stop button that I'd like to be changing color when pressed. I looked at the examples available on your site but could not get it to work like i want. In the example, the button change color while you press put then go back to it's original color. What I want is that when everything is stop, the start button is green and stop button is grey than when you click on the start button that begins a sequence, it becomes grey and the stop button becomes red and vice versa. Thanks in advance
  2. At first, it wasn't working but now it is. Thanks a lot
  3. Yeah, your right, my mistake. I'm still not able to display more than one RPM. When I right-click on a "Variable Value Object", I got to write "period" to see some reading and it seems to refer to timer 0.
  4. Ok, I got some time to work on that project again. I'm able to measure RPM using two timers as configured in the example. I just realised that using this method I can't measure two different RPM from two different sensor. Which is the best option? Using the counters? Convert to voltage? Buy a UE9? Any other idea? Thanks Alex
  5. Yes I was getting that error too. Thanks for pointing me the reason of that error. I added a the following Config sequence and everything is fine now. AddRequest(ID,LJ_ioPUT_CONFIG,LJ_chTIMER_CLOCK_BASE,26,0,0)divisor (Counter0 not available) AddRequest(ID,LJ_ioPUT_CONFIG,LJ_chTIMER_CLOCK_DIVISOR,48,0,0) AddRequest(ID,LJ_ioPUT_TIMER_MODE,0,2,0,0) GoOne(ID) What comes next is to get data from my load cell. Thanks alot. Alex
  6. Thanks, I built a passive hardware debounce thing and tested it by running two anemometers on my car, I compared the readings got through the U3 and the debounce thing and readings got through the anemometers factory software and it looks to be fine. Only difference I can see is that the U3 is faster than the software. Now, since I succeded in getting RPM by modifying the example, I tried something from scratch by myself. I enabled a timer channel, copied the StartUp sequence from the example minus the line calling the config sequence and I copied the read sequence minus the lines refering to the counter. I also changed some value here and there so it would match the channel I'm using, FIO0. I can't make it work. Am I doing anything wrong. Is there any reasons for the eaxample to be "sequence based"? And is there any reason why the offset pin is set to 4? I attached my work so you can see. Thanks again to teach me. Alex
  7. What is the frequency range of your signal? From 0 to 25 Hz Over what time period do you want to measure the frequency? A single cycle, 1 second average, 10 second average? I'm not sure I understand that but lets sy that I want to see as soon as possible any change in speed so I should measure each single cycle. What is the duty cycle of your pulse and is it positive or negative? The duty cycle, I got no idea, I asked the guy that sold me the anemometer. As for the pulse being positive or negative, I dont know. If it can helps, I know that the switch is normally open and that I connect my switch to GND and FIO0 and the counter of the "U3_Counter_Simple" counts the pulses. Thanks again Alex
  8. Ok so to be sure I'm not missing something: I don't need any counter to get RPM, right? Thanks Alex
  9. Hi, Haven't looked much at the example attached above, seemed way too complicated to be what I'm looking for but I'll take further look. As for the bouncing, I'm reading 2 pulses for each revolution of my anemometer and I should read one. I'll look into that either. After sending my previous post, I tried something and I was surprised to see that it's working. The counter timing is set to 0.1s A sequence reset the counter every 0.1s: time 0 Device.LabJack.eGet(1,"LJ_ioPUT_COUNTER_RESET",0,1,0) delay(0.1) goto 0 That gives me revolution per seconds Besides lack in precision, what are the problems of doing it like that. Thanks a lot for answering my questions Alex
  10. Bringing that thread back to life, I just got my U3 and I'm trying to monitor rpm from an anemometer (reed switch type). I'm a mechanical guy and all that programming stuff is very confusing for me. After lots of trial and error, I'm able to count the pulses. I'd like some hints to continue my learning. What are the next steps to put thoses pulses into RPM Thanks Alex