11-15-2010 09:47 AM
I'm trying to convert a table containing the scan results from an Agilent 34980A to a cluster containing two other level of embedded clusters (as the switch_init cluster in the attached vi). The problem is if I use an array of cluster it would not be possible to label each cluster with the signal name (table first column). Also I'm not sure but I think clusters can't be labelled dynamically.
The switch_init cluster is the format I would like to obtain.
note: some unused code is present in the diagram as remnant of some trials.
Ben64
11-15-2010 10:30 AM - edited 11-15-2010 10:31 AM
No need to use an array of cluster. Use a table control, available from your FP tools pallette. This allows you to label column header so on so forth... It is a 2d arrays that allow text column and row header (from off the top of my head)... You have to use a property node to setup row column headers.
11-15-2010 01:55 PM
11-15-2010 04:23 PM
You use the "XML__JKI easyXML.vi" to create the schema, then that VI spits out clutter you clean up. You could try parsing the table into XML yourself... Who knows what in the JKI easyXML VI does? You may wind up with less code that does exactly what you layout.
11-16-2010 11:54 AM
@richjoh wrote:
You use the "XML__JKI easyXML.vi" to create the schema, then that VI spits out clutter you clean up. You could try parsing the table into XML yourself... Who knows what in the JKI easyXML VI does? You may wind up with less code that does exactly what you layout.
> You could try parsing the table into XML yourself.
Yes, you can do that, but it's hard.
> Who knows what in the JKI easyXML VI does?
I do 🙂 -- I helped write EasyXML. Basically, it traverses over the LabVIEW data and parses or generates XML based on that LabVIEW datatype. It essentially lets you generate or parse any XML data by simply creating a cluster with a structure that's similar to the XML data structure.
Cheers,
-Jim