08-01-2017 06:53 AM
Hello,
I have some problem and I hope, that You will help me, because I don't know what to do 😞
At first, I write program for PXI where I read temperatures from Lumel P19 and depending on that I have to switch diodes one after one with some time period (to don't let one diode work harder than rest of them).
For example diodes should start working when temperature is higher than 30 dagrees and if one diode is lighting more than 5 minutes I would prefer to change it for another one.
The main problem is that if diodes work in the loop- temperature isn't measure.
I enclose photos of my main code and attempts of solution.
Kind regards,
Tomasz
08-01-2017 07:19 AM
Hi Lehmann,
          I saw your post, even i also don't know the exact answer which you looking here.. But, whatever i know i just sharing here...
1) First thing "why are you using Tick Count on your Connection??"
If you want loop running time means u can use "Elapsed Time", it'll be in the same time place where you picked tick count function..
2) Use shift registers on while loop for continuous data transferring like I/O..
This is what i got when seeing your attachments..
08-04-2017 02:50 AM
Hi!
From what i understood you want to turn on one of few diodes then wait and change it but do it only when temperature is outside of some limits.
My idea to do so is to use array of booleans, experss elapsed time VI and shift register.
I attached my code it might help you to solve the problem 🙂 What it does, it lights for time set in express vi one diode and then change it to other. If control Temperature out of a limit? is false all diodes will be turn off.
Regards,
Bartlomiej