Sign in to follow this  

Can Beginseq use a variable as the sequence name?

Recommended Posts


I can use get this to work


however I would like to generate a sequence name - ie "site"+counter+"_Poll" and use that with Beginseq

I have tried execute Beginseq("site"+counter+"_Poll")

I have also tried mystring = "site"+Counter+"_Poll" which gives me




then beginseq(mystring) with no success

I think I'm close but I just cannot get the syntax correct to get it to call / execute the sequence

Can it be done?







Share this post

Link to post
Share on other sites

Yes, you'd have to use execute():

execute("beginseq(" + myString + ")")

beginseq() and a couple others are a little odd in that they take the symbol name of the sequence, not a string with the name.  Its a left over from very early DAQFactory.

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
Sign in to follow this