DataGrid to display No Data when dataProvider is null
Hi,
Im new to flex. im trying to display "No Data" when the
dataProvider for the DataGrid is null.
how can i do this. can i display the text "No Data" in the
grid or can i display text "No Data" with out grid
Thanks in advance
Are you saying that if the data provider is null then while
you want to be able to create a DataGrid with a single row of data,
where the cells in that one row for all columns contain "No Data"?
In that case perhaps you can use the creationComplete event,
and if the dataProvider is null dynamically create an Object with
number of fields for the columns, all with the data "No Data". Of
course, if your data is coming in from HTTPService etc., you might
display this for a split second before true data gets populated.
If you want to ensure that "No Data" is displayed for an
individual cell if no data is available, the maybe a labelFunction
would do the trick.
Similar Messages
-
ECT List View Web Part displaying incorrect data when View Item
I have a External Content Type which pulls data from a stored procedure. The stored procedure has 1 parameter - the users logon id. The data retrieved is a list of meetings with start date time, end date time, location, subject, etc. From this ECT there
is an External List which displays all data correctly.
There is 2 pages within the site and its subsites that have list view web parts which display a subset of the info from the external list. When the user clicks a specific meeting to display the complete info on the meeting, the wrong information is displayed,
it always displays the info for the 1st meeting in the list. So, I displayed the BDC Identity field on the list and this field is identical for all the rows since the key for the ECT is the username and hence not unique.
I've spent all day trying to finding a way to resolve this and have come up empty. I've tried to find a way to make the BDC Identity field to be unique, using Business Data View web part, Data View web part, and nothing.
The user needs to be able to click the My Meetings url header on the above pages to see a full list of their meetings so I need the external list. Any ideas how to make the BDC Identity field unique or how to get the View Item on the List View web part to
work correctly?Sorry, I do not understand what you mean.
I resolved the non unique BDC Identity problem by simply adding the row # to the Username in the stored procedure so the BDC Identity fields on the list records are now unique (although they're really long ie. __bk44003500070057003700560027000200140037003700f600360096001600470056003300,
__bk44003500070057003700560027000200140037003700f600360096001600470056004300 etc). Not sure how it generates the BDC Identity?
I still see the same behaviour when you select a meeting to display the details. It always displays the 1st record in the list.
I added code to the DispForm to display the ID when the page loads and the BDC Identity from the record and verfied that they do match.
I can add another parameter to the stored procedure and just return the row # in that field. What do you mean by make the identifire as Identity in operations? -
Problem while displaying the data when double clicked on JTable element
Hi All,
i have one List box( JList ) and one table (JTable). Both JTable and JList are positioned on the same Frame. I am able to drag the elements from JList to JTable and also i have added the mouse click action on both List box and JTable.
if i double click on JList element, that will popup one dialog box.
if i double click on JTable cell element that was dragged from JList, that will popup same dialog box which was opened earlier for JList action.
But my problem here is:
Suppose if i drag the four elements one by one from JList to JTable and (after four elements dragged) double clicked the first element which was dragged first that displayed the popup dialog box structure correctly but the data displayed in that was not correct. It is showing the data of recent dragged element( i.e, fourth element).
But if i double click on JList element that is showing the correct data according to the double clicked element.
What might be the problem here, why it was not displaying the correct data when double clicked on JTable element.
Please help me here.
Many thanks in advance.
The following code is used in mouse clicked event method of JList
private void listMouseClicked(java.awt.event.MouseEvent evt) {
if(evt.getClickCount()==2){
AssigningResourcesUI assignResource=new AssigningResourcesUI(this,true);
assignResource.show();
} AND The following code is used in mouse click enevet method of JTable.
private void tableMouseClicked(java.awt.event.MouseEvent evt) {
if(evt.getClickCount()==2){
int row=table.rowAtPoint(new Point(evt.getX(), evt.getY()));
int col=table.columnAtPoint(new Point(evt.getX(), evt.getY()));
if(row==-1||col==-1){
return;
Object obj=table.getModel().getValueAt(row, col);
if(obj==null||(obj.equals(""))){
}else{
AssigningResourcesUI assignResource=new AssigningResourcesUI(this,true);
assignResource.show();
} Thanks & Regards,
Maadhav....
Edited by: maadhav on Jul 1, 2009 7:22 AMI doubt it is related to your problem but:
int row=table.rowAtPoint(new Point(evt.getX(), evt.getY()));Why are you creating a new Point? Just use evt.getPoint().
Object obj=table.getModel().getValueAt(row, col);Don't get the data through the model method, get the data through the table method:
Object obj = table.getValueAt(...)
This way it will work even if the table happens to be sorted.
Instead of creating a AssigningResourcesUI object, just disply the value retrieved from the model. That way you know whether the problem is with the mouse event code or your UI class. Like Walter suggested above I"m guess the problem is with your UI class. -
Using a datagrid to display XML data
Hello,
I'm binding xml to a datagrid but I'm having trouble displaying some of the data. Here's my example.
Here's my test data:
[Bindable]
private var test:XML =
<vm:validationMessages xsi:schemaLocation="http://www.location.com/2.0 http://schemas.com/2.0.0/valMessages.xsd" severity="ERROR" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vm="http://www.location.com/2.0" xmlns:zucc="http://www.location.com/results/1.0">
<vm:validationMessage severity="ERROR" errorCode="ErrorType1" url="www.loc.com">
<vm:messageDetail>Text I want to return</vm:messageDetail>
</vm:validationMessage>
</vm:validationMessages>
I've set the default namespace here:
public static const vm:Namespace = new Namespace("http://www.location.com/2.0");
default xml namespace = vm;
And here is the datagrid definition:
<mx:DataGrid x="10" y="30" width="738.5" height="189" id="dgValidation" dataProvider="{test.validationMessage}">
<mx:columns>
<mx:DataGridColumn headerText="Severity" dataField="@severity"/>
<mx:DataGridColumn headerText="Error Code" dataField="@errorCode"/>
<mx:DataGridColumn headerText="Url" dataField="@url"/>
<mx:DataGridColumn headerText="Description" dataField="messageDetail"/>
</mx:columns>
</mx:DataGrid>
The attributes "severity, errorCode, url" are being displayed correctly, however "messageDetail" will not display. I've tried several different ways of calling it with no luck. Is there a way to do this?
Thanks.To solve this problem I had to use labelFunction. The working line was this:
<mx:DataGridColumn headerText="Description" labelFunction="dataGrid_labelFunc" dataField="messageDetail"/>
The function looks like this:
private function dataGrid_labelFunc(item:XML, col:DataGridColumn):String {
var qN:QName = new QName(vm, col.dataField);
return item[qN].text(); -
WebI displays incorrect dates when sourced from SAP
We have several issues, all tied to displaying dates from a BEx Query, through the universe, into WebI.
Scenario One: Dates that have a datatype of date will parse in the universe, but will give driver not capable when used in WebI. Could this be tied to an invalid date?
Scenario Two: Dates set with date datatype parse correctly and can be queried in WebI, but return incorrect results. If queried WITHOUT a measure, date appears as one day less than actual date (ex. SAP date = Apr 28, 2009 but universe object set with date datatype shows April 27, 2009. When a measure is added, the same date displays as Sept 27, 1976.
I suspect that we need to modify the data access files in order to accurately convert SAP dates (which by default come into the universe as Character) to a date datatype. If this is the case, are there sample sapen.prm and sap.sbo files to ensure appropriate settings?
Does anyone have additional thoughts on what could be causing this issue? Are there sample sapen.prm and sap.sbo files anyone would be willing to share?
Thanks!Hi Robin,
If you are using BOE XI 3.1. Then make sure that you apply fixpack 1.4 on it because the issue you are Describing is Fixed in this fix pack.
Here is the Description of that Particular issue In Release Notes of Fix pack 1.4
ADAPT01181134
Description:
When users create a Web Intelligence document with the universe which is built based on SAP data, it fails to display correct values for some Date objects. This problem occurs when users have a timezone of 'GMT-x hours' on the machine where BusinessObjects Enterprise is installed.
I hope this would solve your problem.
Thanks,
SK. -
AdvancedDataGridColumn Can't display the data of dataProvider
there is my code:
var dataGrid_1:AdvancedDataGrid=new AdvancedDataGrid();
var column_1:AdvancedDataGridColumn=new
AdvancedDataGridColumn("name");
var column_2:AdvancedDataGridColumn=new
AdvancedDataGridColumn("money");
var column_group:AdvancedDataGridColumnGroup=new
AdvancedDataGridColumnGroup("group");
column_1.dataField="a";
column_2.dataField="b";
column_group.children.push(column_2);
dataGrid_1.groupedColumns=new Array(column_1,column_group);
dataGrid_1.dataProvider=...............//The dataProvider is
no problem
My dataProvider:
<data>
<a>peter</a>
<b>0 </b>
</data>
<data>
<a>bob</a>
<b>0 </b>
</data>
But the Column("money") in the ColumnGroup is null(blank)
and the Column("name") is no problem.........
How to show the data to Column in a ColumnGroupHi up1975.
Please contact our chat support: http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html#Contact_us as they can provide you personalised experience in getting your issue fixed.
Regards,
Romit Sinha -
Problem Module/datagrid, one time with data, one time is null
Hello All
thanks for this discussion place, i have a problem in Flash Builder 4.6 (sdk 4.6.0), construct an application who connect to DB, for now, the CRUD works fine with flex service,
i have a problem with a datagrid, one time it's worked fine, and another time my obj is null, i cannot understand why.. the fact it's work one time trouble me.. and i have no error in console..
the target, is to edit a row of datagrid in popup, it's work as you stay in the ModuleClient, but when i launch another Module and come back to ModuleClient, the edit datagrid doesn't work anymore
i try to put the process here, as the app is large: (say to me if you want more code, i will try to isolate some pieces)
- click in ModuleMenu and load ModuleClient in ModuleContent
- dataGrid populate with ArrayCollection
- double click row in dataGrid (dataGrid_doubleClickHandler(event:MouseEvent))
- dataGridClients.selectedItem contains effective data
- push data to ValueObject (ClientObj) already defined in flex services/connected to DB
var ClientDataGrid:ClientObj = dataGridClients.selectedItem as ClientObj;
- push data ClientDataGrid to Popup
in Popup: <valueObjects:ClientObj id="clientObj"/>
- works fine
if i select another Module in ModuleMenu, and later relaunch ModuleClient
- dataGrid populate with ArrayCollection
- double click row in dataGrid
- dataGridClients.selectedItem contains effective data
- push data to ValueObject (ClientObj) already defined in flex services/connected to DB
var ClientDataGrid:ClientObj = dataGridClients.selectedItem as ClientObj;
- ClientDataGrid is null
- cannot push data ClientDataGrid to Popup as ClientDataGrid is null
- doesn’t work
<s:DataGrid id="dataGridClients" left="0" right="230" top="66" bottom="10"
creationComplete="dataGrid_creationCompleteHandler(event)"
dataProvider="{clientListeSimpleResult.lastResult}"
doubleClick="dataGrid_doubleClickHandler(event)" doubleClickEnabled="true"
alternatingRowColors="[#FFFFFF, #f4f3f2]">
Thanks in advance for any advices/ideas
i think i make misunderstood of something, im not a flex/flash as3 coder
so any help would be greatly appreciated
best regards anywaythanks Alex for your link, i read it carrefully, i have to study some thing imo
but, i don't find solution for now, otherwise, i found a strangely similar problem here : it's seem to be the same problem as i have :
https://issues.apache.org/jira/browse/FLEX-18680 [After Module reload dataGrid.selectedItem as MyClass NOT WORKING]
do you think i encounter a bug?
(i will try to isolate some code to test more)
thanks again for advices/ideas -
Displaying the data into the UI tables
Hello Experts,
I am new to web dynpro ABAP and I have created the tree with two UI tables(table1 and table2) by using web dynpro ABAP and want to display the data into both the UI tables at the same time just by one click on the item node of the tree.
presently I am able to display the data as follows
1. when I click on the item node the relevant data for the item appears into table1, but not into table2
2. when I select the row of table1 then the revlevant data for item appears into table2.
like this i can able to dispaly the data into both the table.
My Question.
how to display the data at the same time into both the tables table1 and table2 just by one click
on the item node.
please help
Thanks in advance
Regards,
fahad.Hi,
I am able to invoke the method before the taskflow.
But it is giving me the exception as *"UI Component is Null"* .
The value of the table which I am using to display the data is coming as Null.
Please let me know what could be the issue and how to solve this. -
DataGrid does not display XML data
Hello, and thanks for reading this...
I am having a problem displaying XMLList data in a DataGrid.
The data is coming from a Tree control, which is receiving it
from a database using HTTPService.
The data is a list of "Job Orders" from a MySQL database,
being formatted as XML by a PHP page.
If it would be helpful to see the actual XML, a sample is
here:
http://www.anaheimwib.com/_login/get_all_orders_test2.php
All is going well until I get to the DataGrid, which doesn't
display the data, although I know it is there as I can see it in
debug mode. I've checked the dataField property of the appropriate
DataGrid column, and it appears correct.
Following is a summary of the relevant code.
...An HTTPService named "get_all_job_orders" retrieves
records from a MySQL database via PHP...
...Results are formatted as E4X:
HTTPService resultFormat="e4x"
...An XMLListCollection's source property is set to the
returned E4X XML results:
...The "order" node is what is being used as the top-level of
the XML data.
<mx:XMLListCollection id="jobOrdersReviewXMLList"
source="{get_all_job_orders.lastResult.order}"/>
...The "jobOrdersReviewXMLList" collection is assigned to be
the dataProvider property of a Tree list, using the @name syntax to
display the nodes correctly, and a change event function is defined
to add the records to a DataGrid on a separate Component for
viewing the XML records:
<mx:Tree dataProvider="{jobOrdersReviewXMLList}"
labelField="@name"
change="jobPosForm.addTreePositionsToDG(event)"/>
...Here is the relevant "jobPosForm" code (the Job Positions
Form, a separate Component based on a Form) :
...A variable is declared:
[Bindable]
public var positionsArray:XMLList;
...The variable is initialized on CreationComplete event of
the Form:
positionsArray = new XMLList;
...The Tree's change event function is defined within the
"jobPosForm" Component.
...Clicking on a Tree node fires the Change event.
...This passes an event object to the function.
...This event object contains the XML from the selected Tree
node.
...The Tree node's XML data is passed into the positionsArray
XMLList.
...This array is the dataProvider for the DataGrid, as you
will see in the following block.
public function addTreePositionsToDG(event:Event):void{
this.positionsArray = selectedNode.positions.position;
...A datagrid has its dataProvider is bound to
positionsArray.
...(I will only show one column defined here for brevity.)
...This column has its dataField property set to "POS_TITLE",
a field in the returned XML record:
<mx:DataGrid width="100%" variableRowHeight="true"
height="75%" id="dgPositions"
dataProvider="{positionsArray}" editable="false">
<mx:columns>
<mx:DataGridColumn width="25" headerText="Position Title"
dataField="POS_TITLE"/>
</mx:columns>
</mx:DataGrid>
In debug mode, I can examine the datagrid's dataProvider
property, and see that the correct XML data from the Tree control
is present. However, The datagrid does not display the data in any
of its 6 columns.
Does anyone have any advice?
Thanks for your time.Hello again,
I came up with a method of populating the DataGrid from the
selected Item of a Tree Control which displays complex XML data and
XML attributes. After the user clicks on a Tree branch, I call this
function:
public function addTreePositionsToDG(event:Event):void{
//Retrieve all "position" nodes from tree.
//Loop thru each Position.
//Add Position data to the positionsArray Array Collection.
//The DataGrid dataprovider is bound to this array, and will
be updated.
positionsArray = new ArrayCollection();
var selectedNode:Object=event.target.selectedItem;//Contains
entire branch.
for each (var position:XML in
selectedNode.positions.position){
var posArray:Array = new Array();
posArray.PK_POSITIONID = position.@PK_POSITIONID;
posArray.FK_ORDERID = position.@FK_ORDERID;
posArray.POS_TITLE = position.@POS_TITLE;
posArray.NUM_YOUTH = position.@NUM_YOUTH;
posArray.AGE_1617 = position.@AGE_1617;
posArray.AGE_1821 = position.@AGE_1821;
posArray.HOURS_WK = position.@HOURS_WK;
posArray.WAGE_RANGE_FROM = position.@WAGE_RANGE_FROM;
posArray.WAGE_RANGE_TO = position.@WAGE_RANGE_TO;
posArray.JOB_DESCR = position.@JOB_DESCR;
posArray.DES_SKILLS = position.@DES_SKILLS;
positionsArray.addItem(posArray);
So, I just had to manually go through the selected Tree node,
copy each XML attribute into a simple Array, then ADD this Array to
an ArrayCollection being used as the DataProvider for the DataGrid.
It's not elegant, but it works and I don't have to use a Label
Function, which was getting way too complicated. I still think that
Flex should have an easier way of doing this. There probably is an
easier way, but the Flex documentation doesn't provide an easy path
to it.
I want to thank you, Tracy, for the all the help. I checked
out the examples you have at www.cflex.net and they are very
helpful. I bookmarked the site and will be using it as a resource
from now on. -
Datagrid Item Renderer not displaying correct data
I have a datagrid that displays information from a web service, which is refreshed every 60 seconds.
When the status is no 0 for a line a corresponding color is used to fill in the background. I created a Item Renderer to fill in the background color.
When the table is initially created, the colors are correct. After the data is refreshed, then the background color value is carried over to the next row.
The Spark DataGrid works better than the MX AdvancedDateGrid or DataGrid. This was working in Flex 3, but I used an function which replaced the DataGridColumn that doesn't work in Flex 4.
protected function init(event:FlexEvent):void
var showBackground:Boolean = false;
var backgroundColor:uint = new uint();
var labelTextColor:uint = new uint();
var dgListData:DataGridListData = listData as DataGridListData;
var dataGrid:DataGrid = dgListData.owner as DataGrid;
// comment this out if you want to see the background over the
// selection and highlight indicators
if (dataGrid.isItemSelected(data) || dataGrid.isItemHighlighted(data))
// clear the background so you can see the selection/highlight colors
showBackground = false;
return;
switch(data["MessageLevel"])
case 0:
showBackground = false;
backgroundColor = 0xFFFFFF;
labelTextColor = 0x000000;
break;
case 1:
showBackground = true;
backgroundColor = 0x00FF00; // light green
labelTextColor = 0x000000;
break;
case 2:
showBackground = true;
backgroundColor = 0x015F00; // dark green
labelTextColor = 0xFFFFFF;
break;
case 3:
showBackground = true;
backgroundColor = 0xFDFF00; // yellow
labelTextColor = 0x000000;
break;
case 4:
showBackground = true;
backgroundColor = 0x7F6E3F; // tan
labelTextColor = 0xFFFFFF;
break;
case 5:
showBackground = true;
backgroundColor = 0xFF8A00; // orange;
labelTextColor = 0x000000;
break;
case 6:
showBackground = true;
backgroundColor = 0xFFDFE0; // rose
labelTextColor = 0x000000;
break;
case 7:
showBackground = true;
backgroundColor = 0xFF0000; //red
labelTextColor = 0xFFFFFF;
break;
if(showBackground) {
var bgFill:SolidColor = new SolidColor();
bgFill.color = backgroundColor;
dataContainer.setStyle("backgroundColor",backgroundColor);
lblData.setStyle("color", labelTextColor);I added an "else" statement to make sure that a color was always added, even if the level was 0. I also added a backgroundAlpha style to both, to turn the value off or on.
So far, this seems to be the solution.
if(showBackground) {
var bgFill:SolidColor = new SolidColor();
bgFill.color = backgroundColor;
dataContainer.setStyle("backgroundColor",backgroundColor);
labelDisplay.setStyle("color", labelTextColor);
dataContainer.setStyle("backgroundAlpha",1);
} else {
dataContainer.setStyle("backgroundColor",backgroundColor);
labelDisplay.setStyle("color", labelTextColor);
dataContainer.setStyle("backgroundAlpha",0); -
Displaying RichTextEditor Data in datagrid
Hi,
I have a form in which I am using RichTextEditor to collect
data. In other page I am displaying the same data in the datagrid.
How do I display the data in the datagrid as htmlText. Do I use the
label function? If yes then how.
ThanksHello,
does anyone have an answer to the question asked in the thread above????
here is my code -
<mx:DataGrid width="846" height="292" id="site_contact_eventDG" dataProvider="{siteContactEventData}">
<mx:columns>
<mx:DataGridColumn headerText="SN" dataField="site_contact_event_id" width="40"/>
<mx:DataGridColumn headerText="Date of Event" dataField="date" width="200"/>
<mx:DataGridColumn headerText="Note" dataField="notes" wordWrap="true" width="200"/>
</mx:columns>
</mx:DataGrid>
The dataprovider is coming from a MySQL database with the dataField "notes" currently Rich Text. It is populating the datagrid but the Rich Text is being displayed.
here is an example of the XML being returned.
<site_contact_event_id><![CDATA[2]]></site_contact_event_id>
<site_id><![CDATA[1]]></site_id>
<date><![CDATA[2009-05-14]]></date>
<notes><![CDATA[<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">s</FONT></P></TEXTFORMAT>]]></notes>
Attached is a sceen shot of the current datagrid.
Any help would be appreciated.
Thanks
Scott -
For Refreshing a table display in ALV when data is chngd in maintainance vi
Hi All,
I am displaying the fields of a Ztable in a ALV report. A maintainance view call button is attached to that report through which data of Ztable can be changed.Prolem is that when after changing the data when I return back to report, changes are not reflected.
Kindly suggest to solve this problem.
I am using ALV display through class.
I have already used these functions in the else condition of IF GO_CUSTOM_CONTAINER IS INITIAL.
CALL METHOD go_grid->refresh_table_display.
CALL METHOD cl_gui_cfw=>flush.
For maintainance view I am using the function as
VIEW_MAINTENANCE_CALL on double clicking the maintain button.
Kindly suggest.
Ashutosh KumarAshutosh,
Just calling the REFRESH method will not work. You need to re-fetch the data into the same internal table which you using the displaying the data in the grid.
Probably you can write this data fetching as a subroutine and call this as soon as come back from the Maintenance screen. And updating the internal table, call the REFRESH method.
This should work.
Regards,
Ravi
Note : Please reward points if this helps. -
Display 'No Data Found' when there is inv data but still there is xml data
Hi,
I am converting an rdf to BI publisher. The issue is when there is no detail (inv) but still there is still xml data , due to which the report is getting printed with the skeleton template and blank details(inv).
I need to avoid printing the report out if there is not inv detail even though there is xml data. or atleast show 'NO DATA FOUND' msg. and print the report output only when there is inv data.
Any help is greatly appreciated.
sample XLM generated when there is inv data:
- <ARXCBI>
- <LIST_G_SETUP>
- <G_SETUP>
<COMPANY_NAME>GL SOB</COMPANY_NAME>
<FUNCTIONAL_CURRENCY>USD</FUNCTIONAL_CURRENCY>
<COA_ID>23456</COA_ID>
<SET_OF_BOOKS_ID>1</SET_OF_BOOKS_ID>
<LIST_G_SITES />
<REPORT_NAME>Billing Invoice</REPORT_NAME>
<SUB_TITLE />
</G_SETUP>
</LIST_G_SETUP>
<RP_COMPANY_NAME>GL SOB</RP_COMPANY_NAME>
<RP_REPORT_NAME>Billing Invoices</RP_REPORT_NAME>
<RP_DATA_FOUND />
<RP_SUB_TITLE />
<R_DEFAULT_COUNTRY>US</R_DEFAULT_COUNTRY>
<R_DEFAULT_COUNTRY_DESC>United States</R_DEFAULT_COUNTRY_DESC>
<T_REPORT_TOTAL />
<RP_COUNTER />
<INV>Invoice</INV>
<CM>Credit Memo</CM>
<ADJ>Adjustment</ADJ>
<XREV>Reverse Cross Site Credit Memo</XREV>
<XAPP>Apply Cross Site Credit Memo</XAPP>
</ARXCBI>
Thanks!Hi Srini,
Now I am running into another problem. When there is no detail data it displays 'No data found' as expected in the report output. But is there any way to restrict the print option (avoid wasting the paper) to just display 'No data found' in the output but not to print the output only in this case.
I really appreciate any help! -
PC gets loaded when trying to display large data in graph
PC gets loaded when i try to display large data in the graph, the shift register holding the data eats up all my virtual memory ,so my pc gets hangs,any ways to refresh the virtual memory using labview. The chart also cannot be replaced.
Bharani wrote:
The data size is appox 200 MB or more. The data is acquired in I32 format and store in file. During the playback , the file is read according to the sampling rate, converted to ascii ,send to Daqmx write and Graph simultaneously. In graph portion, the array holds(using shift register) all the data in the graph.This holding the data loads the PC.Is there any way to refresh the virtual memory using labview.
Is there really a good reason to send 200MB worth of I32 data to a graph? NO! Your graph most likely does not have more than about 1000 pixels across!
Most likely, you have multiple copies if the data in memory. Do you convert the entire 200MB data to ASCII or each data point as needed? Have you done some profiling? What is the memory usage in "VI properties..Memor Usage"? Do you use local variables?
Your best bet would be to analyse you code to optimize memory usage, avoid data copies, etc. Please attach you code so we can give some advice.
LabVIEW Champion . Do more with less code and in less time . -
when I add a date to a cell, how can I let another cell display a date that is 30 days later?
=[cell reference] +30
Maybe you are looking for
-
How to use parameter file with java
Is it possible to use a parameter file with Java, and is there any class/method to make it easy to call and use these parameter from a text file, other than scanning the whole text file manually as we can do normally with visual basic/c++, so we can
-
Ipod touch 4th gen update IOS5
how can I update an ipod touch 4th gen 32g with IOS5
-
Mouse pointer will sometimes disappear
mouse pointer will sometimes disappear
-
Applying a formula to a whole column
Hi, Is there anyway to apply a formula to a whole column? I have three column's in a table: Hours worked, Rate and total earnings for that job (=Hours worked x Rate). I've set it up so as I can enter the information in a form and if I create a new en
-
Hi, i am bw consultant and have been working was extracting data from mm and sd..now our company is implementing HR module..for that reason i wanted to learn SAP HR module. could anyone let me know HR topics that are related to bw hr extraction?