09-10-2014 05:02 PM
jmejiagusmer wrote:Thank you. I wasn't aware that multiple shift registers could be placed on a single loop.
There are multiple shift registers in the loops in the example above. So what makes you think that would not be allowed?
09-10-2014 06:08 PM
You should not only combine the loops, but also combine all temperature measurements, etc. into arrays. No need to duplicate all code N times for N rooms.
Here's a quick draft.
Anyway, this is a pretty literal translation of apok's VI, but using arrays. Many things could be improved, for example if two rooms are out of range, only the first is shown, etc.
09-12-2014 01:18 PM
Thank you. This is pretty similar to what I was looking for. The only things that I need to do from here are monitor the temps on graphs, change the input to temperatures measured by the DAQ and sent over via ethernet, and find a way to log all the data. By the way, is there any way to still allow the user to view a certain tab on the tab control, regardless of which alarm has gone off? For instance, let's say room 1 and room 3 are both too hot and room 3 was the last one to switch over, would there be a way to still allow the user to view room 1 by simply clicking the tab? Thanks guys for all your help! I really appreciate it a lot
09-12-2014 03:36 PM - edited 09-12-2014 03:37 PM
@jmejiagusmer wrote:
By the way, is there any way to still allow the user to view a certain tab on the tab control, regardless of which alarm has gone off?
For that, you need to make the tab a control (right-click...change to control. currently it is an indicator). Now you need to disconnecti it and write to a local variable of the tab for programmatic changes. You probably should also use an event structure to monitor user interaction. For example if the user operates the tab or a control, the automatic tab cycling should cease for a while to allow user interaction without interference.