Jump to content

Run-Then Problem


GerryFr

Recommended Posts

I am trying to run a program that checks (with an IF Statement) for an X10 signal and that the Status of this program is False (not already running) . It is also set to run only on a scheduled time period (with an And). The THEN portion of the program will then will send some X10 commands (On and Off commands). The program triggers from the X10 commands, but it is not doing everything I expect from the THEN portion of the program. I am trying to run the THEN portion of the program to troubleshoot it. I want to do it without the time schedule stopping the program from running. I also do not want to have to delete portions of the IF statement to troubleshoot the THEN portion of the program. I find that the Run-Then Menu command seems to have no effect on the program. Is there something I must do to get this function to work?

Link to comment

Hello GerryFr,

 

It's very difficult to troubleshoot based on your descriptions. Here are my recommendations:

 

1. Open Tools | Diagnostics | Event Viewer (level 3)

2. Go to Program Summary, click on the program you are testing, then click on Run Then and then Apply

3. Make sure you checkout the traffic on the Event Viewer

 

If you ISY is actually sending the X10 commands, then the problem is that the signal is somehow getting lost and does not get to your X10 device.

 

Or, if you wish, you can Copy to Clipboard your program and then paste it here. This way, we'll be better able to troubleshoot.

 

With kind regards,

Michel

I am trying to run a program that checks (with an IF Statement) for an X10 signal and that the Status of this program is False (not already running) . It is also set to run only on a scheduled time period (with an And). The THEN portion of the program will then will send some X10 commands (On and Off commands). The program triggers from the X10 commands, but it is not doing everything I expect from the THEN portion of the program. I am trying to run the THEN portion of the program to troubleshoot it. I want to do it without the time schedule stopping the program from running. I also do not want to have to delete portions of the IF statement to troubleshoot the THEN portion of the program. I find that the Run-Then Menu command seems to have no effect on the program. Is there something I must do to get this function to work?
Link to comment

Here is my program:

 

If

X10 'E10/On (3)' is Received

And Program 'Chandelier Control' is False

And From 2:15:00AM

To Sunrise (same day)

 

Then

Send X10 'E5/On (3)'

Wait 5 minutes

Send X10 'E5/Off (11)'

Run Program 'Chandelier Control' (Else Path)

 

Else

- No Actions - (To add one, press 'Action')

 

 

I found the problem that I was having with the program was caused by another X10 controller. It was interfering with the program's ability to send the X10 Off command. Once I removed the problem X10 device, the program worked properly. The X10 device was controlled properly by the program. I still want to know how to use the Run-Then command as I will need it for troubleshooting other programs.

 

I have been expecting to get some kind of indication from the Administrative Console that the Run-Then portion of the program was running. (Although I have experience with writing computer programs, I am new to this device and am just learning my way around.) I tried running the Run-Then from the Browser Programs window and this window did indicate that the Then section of the program was running. I still did not get any response from my X10 device using this window.

 

You have already helped me learn about getting this feature running as I did not know you had to click the Apply button to execute the Run-Then command. It did not change the results, but if you know any other things like this I should be doing please let me know.

Link to comment

Hello again,

 

Thanks for the update.

 

The only time you will get an indication on the Admin Console is when Run Then is in a loop and thus its continually executing. Otherwise, Run Then will be executed so quickly that you might only see the status change for a fraction of a second.

 

Now, as far as this program not sending X10, please do try the Event Viewer to see if ISY actually sends the commands. This will be quite helpful in debugging.

 

With kind regards,

Michel

Link to comment

I assume I am still doing something wrong using the Run-Then command as I get no results for my programs in the Event Viewer. I have tried this on other programs with the same results. These programs do give the expected result in the event viewer when they run normally. I also used my Active Home Pro (AHP) unit to monitor X10 events and get the same results. I removed all of the macros in the AHP unit once I got the ISY unit working. I now use the AHP to monitor X10 statuses and to send out test X10 se

Link to comment

GerryFr,

 

I am assuming that you see some X10 traffic sent out from ISY when the programs run normally? If not, you might have a defective PLM.

 

Let's go through the steps:

1. Program Summary

2. Click on the row wherein your desired program is listed (highlight the row)

3. Click on the dropdown list and chose Run Then

4. Click on Apply

 

If this does not work, please do contact our tech support team so that we can figure out what's causing the issue.

 

With kind regards,

Michel

 

 

 

I assume I am still doing something wrong using the Run-Then command as I get no results for my programs in the Event Viewer. I have tried this on other programs with the same results. These programs do give the expected result in the event viewer when they run normally. I also used my Active Home Pro (AHP) unit to monitor X10 events and get the same results. I removed all of the macros in the AHP unit once I got the ISY unit working. I now use the AHP to monitor X10 statuses and to send out test X10 se
Link to comment

I monitor program results with the Event Viewer and with the X10 Active Home Pro (AHP) unit. It also has an event viewer and shows me the same signals on all X10 commands as the ISY-99i event viewer. Both viewers give me the expected signals with a normally activated program. They both give me no signals with the Run-Then command. The X10 devices that the programs control also show no response. The do respond to the normally activated programs.

 

Do not assume that I have all control options set up right with my unit. Is there some setup option that must be enabled to make this feature work?

Link to comment

Hi GerryFr,

 

This is quite odd. No, there are no setup options.

 

Can you tell me what's your ISY's firmware version and what URL you use to access your ISY?

 

With kind regards,

Michel

I monitor program results with the Event Viewer and with the X10 Active Home Pro (AHP) unit. It also has an event viewer and shows me the same signals on all X10 commands as the ISY-99i event viewer. Both viewers give me the expected signals with a normally activated program. They both give me no signals with the Run-Then command. The X10 devices that the programs control also show no response. The do respond to the normally activated programs.

 

Do not assume that I have all control options set up right with my unit. Is there some setup option that must be enabled to make this feature work?

Link to comment

I have tried both ways with the same results.

 

I just wrote this program and the Run-Then will run this program.

All the other programs have other conditions on the If portion of the program.

 

If

X10 'C16/On (3)' is Received

 

Then

Send X10 'H5/On (3)'

Wait 1 minute

Send X10 'H5/Off (11)'

 

Else

- No Actions - (To add one, press 'Action')

Link to comment

Hi GerryFr,

 

Run then should run regardless of the condition. If you have 2.7.0, that might explain the issue but it would be best if you called our tech support so that we can ensure there's no bug.

 

With kind regards,

Michel

I have tried both ways with the same results.

 

I just wrote this program and the Run-Then will run this program.

All the other programs have other conditions on the If portion of the program.

 

If

X10 'C16/On (3)' is Received

 

Then

Send X10 'H5/On (3)'

Wait 1 minute

Send X10 'H5/Off (11)'

 

Else

- No Actions - (To add one, press 'Action')

Link to comment

The results I got with my new test program led me to make changes to it to see at what point it would quit working with the Run-Then command. I found that the programs would not run with the programs enabled. Once I disabled the programs the Run-Then command would work.

Link to comment

Hi GerryFr,

 

This is not the intended nor designed behavior. I do not want to ask you to upgrade to 2.7.6 since it's still beta (although very stable). It would really be best to talk to have our tech support take a look at your system to ascertain where the problem is.

 

With kind regards,

Michel

The results I got with my new test program led me to make changes to it to see at what point it would quit working with the Run-Then command. I found that the programs would not run with the programs enabled. Once I disabled the programs the Run-Then command would work.
Link to comment
  • 8 months later...

I too have a problem with Run Then not working. I am on vsn 2.7.15 On a certain pgm if I do a Run Then, All I get in the Event Viewer is:

 

Sun 07/25/2010 12:37:15 AM : [ Time] 00:37:14 0(0)

 

Here is my pgm:

 

 

If

Folder 'Motzei Shabbos' is True

And Folder 'Yom Tov 1' is False

And Time is Sunset + 45 minutes

 

Then

Set 'Dishwasher' On

Set 'Stove' On

Set 'Basement Shabbos Relay' Off

Set 'Bookcase' Off

Set 'Basement Sh Lights' Off

 

Else

- No Actions - (To add one, press 'Action')

Link to comment

Perhaps I was unclear - what I meant was from the administrative Console, if I right click on a program in the Program Summary tab and choose Run Then, I expect the Then clause to run - period (testing), but if the program is under a folder that is False, it does not.

Link to comment

OK, so is this a known issue/problem? Is there a workaround - other than setting the folder to true (not easy if nested 2-3 folders), or moving the pgm out of the folder (a pain, cause then you need to remember to move it back)?

 

Thanks,

Steve

Link to comment

Hi Steve,

 

It is not an issue but a feature.

 

Best suggestion I have is to Copy the program and move the copy out of the Folder(s). Then experiment away! When the program is not in the folder you can Disable it and still use the Run If, Run Then, Run Else.

 

Rand

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...