chandrakant

how to create automatic folder in computer with daq factory?

Recommended Posts

we require below points-

(1)we have to create folder in my pc by daq factory.

(2)we already add the new recipe in daq factory but we have to also delete and edit option in scada for recipe.

(3)in recipe same name recipe add but we have to restrict it.

(4)we already add the choice in radio buton by script of addchoice.but we have to also delete option of choice in radio button.

(5)same choice also add in radio button but we have to restict it.

(6)in pritpdf option image not print we have to print it.

 

 

pls help me for all above points.

thanks

Share this post


Link to post
Share on other sites

1. You can use the file.makeDirectory() function to create a new folder.  Note that in newer releases of DAQFactory, the c:\DAQFactory folder is marked as read only for non-admins.  This is for security reasons

2+3) I'm not sure what you mean by recipe as DAQFactory doesn't have built in recipes per se.

4) you can't delete a single choice.  You have to remove all choices, then add all the ones you want back in.

5) you can restrict the radio button by processing the input.  I.e. don't have the radio button change the output directly, but rather have it change a variable or Test channel, then validate that value before sending it out.

6) correct.  This is why printpdf() is not an official, documented feature.  The logo must be in WMF format, or you can use the regular Windows print function and Acrobat Distiller print driver.

Share this post


Link to post
Share on other sites

That is fine.  You can assemble the name from a channel by simply concatenating values.  For example:

"c:\dataDir\myFile_" + myChannel[0] + ".csv"

 

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