LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a weekly event scheduler

BTW, if you create an elegant looking solution, why not post it back to the forum, so people who need it in the future will have what to base it on?

___________________
Try to take over the world!
Message 11 of 19
(2,091 Views)
I will certainly do that:)
0 Kudos
Message 12 of 19
(2,051 Views)
OK I figured out how to change the selector, but the color that is dropped in remains the old set:(
I do not see why this is though...
0 Kudos
Message 13 of 19
(2,051 Views)

That's because there are 2 different picture rings - one is the selector and the other is the array element.

In general, you should consider the fact that this was only a quick example and you should try to make it better. For example, you could use the picture control to create a much sleeker and cooler interface. You could implement code which will highlight the selection as you move the mouse and not just when you release and so on.

Also, I noticed that the click VI I attached was an old version which doesn't refer to the caption. There is a problem in 7.1 and above where you have to manually show the caption before you can control it with property nodes. You can get over this by setting the property nodes to ignore internal errors.


___________________
Try to take over the world!
0 Kudos
Message 14 of 19
(2,051 Views)
Ahhh i see. Thank you for your help. 😄
0 Kudos
Message 15 of 19
(2,041 Views)
Here is something you could do with a radio button in an array. If you have the DSC module, you could flatten this data structure to a binary string and write it to a memory tag. Or maybe save this data format to individual files for each day of the week/month.
0 Kudos
Message 16 of 19
(2,030 Views)
You can do some interesting formatting to the timestamp control that will let you select day of the year. This could be used as the index pointer to a daily array of bits.
0 Kudos
Message 17 of 19
(2,028 Views)
So I am trying to intigrate this into a master slave set up s that is what my system was already using.

The reason I am scheduling is to turn on and off a motor depending on its relay condition (motion detection). However, we want to be able to schedule that the motor never turns on sometimes, or reverse the condition (no motion vs motion).

So I have a master that is reading a signal on an ONTrack USB device. Depending on the timming the motor is activated or files are written or more data is displayed (every one has different timming conditions thus I went with master-slave setup).

My problem is that there is no way to take data from an even structure into this set up. I am guessing this is since the event structure is always waiting on its events. Therefore even if I setup the scheduler as a slave to my reading the USB device it still locks up the master.

Any idea how I can import the schedule into my master to determine what type of event is current (i.e. check the schedule if it is blue,red etc)
0 Kudos
Message 18 of 19
(2,001 Views)

If I understand you correctly, what you want to do is create an additional, unconnected loop. You should not mix things together. A UI loop should be used to receive UI information, not other stuff. To access the array from other places in your program you can create a local variable of your array by right clicking on it. This will allow you to have access to it.

This is a fairly basic concept in LV. How well do you know it?

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 19 of 19
(1,992 Views)