Hello,
What would the script for "Save" the ctl file which is currently run?
The problem I have is as below ;
(1)We start up and shut down a ctl program every day where logging is carried out
in a sequence such as below:
logging.log.strFileName = "C:\DailyLog" + formatdateTime("%y%m%d",systime()) + ".csv"
(This line is run every 10 seconds.)
Closing the ctl file is carried out by "System.Quit()" command.
(2)The problem is, a log file is made at once when the ctl is started whose name does
not
correspond to today, but to the day when this ctl file was made.
(After the first log file is made, another log file with proper name
corresonding to today is created later.)
(3)I estimate the reason that the first log file is made before the sequence is run,
therefore made on the default information kept on the logging set.
(4)In order to test this hypothesis, I saved the ctl file by "Save",
then the newly saved ctl file stopped to create the log file with wrong name.
(5)Thererfore I think it effective for avoiding the problem above
to put in and run everyday a sequence where "Save" is carried out.
Thank you in advance.
- AzeoTech Forum
- → Viewing Profile: Topics: asaikk
asaikk
Member Since 09 Feb 2012Offline Last Active Nov 14 2012 12:16 AM
Community Stats
- Group Members
- Active Posts 48
- Profile Views 557
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
Contact Information
0
Neutral
User Tools
Topics I've Started
Script For "save"
12 November 2012 - 11:04 PM
Automatic sequence before closing ctl document
01 July 2012 - 06:39 PM
Hi,
In the project I am working on, I have a following requirement under the use conditions of 1) & 2).
<Use conditions>
1)The PCs where DAQFactory are installed are shut down every day after the daily work is finished.
2)A specific sequence (such as calculating the daily total value etc) is required to run before the shut down of the PC.
<Requirement>
Is it possible to run a sequence automatically before closing the ctl document, or maybe present on a screen a dialogbox to ask to run the sequence ?
If possible what would it be the script?
Of course it is possible to make a manual sequence, but automatic sequence is more preferable, as the workers may forget to run the manual sequence.
Thanks in advance.
In the project I am working on, I have a following requirement under the use conditions of 1) & 2).
<Use conditions>
1)The PCs where DAQFactory are installed are shut down every day after the daily work is finished.
2)A specific sequence (such as calculating the daily total value etc) is required to run before the shut down of the PC.
<Requirement>
Is it possible to run a sequence automatically before closing the ctl document, or maybe present on a screen a dialogbox to ask to run the sequence ?
If possible what would it be the script?
Of course it is possible to make a manual sequence, but automatic sequence is more preferable, as the workers may forget to run the manual sequence.
Thanks in advance.
Upgrading the UD driver
26 June 2012 - 08:22 PM
Hi,
On the other topic in the subject of "DAQFactory and the LabJack", I was advised to update the UD driver.
>Also, I see that you have a quite old version of the UD driver. Consider updating:
>
>http://labjack.com/support/ud/ud-setup
(Posted 22 June 2012 - 06:41 AM )
At present I do not find any inconvenience with the "old version of" driver,
so what would be improved by upgrading the driver?
Thank you in advance.
On the other topic in the subject of "DAQFactory and the LabJack", I was advised to update the UD driver.
>Also, I see that you have a quite old version of the UD driver. Consider updating:
>
>http://labjack.com/support/ud/ud-setup
(Posted 22 June 2012 - 06:41 AM )
At present I do not find any inconvenience with the "old version of" driver,
so what would be improved by upgrading the driver?
Thank you in advance.
Failure in reading input data
20 June 2012 - 06:18 PM
Hi,
On running a ctl document on the DAQFactory Express, I had some trouble in reading the input data.
Connecting a LabJack U3-HV to a PC through the USB, the program failed to read the input data.
I checked the status of the LabJack U3-HV, which is shown on "LabJack1.jpg".
Device No. is set "0" on the ctl document.
Then I reinstalled the LabJack, the status of which in shown on "LabJack2.jpg", and this time
the program worked fine, reading properly the input data.
Since the status of "LabJack1.jpg" does not seem to have any problem, I wonder what is the problem.
How should I understand the difference?
On running a ctl document on the DAQFactory Express, I had some trouble in reading the input data.
Connecting a LabJack U3-HV to a PC through the USB, the program failed to read the input data.
I checked the status of the LabJack U3-HV, which is shown on "LabJack1.jpg".
Device No. is set "0" on the ctl document.
Then I reinstalled the LabJack, the status of which in shown on "LabJack2.jpg", and this time
the program worked fine, reading properly the input data.
Since the status of "LabJack1.jpg" does not seem to have any problem, I wonder what is the problem.
How should I understand the difference?
- AzeoTech Forum
- → Viewing Profile: Topics: asaikk
- Privacy Policy


Find content