List Control and XML data
I am trying to display XML data from a HTTPReqeust in a list
control. Here's my mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="aircrafts.send()">
<mx:Script>
<![CDATA[
import mx.collections.XMLListCollection;
import mx.rpc.events.ResultEvent;
[Bindable]
private var aircraftDp:XMLList;
private function aircraftXMLHandler(event:ResultEvent):void
aircraftDp = event.result.aircraft;
]]>
</mx:Script>
<mx:HTTPService id="aircrafts"
url="
http://localhost:8080/flysafe/aircrafts"
result="aircraftXMLHandler(event)"
resultFormat="e4x"/>
<mx:List x="10" y="53"
dataProvider="{aircraftDp}"></mx:List>
</mx:Application>
The REST service returns the following XML document:
<aircrafts>
<aircraft id='0' label='Cessna' href='
http://localhost:8080/flysafe/aircrafts/0'/>
<aircraft id='1' label='Piper' href='
http://localhost:8080/flysafe/aircrafts/1'/>
</aircrafts>
The List control is empty. I cannot figure out how to get the
right connection between the data provider and the xml returned by
the HTTPRequest.
I figured it out. The data provider was set up correctly, but
I wasn't telling the listbox what to use for the label. Adding the
following attribute to the listbox fixed the problem.
labelField="@id"
Similar Messages
-
Spry Tables and Xml Data Sets viewed in IE7
Has anyone ever run into a problem with Spry Tables and Xml
Data Sets viewed in IE7? Work fine in IE6 and Firefox, but get the
error "exception caught while loading feed.xml: [object Error]" in
IE 7. Any ideas?
Attached is the xml I'm using.
ThanksI came looking for the answer to this question. I could not
find an answer. Eventually I found it the answer that worked for
me, a graphic designer with not much experience in xml.
The following url provided an errata file in PDF format:
www.peachpit.com/dwcs3cib
which includes the following addendum to the incomplete
instructions in the book i was using to learn about spry:
"If Internet Explorer 7 is your primary browser, you'll nee
to take some extra steps to view spry dynamic content locally.
First, your site must be within the local server webroot; be sure
your Lessons folder is stored within the Inetpub>wwwroot folder.
Next, double-click the site name in the files panel to open the
Site Definition dialogue. Click the Testing Server category; from
the Access List choose Local/Network. Click Okay to close the Site
Definition dialogue. Now, when you preview your page with Internet
Explorer, your local Web server (localhost) serves the page as
designed."
Horray for me! Now i can move on from here and actually get
some work done! -
Reference Library for Converting Between LabVIEW and XML Data (GXML)
Please provide feedback, comments and questions on the Reference Library for Converting Between LabVIEW and XML Data (GXML) in this thread.
The latest version of the NI GXML Library is availble in VIPM on the NI LabVIEW Tools Network repository.Francesco, Thank you for the feedback. With this component it was my intention to make a more "terse" version of the LabVIEW Flatten to XML VI that was also supported on RT and that gave the user more flexbility regarding the structure of the parsing type definition. I think you are right that the XML parser is not compliant to section 2.11 of the XML spec. The parser does specifically looking for a #D#A and this appears to be an oversight on my part. Please confirm for me, the specifcation is saying that the XML parser should be able to recognize three possibilities as an "end of line" character: #D#A, #D, or #A. Am I reading this right?There are more efficient (and in some cases much more efficient) ways of sharing data between LabVIEW and LabVIEW: some examples are flattened binary strings and the datalog binary format. XML is slower than these optons but the upside is that it is human readable. Furthermore XML is inherently hierarchical which is convenient for complex data structures like clusters of arrays of clusters, etc. If you don't care about human readability then you are correct XML doesn't make as much sense.I will return to the GXML source code and try to fix this in the near future but I would hope that instead of creating yet another custom VI from scratch that you could reuse what I have provided for you. I included enough documentation in the source code so that users could make some modificiations themselves. The target application for this reference library was LabVIEW to LabVIEW communication. As such I documented the schema on the dev zone document from a LabVIEW perspective. It includes all the supported datatypes and all the supported data structures (cluters, arrays, multidimensional arrays, clusters of multidimensional arrays, etc.) I do see some value in making a more conventional XML spec but the time investment required didn't really line up with my intended use case. Were there any other downsides to GXML that I have missed? Best Regards, Jeff TippsSystems Engineer - Sound and VibrationMessage Edited by Jeff T. on 04-21-2010 10:09 AM
-
Hope someone can help. I have tried to find the best way to do this and can't seem to make sense of anything. I'm using an Access 2013 Database and I have a report that is based on a query. I've created a Report Criteria Form. I
need the user to be able to select multiple items in a list box and also to enter a Begin Date and End Date. I then need my report to return only the records that meet all selected criteria. It works fine with a ComboBox and 1 selection but can't
get it to work with a List Box so they can select multiple items. Any help is greatly appreciated while I still have hair left.The query should return all records.
Let's say you have the following controls on your report criteria form:
txtStart: text box, formatted as a date.
txtEnd: text box, formatted as a date.
lbxMulti: multi-select list box.
cmdOpenReport: command button used to open the report.
The text boxes are used to filter the date/time field DateField, and the list box to filter the number field SomeField.
The report to be opened is rptReport.
The On Click event procedure for the command button could look like this:
Private Sub cmdOpenReport_Click()
Dim strWhere As String
Dim strIn As String
Dim varItm As Variant
On Error GoTo ErrHandler
If Not IsNull(Me.txtStart) Then
strWhere = strWhere & " AND [DateField]>=#" & Format(Me.txtStart, "yyyy-mm-dd") & "#"
End If
If Not IsNull(Me.txtEnd) Then
strWhere = strWhere & " AND [DateField]<=#" & Format(Me.txtEnd, "yyyy-mm-dd") & "#"
End If
For Each varItm In Me.lbxMulti.ItemsSelected
strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
Next varItm
If strIn <> "" Then
' Remove initial comma
strIn = Mid(strIn, 2)
strWhere = strWhere & " AND [SomeField] In (" & strWhere & ")"
End If
If strWhere <> "" Then
' Remove initial " AND "
strWhere = Mid(strWhere, 6)
End If
DoCmd.OpenReport ReportName:="rptMyReport", View:=acViewPreview, WhereCondition:=strWhere
Exit Sub
ErrHandler:
If Err = 2501 Then
' Report cancelled - ignore
Else
MsgBox Err.Description, vbExclamation
End If
End Sub
If SomeField is a text field instead of a number field, change the line
strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
to
strIn = strIn & "," & Chr(34) & Me.lbxMulti.ItemData(varItm) & Chr(34)
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
Hello, everyone. As a SSIS newbie, I have a simple question about load XML data files with SSIS. Currently I have multiple XML files in a specified folder (C:\XMLData) using one XSD file. Since SSIS does not support expression language for XML Source component (unlike flat file connnection), do you know how to loop through all XML data files to load them into a table in a database? I guess I may need to do some programming in VBScript. Any help is greatly thankful
Thank you very much.Since SSIS does not support expression language for XML Source component (unlike flat file connnection),
Are you sure about that? If you flip back to the control-flow and view the properties of the dataflow in question then you should be able to put an expression on the [XML Source].[XMLData] property.
Background reading:
Dataflow expressions
(http://consultingblogs.emc.com/jamiethomson/archive/2007/10/09/SSIS_3A00_-Dataflow-expressions.aspx )
http://sqlblog.com/blogs/jamie_thomson/ | http://jamiethomson.spaces.live.com/ | @jamiet -
Using a SQL data source and XML data source in the same template
I am trying to develop a template for the Request for Quote report generated in Apps 11.5.10. I have loaded the data from the XML output into the template, but I am missing one field - I need the org_id from the po_headers table. Is it possible to use a sql data source (i.e., "select org_id from po_headers_all where po_header_id = [insert header_id from xml data]...") in addition to the xml data source to populate the template at runtime? When you use the Insert > SQL functionality is it static at the time the template is created, or does it call to the database at runtime? I've looked through all the docs I could find, but this isn't clear.
Thanks for any help or suggestions you may have.
RhondaHi Pablo
Thats a tough one ... if you go custom with a data template you will at least get support on the data template functionality ie you have a problem when you try and build one. You will not get support on the query inside the data template as you might have gotten with the Oracle Report, well you could at least log a bug against development for a bad query.
Eventually that Oracle Report will be converted by development anyway, theres an R12 project going on right now to switch the shipped OReports to data templates. AT this point you'll be fully supported again but:
1. You have to have R12 and
2. You'll need to wait for the patch
On reflection, if you are confident enough in the query then Oracle will support you on its implementation within a data template. Going forward you may be able to swap out your DT and out in the Oracle one without too much effort.
Regards, Tim -
Forms pulling Multiple Records from an XML Schema and XML data files - Adobe LiveCycle Designer
I built a form in Adobe LiveCycle with an xml schema and data file. The problem is with how the form renders the xml data file.
I have a statement element that consists of about 6 fields (statementID, statementName, statementAddress, statementCountry, statementZip, statementDate, etc) of data in the schema that allows for multiple iterations - so one xml data file can contain multiple statements. These fields allow for null values.
But here's the problem: When any of the statements - say statement 2 of 6 - has a null value in one of the fields, if the xml data file doesn't have a placeholder
(example of placeholder: <statementName type="String"/> )in the xml for that field, my form pulls the field value from the NEXT statement.
This corrupts all the rest of the statement records, as this field is shifted up for all the rest.
I know that in the past I haven't needed a placeholder when a field was null. But I'm wondering if when the data allows for multiple records the xml data file needs to generate the placeholder. And where is the problem? In the Schema? The xml data file? My form? And the 64-thousand-dollar question: How to fix it?If your <statement> element is the one that repeats, it should be bound to a subform with the binding string of something like $.statement[*]. Then in that subform should be your fields and they should have bindings of $.statementID, $.statementName, $.statementAddress, etc.
Kyle -
Hi!
Does the JRC execute a report with an XML data source (URL XML Http and URL XSD Http) ?
If yes, does the JRC change programmatically the XML data source (URL XML Http and URL XSD Http) prior to execute the report?
There is an example to do this?
Best regards,
A.Hi,
I've follow the example [ftp://ftp.businessobjects.com/pub/incoming/XML_XSD_sample_reports_XI.zip]
and i've use the "JRC_Display_Connection_Info"on a xml to display all of the properties.
After i've make a program for change the datasource in the case of "xml http" database.
Changes the DataSource for a specific Table from XML
@param clientDoc The reportClientDocument representing the report being used
@param reportName "" for main report, name of subreport for subreport, null for all reports
@param tableName name of table to change. null for all tables.
@param username The DB logon user name
@param password The DB logon password
@param xmlURL The Http(s) XML URL
@param xsdURL The Http(s) Schema URL
@throws ReportSDKException
public void changeDataSourceXML(ReportClientDocument clientDoc,
String reportName, String tableName,
String username, String password,String xmlURL,String xsdURL) throws ReportSDKException {
PropertyBag propertyBag = null;
IConnectionInfo connectionInfo = null;
ITable origTable = null;
ITable newTable = null;
// Declare variables to hold ConnectionInfo values.
String SERVER_TYPE = "XML e servizi Web";
String CONVERT_MULTIVALUE_TO_TABLE="false";
String DATABASE_DLL = "crdb_xml.dll";
String HTTPS_SCHEMA_URL= xsdURL;
String HTTPS_XML_URL= xmlURL;
// Declare variables to hold database User Name and Password values
// I've see by "JRC_Display_Connection_Info" that USERID_HTTPS_SCHEMA
// and USERID_HTTPS_XML's value is equal to username value
String DB_PASSWORD = "";
String DB_USER_NAME = username;
String USERID_HTTPS_SCHEMA=username;
String USERID_HTTPS_XML=username;
// Obtain collection of tables from this database controller
if (reportName == null || reportName.equals("")) {
Tables tables = clientDoc.getDatabaseController().getDatabase().getTables();
for(int i = 0;i < tables.size();i++){
origTable = tables.getTable(i);
if (tableName == null || origTable.getName().equals(tableName)) {
newTable = (ITable)origTable.clone(true);
newTable.setQualifiedName(origTable.getAlias());
// Change connection information properties
connectionInfo = newTable.getConnectionInfo();
// Set new table connection property attributes
propertyBag = new PropertyBag();
// Overwrite any existing properties with updated values
propertyBag.put("Http(s) Schema URL", HTTPS_SCHEMA_URL);
propertyBag.put("Http(s) XML URL", HTTPS_XML_URL);
propertyBag.put("Server Type", SERVER_TYPE);
propertyBag.put("UserID Http(s) XML", USERID_HTTPS_XML);
propertyBag.put("Database DLL",DATABASE_DLL );
propertyBag.put("Convert Multivalue to Table", CONVERT_MULTIVALUE_TO_TABLE);
propertyBag.put("UserID Http(s) Schema", USERID_HTTPS_SCHEMA);
connectionInfo.setAttributes(propertyBag);
// Set database username and password
connectionInfo.setUserName(DB_USER_NAME);
connectionInfo.setPassword(DB_PASSWORD);
// Update the table information
clientDoc.getDatabaseController().setTableLocation(origTable, newTable);
But i don't know why if i call:
System.out.println(reportClientDoc.getDatabaseController().getDatabase().getTables().getTable(0).getConnectionInfo().getAttributes().toString());
on my
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(ReportName, 0);
after changeDataSourceXML i've one more attribute than those defined by me called PreQEServerType that take the Server_Type value.
I think that is the cause of the output error of my program on the export method
ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
- com.crystaldecisions.reports.dataengine.be: Unexpected error of the database connector
- Failed to export report
com.crystaldecisions.reports.exportinterface.exceptions.ExportException: Unexpected error of the database connector
at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
at report.MKReport.main(MKReport.java:655)
Caused by: com.crystaldecisions.reports.formatter.formatter.c: Unexpected error of the database connector
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.<init>(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.if(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.e.l.<init>(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.e.p.<init>(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.e.p.a(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
... 13 more
Caused by: com.crystaldecisions.reports.dataengine.be: Unexpected error of the database connector
at com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
... 19 more
Caused by: com.crystaldecisions.reports.reportdefinition.datainterface.n: Unexpected error of the database connector
at com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Unknown Source)
... 22 more
Caused by: com.crystaldecisions.reports.queryengine.am: Unexpected error of the database connector
at com.crystaldecisions.reports.queryengine.driverImpl.a.if(Unknown Source)
at com.crystaldecisions.reports.queryengine.ax.if(Unknown Source)
... 23 more
- JRCAgent1 detected an exception: An error occurred while exporting the report
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
at report.MKReport.main(MKReport.java:657)
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: An error occurred while exporting the report.---- Error code:-2147467259 Error code name:failed
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
Thanks in advance for your help.
Andrea
Edited by: Andrea Bonf on Sep 24, 2008 5:56 PM -
I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data
Yes, you can do all of that via Tools - Forms - More Form Options - Import Data, if you have Acrobat.
If you only have the free Reader then you can still do it, but it requires a script. -
Linked List, Stacks and Other Data Structures in Objective-C 2.0
I've checked a little throughout documentation that Apple provides for the different frameworks in order to determine if there were ready-made classes for data structures such as linked lists, stacks and so forth but there don't appear to be any available? Is this correct?
NSArray and NSDictionary are the multi-purpose built-in aggregate types. If you need something else then you can use STL or roll your own.
-
Hello,
I have read the Oracle XML SQL Utility documentation and also
the answer of Oracle team to Johnson Scott and as far as I
understand, the XML that is produced from the database and
loaded in it must verify a given DTD syntax.
Is this DTD available somewhere ?
What I have understood about XML Data of w3c is that it gives a
way to describe the content of a database.
What is Oracle position on that subject ?
I do ask this question because we have at present an SGML file,
with its own DTD that contains data we have to
insert/delete/update in an Oracle Database.
We are thinking of converting this SGML file in an XML file,
with tools like OMNIMARK or BALISE, that could be easily
integrated in the Oracle Database.
We are looking for the best solution to our problem and think
that Oracle tools like Oracle XML SQL, parserand Class generator
could be really usefull.
What do you think of this problem and of the solution we imagine
Thanks for your help,
Best regards,
C line.
nullHello,
I am actually studying the tools that Oracle offers to treat XML
data.
When reading the description of your products I can see two
solutions to my problem.
I remind it to you :
I have an SGML file with its own DTD that contains data we have
to insert/delete/update in an Oracle Database.
I can imagine two solutions :
1- one with Oracle IFs XML support :
To use this one I have to convert my SGML DTD in an XML one
(they should be very similar) and then write a program that
would convert my SGML file in an XML one.
Then create an Oracle iFS document descriptor that indicates how
each part of my file should be stored in my Oracle database.
2- an other one with Oracle XML SQL utility :
To use this one I have to convert my SGML file in an XML file
that is well-formed (i.e. that Oracle XMLSQL utility can
understand).
This convertion is much more difficult to do than the one I have
described above.
Are those two solutions correct ?
If yes, which one is the best in your opinion ?
Could you use XML Data with Oracle XML SQL utility ?
Is the DTD you have defined for this tool compiliant with XML
Data ?
If not why ?
I have not the tool from which I can get it but I would be
interested by the description of this DTD which is the best way
to see what I can do with this tool (and imagine a solution for
update if it cannot be easily done).
I would also be very interested in having the description of DTD
for Oracle iFS document descriptor files (as far I have
understood they are XML files) or an example of quite a complex
one so that I can I an idea of how it cold fit to my problem.
I have been really impressed by Oracle team very fast answer and
thank you very much for your help.
Regards,
C line.
Oracle XML Team wrote:
: LESCOP (guest) wrote:
: : Hello,
: : I have read the Oracle XML SQL Utility documentation and
also
: : the answer of Oracle team to Johnson Scott and as far as I
: : understand, the XML that is produced from the database and
: : loaded in it must verify a given DTD syntax.
: : Is this DTD available somewhere ?
: The output XML from the XML SQL Utility is in canonical form.
: There is a commandline option to have the corresponding DTD
: created on output.
: : What I have understood about XML Data of w3c is that it
gives
: a
: : way to describe the content of a database.
: : What is Oracle position on that subject ?
: The W3C Working Group charged with this tsk is the XML Schema
WG
: on which we are participating. Our position is supportive of
: this effort.
: : I do ask this question because we have at present an SGML
: file,
: : with its own DTD that contains data we have to
: : insert/delete/update in an Oracle Database.
: : We are thinking of converting this SGML file in an XML file,
: : with tools like OMNIMARK or BALISE, that could be easily
: : integrated in the Oracle Database.
: : We are looking for the best solution to our problem and
think
: : that Oracle tools like Oracle XML SQL, parserand Class
: generator
: : could be really usefull.
: : What do you think of this problem and of the solution we
: imagine
: Our current components will simplify your task. Currently,
: update is a bit more of a problem than insert and delete and
: would need to be handles at the application level for now.
: Oracle XML Team
: http://technet.oracle.com
: Oracle Technology Network
null -
I am building a report using xml data set from 3E database (elite software)
i have data displaying in my xml output, but when i pull field into the report and run it through the viewer it doesnt display anything. i have tried the table (dataaset) alone or joined to the main table.
any ideas????None of the bundled versions of CR have the driver. Reason is that the driver responsible for these connections requires the Java framework and I suspect MS would not be too pleased if we installed the Java framework. The stand alone versions, since they are not part of any bundle can and do install the Java framework and the driver. Note that even the latest release of CR - CRVS2010 does not have the driver as it essentially becomes a bundle or a VS2010 plug-in.
So, the short of it is; you have to obtain a stand-alone version of CR. I'd recommend CR 2008 (12.x) as CRXI R2 will run out of support in June of this year.
- Ludek -
How to Convert internal table data into xml and xml data into internal tab
Hi Guys,
I have a requirement that i have to convert the internal table data into xml format and viceversa . for my requirement i came to know that i have to use Transformations concept. i done the converting the data from internal table into xml data by using standard Tranformations. My Question is
1) Can i use same Transformation to convert the xml data into abap internal table. if it is possible then how ???
2) Is it possible using the standard Transformation or I have to go for XSLT approach
Please help me out from this guys,
Thanks and Regards
KotiHi Koti,
This is possible. There is a link. With the help of this link you can convert ABAP data to XML and vice versa.
Link: http://www.heidoc.net/joomla/index.php?option=com_content&view=article&id=15:sapxslt&catid=22:sap-xslt&Itemid=31 -
Best way to control and read data from multiple instruments?
Hello,
I'm building an application to test power supplies involving multiple pieces of equipment over a couple of different comm busses. The application will also send control instructions to some of the instruments, and read data from some of the instruments. The reading and control profiles will not run on the same schedule (variable length control steps, configurable read interval).
I was thinking of using a queued statemachine (producer/consumer) for the control profile and another to read the data, but I got concerned that there would be collisions between sending control commands and read commands to the same machine. Is there a suggested design pattern for implementing something like this?
Timing of the commands isn't critical down to the milisecond, but I need to collect reasonably accurate timestamps when the data is read. The same is true for the control commands.
Here are the instruments I'm going to use, if the are control, read, or both, and the communication method
Instrument Funtions Comm Method
Power Supply Read data Communicates to PMBus Adapter
PMBus to USB Adapter Read data USB (Non-Visa)
Switch control relays USB (VISA)
Power Dist. Unit read data/control outlets SNMP (Ethernet)
Electronic Load read data/control load GPIB (VISA)
Thermal Chamber read data/control temp Ethernet (VISA)
Thanks,
SimonHello, there is a template in LV called "Continuous measurement and Logging".
It can give you some idea how to properly decouple the "GUI Event handler" top loop (where your Event structure is) from the DAQ and other loops.
You do not need to totally replicate the above example, but you can find there nice tricks which can help you at certain points.
The second loop from the top is the "UI message loop". It handles the commands coming from the top loop, and regarding to the local state machine and other possible conditions and states, it can command the other loops below.
During normal run, the different instrument loops just do the data reading, but if you send a control command from the top loop to a certain instrument loop (use a separate Queue for every instrument loops), that loop will Dequeue the control command, execute it, and goes back to data reading mode (in data reading mode the loop Dequeu itself with a "data read" command automatically). In this way the control and data read modes happen in serial not in parallel which you want to avoid (but I think some instrument drivers can even handle parallel access, it will not happen in really parallel...).
In every instrument loop when you read a value, attach a TimeStamp to it, and send this timestamp/value couple to the DataLogging loop via a Queue. You can use a cluster including 3 items: Source(instrument)/timestamp/value. All the instrument loops can use the same "Data logging" Queue. In the Datalogging while loop, after Dequeue-ing, you can Unbundle the cluster and save the timestamp and data-value into the required channel (different channel for every instrument) of a TDMS file.
(Important: NEVER use 2 Event structures in the same top level "main" VI!) -
Grid Control and Default Date value
I am facing 3 problems:
1) One is I want to know how to create a grid control with combo
box/drop down list control for certain fields within that grid.
when I place the grid control no rows or columns can be seen
everything is grey so how the heel should I know where to have
the drop down list controls.these drop down list controls have
some constant values bound to a difeerent stand alone table.
2) In a grid control/in a single text box how can I set the
default value to the today's date in the design environment.
I tried setting the format of the date in the formatterinfo to
MM/DD/yyyy but as soon as I try to click on the insert for the
detail table in a Master-detail table relationship there is an
error.
3)I also wanted to know if anyone knows if there is a calendar
control so that the user over the web can click on a particular
date through the control so that formatting can be avoided.
tHANKS
nullI am facing 3 problems:
1) One is I want to know how to create a grid control with combo
box/drop down list control for certain fields within that grid.
when I place the grid control no rows or columns can be seen
everything is grey so how the heel should I know where to have
the drop down list controls.these drop down list controls have
some constant values bound to a difeerent stand alone table.
2) In a grid control/in a single text box how can I set the
default value to the today's date in the design environment.
I tried setting the format of the date in the formatterinfo to
MM/DD/yyyy but as soon as I try to click on the insert for the
detail table in a Master-detail table relationship there is an
error.
3)I also wanted to know if anyone knows if there is a calendar
control so that the user over the web can click on a particular
date through the control so that formatting can be avoided.
tHANKS
null
Maybe you are looking for
-
Issues Capturing with Final Cut Express
Hi I am currently having issues capturing with Final Cut Express. I am using a Firewire 800 gold speed cable 9pin/4pin with my Sony LSF-S58 camera. I use mini DV tapes and usually capture on other computers with no problems. However this time I am us
-
Can't close a program "ConfigMod.main"
After I downloaded an application to lock my screen, I always have a program called "ConfigMod.main" poping out all the time. I can't close it and shut down my macbook... I tried various anti-vitrus software, but didn't work. According to Activity Mo
-
CV02N Change documents Basic Drawings
Hello Friends, I want to delete the attachemnts in CV02N from icon (at left hand upperside) Services for Object . When you select the icon we can find the Attacments option, if u select the attachemnets you can see the list of attacments available fo
-
Iphone5 does not allow me to download purchased itunes songs on icloud
Hi, I have just purchased an iPhone 5. I have iTunes installed on my iPad and have a large number of songs that I have purchased. I am logged into iCloud with my apple ID, and have no problems downloading Apps that I have purchased and stored in th
-
Aperture 3 and Niksoft Sharpener Pro 3
Now please excuse me if I have this completely wrong! I have only just started using the Sharpener Pro Plug-in. But while watching some of the tutorial videos for Sharpener output, I noticed that the image was constrained to it's correct physical siz