Saving data at a fixed interval
Currently I have my block diagram set up so that after every n number of loops, the data will save. I'm using the remainder function and case structure for this, and while this works I want to make it save at certain time intervals instead of loop. I've tried using the remainder function with several timing function but it doesn't seem to work because the data flow isn't continuous. What timing functions are useful for this situation? Should I still be using a case structure?
Thanks
Depending on how much data you are saving you may want to use a parallel loop for writing the data. this will allow your regular processing to continue and not be delayed by the file write. As for which timing method to use I would use the Get Time VI and test the time against your desired interval. The express vi elapsed time would be a good place to look at how this could be done.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Similar Messages
-
Report prints Saved Data not Refreshed Data
We were running VS 2005 and using the Basic CR 2005 Basic that comes with it. We upgraded to use CR 2008 and found MANY issues after we went live in production that were apparent in the development. This has caused a lot of stress with us as well as our users. Iu2019ll summarize everything we found, possible workarounds and the open issues including the Printing/Loading of Saved Data.
First, it was reported that printing changed. It turns out when PrintMode = u2018PDFu2019 (default setting) it now asks after you choose u2018EXPORTu2019 (use to be u2018OKu2019) that it asks to Open or Save the Adobe. When our customers were running 20 some reports at a time and we had hundreds of users, this became a nuisance for the heavy reporting users and a training issue in general for us. With research, I found that we can change the PrintMode to be u2018ActiveXu2019. This was much better when we were testing. However, in Production it became a nightmare. If the user is on a Domain that disallows itu2019s user from installing software or if the user has tight security settings, this became a nightmare.
The second thing reported was that it was exporting to the wrong format. It was exporting into RPT format. It turns out with CR2008, it automatically defaults to RPT and the new pop-up, doesnu2019t isnu2019t clear to the user they even have a choice (the pop-up is much prettier, but it doesnu2019t look like a dropdown anymore). In addition, they reported it was taking twice as long to export (we think it was related to export file type now). With CR2005 Basic, it would have no default selection and if the user didnu2019t pick one, it would remind them they need to pick one. After much research, I found there is no way to customize the operation of the export without writing my own export. My users 90% of the time want to export to PDF and Excel the rest of the time. Since we arenu2019t using a CR Server like product, they NEVER will do RPT. There is no way with CR2008 to limit this list or to default the File Format. So now, if they forget to select the type, they get the wrong file format instead of being reminded to select one. Since the new pop-upu2019s dropdown selection isnu2019t easily apparent, this was a BIG issue for us. Since I have close to 300 reports on 7 websites, this will be a lot of work for me to write my own code and change all the ASPX page to use my own control.
The third thing reported was that the default name on Exporting was changed. Export uses the ID property of the Crystal Report Viewer as the default name of a file on export. When it replaced the viewer on all our pages, it set the ID to CrystalReportViewer1 instead of preserving the original ID. We now have to go back and change them to what we wanted manually. BEAWRE of this! For our power users who wanted to export 40 reports they now have type the name in manually on all of them. What took minutes now takes over an hour for them to do, until we can fix all the pages.
Now it was reported that some reports are showing OLD data. It turns out there shows Saved Data from design time. In our site, we have a parameter page which getu2019s user selected parameters, save to a session and then load the report page using the session variables, and then redirect them to the report page which on page load we set the reports parameters. We use the CrystalReportSource using ODBC. The report has all the connection information. Well if the user happens to select the same parameters I used at design time, it wonu2019t pull the data from the database. They see our test data instead which is garbage. If they select different parameters, display the report and then go back and select the original parameters, they will get the correct data. This can be catastrophic for us! So I added at the beginning of the Page Load before setting parameters the following:
If Not Page.IsPostBack Then
CRSServiceAlertsReport.ReportDocument.Refresh()
End If
This seemed to work. A pain to add on every report page though when it wasnu2019t necessary before. But then I just got called this morning and they say when they print, it prited the OLD data. It seems the refresh pulled new data and updated the display in the viewer but the ActiveX print still used the original Saved Data! I couldnu2019t find a solution for this. I found switching PrintMode back to u2018Pdfu2019 worked but now I have the extra click issue again, which I described above. I tried setting the reports u2018Discard Saved Datau2019 option but it still had the data!
In the end, had I known about all these issues I would have NEVER upgraded to CR2008. Iu2019m still looking for help on getting by the following:
u2022 Stop using Saved Data at runtime (either on Display or Print)
u2022 Getting the PrintMode=u2019Pdfu2019 to just pull up Adobe in Open mode without prompting the user.
u2022 Remove File Type options from Export
u2022 Set the default File Type options to nothing or something I want.
Another nice feature to have would be the ActiveX control for printing to be part of the .NET Framework so users donu2019t need to download it. Come on BO is a big company Iu2019m sure they can work with MS. What is that method to clear Saved Data; I looked and couldn't find it. I never had to call one in the prior version of CR 2005 Basic in .Net. With the .NET controls, it always refreshed the data before. This is a change in behavior for me.
As for the Print using Adobe, with CR2005 Basic, it didn't prompt the user to Open or Save before. This is new behavior. It used to just open the report in Adobe in memory before without this specific prompt (it did have the first prompt for All or specific pages, but it would just open after that). This is a change in behavior from prior versions and it has caused me several issues.
Many users don't like change and I didn't know to communicate this to them. They were taken by surprise. We'll learn to live it I guess, but I would ask you just to consider, why have an option to "Save" to PDF when you choose to print? I would think you would use Export if you want to save. It would never hurt to add an option to allow alternatives either.
As for including with .NET Framework, it was just an idea. I know how hard it can be working with third parties. However, given that CR Basic comes with it, I thought it may be possible to work with them. The better the integration the better the product is for the developers. I was thinking the button could call JavaScript/Java to print instead of an ActiveX, or some other method. Since I donu2019t know how the Control works, I couldnu2019t say. It just would be nice. I had a smiley face after that request, it didn't come out right when I saved the post.
I still don't understand why .Refresh will update the data in the viewer but printing using the ActiveX Control will still print the saved data instead of refreshed data. Since I never used this in the prior version I don't know what it would of done or not, but it just doesn't seem right it shows one set of data, and prints another.
In addition, why the designer still saves data with the report when you state not to, I think may be a problem still.
Edited by: Thomas Johnson on Nov 21, 2008 12:26 PM -
Customizing tables not asking for Customizing Request while saving data
Hi,
I have some customizing tables in my development server (Delivery Class = 'C').
These always used to ask for a Customizing Request whenever data was saved in them.
Suddenly, I have noticed they are no more asking for any Customizing Request. I cross-checked in the Transport Organizer and confirmed that there are no customizing requests of mine which may be already holding any data entries of these tables.
I wonder why this may be happening (believe it to be some basis configuration issue. also asked my basis guy but he has no clue).
Kindly suggest.
Thanks,
ZThanks Navneet and Gautham.
My problem is now solved. Let me summarize the problem and the solution now.
-> The customization tables suddenly stopped asking for a request while saving data.
Somehow the settings had been reset, and as Gautham pointed out, it was corrected in the tcode SCC4
-> Most of the tables now worked fine, but still few of them didnt ask for requests
Here, I found out that the developers had chosen "no, or user, recording routine" instead of "standard recording routine". For such tables, when i check in the tcode SE54, menu path Environment -> Maintenance Objects -> Change, I find the Transport category 'No Transport'. Regenerating the maintenance generator choosing "standard recording routine" fixes this and the tables now ask for a customizing request.
Thanks, both, for the quick response. -
I need to restore my ipod touch. I do not have access to my primary computer. I understand i will lose all saved data on my ipod touch. I have the latest vesion of itunes. I have a mac. Itunes does not recognize my device. What do i do?
Fix what?
You do not mention a problem. -
Crystal report reverts back to saved data after drill down
Hi,
I've created a crystal report and published it to BOE. Whenever I open the report and refresh it, it fetches recent data without any problem. But when I drill down in the report, it shows the saved data instead of showing the recent data in the drill down. If I come back to original report from that drill down again it reverts back to saved data. Again I've to refresh the report to view the recent data.
Any idea how can I fix this?
Regards,
SanjayHi Sanjay,
Please do post this question in the BusinessObjects Enterprise thread BI Platform
The peoplt there would be the best people to answer your query.
Hope this helps.
Regards,
Jay. -
IOS updates overwrite saved data?
Hi, I've started receiving a steady trickle of complaints from iOS users who claim that updating my game overwrites the saved data they had (I'm using SharedObject). Does anybody else have any experience of this or can imagine why it would be so? I'm not sure what I can do about it myself, as it's the Apple device that does as it wishes with files whilst "syncing"!
You possibly updated from AIR 3.4 to AIR 3.5. The issue has been fixed in AIR 3.6. More details can be found in the blog post https://blogs.adobe.com/airodynamics/2012/12/10/changed-behavior-of-shared-object-on-ios-i n-air-3-5/
-
LineChart: How to have fixed interval on X-axis
Hi All,
I am flex newbie. I am trying to figureout how to have fixed interval (say 7) of X-axis in a LineChart. I have tried AxisRenderer, CategoryAxis and DateAxis to no avail. Can you refer to an example or a snippet which would help to resolve this problem.I have pasted my code here below. Thanks in advance.
<mx:LineChart
id="DOLoginGraph" dataProvider="{doLoginGraphData}" paddingTop="10" width="100%" height="100%"
showDataTips="
true" backgroundElements="{gridLinesDOL}" >
<!-- vertical Value axis -->
<mx:verticalAxis>
<mx:LinearAxis baseAtZero="true" maximum="40" interval="10" />
</mx:verticalAxis>
<!-- Horizontal Date axis -->
<mx:horizontalAxis>
<mx:CategoryAxis id="horiDateAxis" categoryField="date" />
</mx:horizontalAxis>
<mx:horizontalAxisRenderers>
<mx:AxisRenderer placement="bottom" axis="{horiDateAxis}"/>
</mx:horizontalAxisRenderers>
<!-- Series -->
<mx:series>
<mx:LineSeries yField="value" showDataEffect="{chartEffect}" form="curve" displayName="Open" >
<mx:lineStroke>
<mx:SolidColorStroke color="#32cd32" weight="2" alpha=".8"/>
</mx:lineStroke>
</mx:LineSeries>
</mx:series>
</mx:LineChart>LinearAxis:
// interval
* @private
private var _userInterval:Number;
[Inspectable(category="General")]
* Specifies the numeric difference between label values along the axis.
* Flex calculates the interval if this property
* is set to <code>NaN</code>.
* The default value is <code>NaN</code>.
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
public function get interval():Number
return computedInterval;
* @private
public function set interval(value:Number):void
if (value <= 0)
value = NaN;
_userInterval = value;
computedInterval = value;
invalidateCache();
dispatchEvent(new Event("axisChange")); -
Error while saving date value in Java dictionary
Hello Everybody,
I got following error while saving date value in one of the fields of the Java table.
Internal error occured in submit request: Error in method updateRequestContact : The object of type java.sql.Date with the value '2005-12-04 08:00:00.0' assigned to host variable 9 is not normalized. It must not contain time components in the time zone running the virtual machine.
I can't find why it is taking time value in the date object.
This value is coming from the RFC as a date value, and I am saving this value in Java dictionary table.
Same code for this was working fine earlier. But, now suddenly it gives error like this.
Even if I provide date on the screen from webdynpro application, this date value can't save in the Java dictionary and gives same error.
What should be the problem behind this?
Regards,
BhavikHi Satyajit,
I am getting date value from the screen of the webdynpro application from date picker control and passing this value in Java dictionary.
More Information:
I have dat value in the Date object: <b>target_date</b>
But Now I have made new Date object as following:
Date target_Date1 = new Date(target_date.getYear(),target_date.getMonth(),target_date.getDate());
Then I am passing this object to Java dictionary. Still it gives same error.
Then I have changed code as following:
int l_year;
int l_month;
int l_days;
l_year = target_Date.getYear();
l_month = target_Date.getMonth();
l_days = target_Date.getDate();
Date target_Date1 = new Date(l_year,l_month,l_days);
Now it works for me.
But I guess this is not the perment solution. It looks very strange. I have used so many date objects at various palces. So, this solution is not the final for me.
I want to findout the main cause of it.
One more thing: This code was working for a mornth or two. But, now suddenly it is giving this error.
Please help me if anybody knows.
Regards,
Bhavik -
Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013
Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013
Newform.aspx of list:-
Custom List is not saving data sometimes in the new form after 15 minutes and only blank entry record got created without saving data, even though some columns are mandatory fields?Hello dcakumar,
Sounds like a strang issue. If you can reproduce this can you see some errors in the ULS logs?
- Dennis | Netherlands | Blog |
Twitter -
hi all.
I have an issue regarding saving data from alv to data base table.
The problem is like this. I have an internal table consist of 10 column from three diferent tables.one primary key is there.
now i have displayed it in alv grid. there is a column of quantity. i made some changes in quantity of some rows. now i want to save it into the database table from which that quantity field fetched.
i used first check_changed_data method. if the flag is set it means data is changed.
wat shud i do to save that quantity column into data base.
Thanks In advance.
varuHi,
<b>To modify database or ztable from the ALV grid,you need to do the following:</b>
---You have to modify the field Catalog fields (fields that you want to make editable).Set the field <b>EDIT as 'X'</b>.For example if you want to make the field below editable:
ls_fcat-fieldname = 'CARRID'.
ls_fcat-edit = 'X'.
APPEND ls_fcat TO pt_fieldcat.
---Call the method below before you call the set_table_for_first_display.
CALL METHOD ALV_GRID_INSTANCE-><b>set_ready_for_input</b>
EXPORTING
i_ready_for_input = 0. ( For Display ) and ('1' for Edit )
After this put the set_table_for_first_display.
<b>Now if the ALV data has changed,and you want to change the database or ztable,then in your pf status give a function code for SAVE button in the GUI.
In the PAI of the screen,in user command module write the following:</b>
WHEN 'SAVE'.
<b>call method gr_alvgrid->check_changed_data</b>
importing e_valid = l_valid.
if l_valid = 'X'.
<b>MODIFY spfli FROM TABLE itab_spfli.</b>
endif.
<b>(l_valid is a flag.</b>
DATA:l_valid type c.
If you want to check if the user has entered any value on the grid, use the Method : CALL METHOD gr_alvgrid->check_changed_data.
This method returns a flag l_valid which can be checked to see if the data on the ALV grid has been changed or not.)
Regards,
Beejal
**Reward if this helps -
Report generation is saving data to a word template
I created a template for a program to write test result data when prompted by the user. My problem is that after the template is written to and closed it's asks if the new data shoule be saved. I don't want to give the user that option because it actually saves it to the template not a document, and when another test is done and report is requested, it doesn't write over the data fromt the previous results, it adds to it. Is there some sort of Word security option or a vi that might be helper to prevent users from saving data permanently, to overwrite previous data?
Harene,
The ActiveX call to Quit comes with a parameter to Save Changes (T or F). I would suggest making that the last call you make. This is how the Dispose Report.vi is made in the Report Generation Toolkit for Microsoft Office. (This was checked on my machine with Office 2000.)
Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask -
Need Help on Recovering Saved Data in a PDF File
Hi,
It took me several days to fill up an important immigration document in pdf format. During the time, I was able to save it and open it again with the data in the form fields.
The motherboard of the laptop was fried the other day. All the files on the harddrive are safe. I got a usb hd enclore and copy the files off the harddrive.
However, when I open the pdf file, the data fields are now all empty. What to do to recover the saved data fields? Is that possible?
Thank you very much!Hi~
Don't be worry, I think to use some tools to recover your pdf file will be help.
I used a tool last month, and it recovered the pages as well as images in one pdf file of mine.
Follow this steps, it is very easy to repair: http://www.datanumen.com/apdfr/recovery.htm
You can have a try, good luck!
Julie -
How to load unicode data files with fixed records lengths?
Hi!
To load unicode data files with fixed records lengths (in terms of charachters and not of bytes!) using SQL*Loader manually, I found two ways:
Alternative 1: one record per row
SQL*Loader control file example (without POSITION, since POSITION always refers to bytes!)<br>
LOAD DATA
CHARACTERSET UTF8
LENGTH SEMANTICS CHAR
INFILE unicode.dat
INTO TABLE STG_UNICODE
TRUNCATE
A CHAR(2) ,
B CHAR(6) ,
C CHAR(2) ,
D CHAR(1) ,
E CHAR(4)
) Datafile:
001111112234444
01NormalDExZWEI
02ÄÜÖßêÊûÛxöööö
03ÄÜÖßêÊûÛxöööö
04üüüüüüÖÄxµôÔµ Alternative2: variable length records
LOAD DATA
CHARACTERSET UTF8
LENGTH SEMANTICS CHAR
INFILE unicode_var.dat "VAR 4"
INTO TABLE STG_UNICODE
TRUNCATE
A CHAR(2) ,
B CHAR(6) ,
C CHAR(2) ,
D CHAR(1) ,
E CHAR(4)
) Datafile:
001501NormalDExZWEI002702ÄÜÖßêÊûÛxöööö002604üuüüüüÖÄxµôÔµ Problems
Implementing these two alternatives in OWB, I encounter the following problems:
* How to specify LENGTH SEMANTICS CHAR?
* How to suppress the POSITION definition?
* How to define a flat file with variable length and how to specify the number of bytes containing the length definition?
Or is there another way that can be implemented using OWB?
Any help is appreciated!
Thanks,
Carsten.Hi Carsten
If you need to support the LENGTH SEMANTICS CHAR clause in an external table then one option is to use the unbound external table and capture the access parameters manually. To create an unbound external table you can skip the selection of a base file in the external table wizard. Then when the external table is edited you will get an Access Parameters tab where you can define the parameters. In 11gR2 the File to Oracle external table can also add this clause via an option.
Cheers
David -
External table: How to load data from a fixed format UTF8 external file
Hi Experts,
I am trying to read data from a fixed format UTF8 external file in to a external table. The file has non-ascii characters, and the presence of the non-ascii characters causes the data to be positioned incorrectly in the external table.
The following is the content's of the file:
20100423094529000000I1 ABÄCDE 1 000004
20100423094529000000I2 OMS Crew 2 2 000004
20100423094529000000I3 OMS Crew 3 3 000004
20100423094529000000I4 OMS Crew 4 4 000004
20100423094529000000I5 OMS Crew 5 5 000004
20100423094529000000I6 OMS Crew 6 6 000004
20100423094529000000I7 Mobile Crew 7 7 000004
20100423094529000000I8 Mobile Crew 8 8 000004
The structure of the data is as follows:
Name Type Start End Length
UPDATE_DTTM CHAR 1 20 20
CHANGE_TYPE_CD CHAR 21 21 1
CREW_CD CHAR 22 37 16
CREW_DESCR CHAR 38 97 60
CREW_ID CHAR 98 113 16
UDF1_CD CHAR 114 143 30
UDF1_DESCR CHAR 144 203 60
UDF2_CD CHAR 204 233 30
DATA_SOURCE_IND CHAR 294 299 6
UDF2_DESCR CHAR 234 293 60
I create the external table as follows:
CREATE TABLE "D_CREW_EXT"
"UPDATE_DTTM" CHAR(20 BYTE),
"CHANGE_TYPE_CD" CHAR(1 BYTE),
"CREW_CD" CHAR(16 BYTE),
"CREW_DESCR" CHAR(60 BYTE),
"CREW_ID" CHAR(16 BYTE),
"UDF1_CD" CHAR(30 BYTE),
"UDF1_DESCR" CHAR(60 BYTE),
"UDF2_CD" CHAR(30 BYTE),
"DATA_SOURCE_IND" CHAR(6 BYTE),
"UDF2_DESCR" CHAR(60 BYTE)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER DEFAULT DIRECTORY "TMP"
ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE
CHARACTERSET UTF8
STRING SIZES ARE IN BYTES
NOBADFILE NODISCARDFILE NOLOGFILE FIELDS NOTRIM
( "UPDATE_DTTM" POSITION (1:20) CHAR(20),
"CHANGE_TYPE_CD" POSITION (21:21) CHAR(1),
"CREW_CD" POSITION (22:37) CHAR(16),
"CREW_DESCR" POSITION (38:97) CHAR(60),
"CREW_ID" POSITION (98:113) CHAR(16),
"UDF1_CD" POSITION (114:143) CHAR(30),
"UDF1_DESCR" POSITION (144:203) CHAR(60),
"UDF2_CD" POSITION (204:233) CHAR(30),
"DATA_SOURCE_IND" POSITION (294:299) CHAR(6),
"UDF2_DESCR" POSITION (234:293) CHAR(60) )
) LOCATION ( 'D_CREW_EXT.DAT' )
REJECT LIMIT UNLIMITED;
Check the result in database:
select * from D_CREW_EXT;
I found the first row is incorrect. For each non-ascii character,the fields to the right of the non-ascii character are off by 1 character,meaning that the data is moved 1 character to the right.
Then I tried to use the option STRING SIZES ARE IN CHARACTERS instead of STRING SIZES ARE IN BYTES, it doesn't work either.
The database version is 11.1.0.6.
Edited by: yuan on May 21, 2010 2:43 AMHi,
I changed the BYTE in the create table part to CHAR, it still doesn't work. The result is the same. I think the problem is in ACCESS PARAMETERS.
Any other suggestion? -
I got a new laptop and my iphone won't sync without losing all my saved data
I got a new laptop as my old one died. My iTunes account says that I can only sync with one authorised device, which is my dead laptop. I was able to back up all my music on to the new one but when I go to sync it says that I will lose my saved data. Does that mean my photos, contacts, text messages etc?
How can I sync to my new laptop without losing everything?Your music/movies, etc will only be where you put them.
Copy everything fom your old computer or your backup copy of your old computer to your new one
Maybe you are looking for
-
In the beginning, everything worked fine. I dabbled with everything. Just getting the feel for os x. My account still works great, but my wife is having issues on her side. Such as, changing her desktop background, all of her friends pictures on face
-
Xfinity no longer works for me
I have been using Comcast (Xfinity) email for a long time with Firefox. A few days ago it quit working in that it would go to the Inbox Preview, and that is all, no matter what else I clicked. I now have to go use IE to get my e-mail. It will go to h
-
Document Library Custom View "Grouped By" only shows one group
I have created a Document Library Custom View with the "Grouped By" option turned on and grouped by a column called "media type" which has 3 possible choices. For some reason only the first group is displayed. The other groups show that they have
-
Variable power supply not working in virtual elvis
When i make a virtual elvis 3d schematic i cannot get any output from the variable power source, i have played with it alot and still no output. please help.
-
HT1491 where is the power search button in itunes
where is the power search button in itunes. I can only find the podcasts I want by going to the website, and then click on "view in itunes". When I try to search it directly in itunes, it doesn't show up.