Recommended Posts

Hi,

I have a huge application with multiple sequences and functions(sequences).

Now in the same application I want to add scheduling part(set value to a channel at certain days of the week).

Eg: User will select days of week and a time. I want to set a value to a channel when system clock hits the user selected day and time.

I am planning to do it with a sequence using while loop and waituntil function.

So, I wanted to know is it possible to run multiple sequences simultaneously in Daqfactory? 

I have one startup sequence currently, so after adding the scheduling part can I make multiple sequence to run at startup and keep running one in while loop without affecting other operations it is supposed to do?

Or is there any other efficient way I can perform an action for certain days of the week at a specified time?

Thanks!

Share this post


Link to post
Share on other sites

All sequences started with beginseq() or by selecting Begin Sequence run  simultaneously with other sequences and the rest of DAQFactory.  The exception would be sequences called as a function:

mySequence()

 

Share this post


Link to post
Share on other sites

That's what I wanted to know.

Thanks for the info, I can now see multiple sequences running simultaneously.

I have couple similar sequences which uses while loop to runs everyday morning at 1 am (waituntil(1h + 86400)) and waits until the user given time eg, 16h to set value to a channel and wait again until the next day for user inputted time. It is a simple sequence not doing much stuff.

So my question is what priority should I assign to such sequences running 24 hrs with other sequences and functions concurrently.

Thanks!

Share this post


Link to post
Share on other sites

You can assign them low priority.  High priority is for things that need to happen exactly when you want them to happen.  I'm guessing your schedule can be 1/2 a second late, so priority 1 is probably fine.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now