LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Beginner - How to connect a bundle to Write Measurement File?

How can I do it? I try to use a convert to Dynamic Data to do it, but, the connection between the converter and the bundle doesn't work. It disclaims that the type of the source is a cluster of 4 elements and the type of sinck is a 2-D array of double.

The source is realy a cluster of four elements, but it is an streaming data source. So, I should do a different thing, but I don't have enough experience to imagine something like that. Could anyone to help me to find a solution for this problem?

Thank you in advance!
0 Kudos
Message 1 of 8
(4,108 Views)
It sounds like you need to do two things.  One, convert the cluster to an array (availible on either the cluster palette or the array palette).  Two, change the Convert to Dynamic Data to accept a 1D array of scalars (double click on it to bring up the properties panel).
Message 2 of 8
(4,101 Views)
Hi gborges,

I'm not too sure what you are describing, but it sounds like you have to build an array first using the elements you have, then output it to your 2D array.

If you wish, I could take a quick look at your code (please post in LabVIEW 7.1 format if you do this).  
Anthony Wong
University of Toronto
Chemistry Department
Message 3 of 8
(4,098 Views)
Hi Jasonhill!

Thank you for the response. It solves my problem perfectly. If you could help me again, is there anyway to do it with a polimorfic data cluster?

Regards
0 Kudos
Message 4 of 8
(4,089 Views)
Hrm... I'm not sure what you mean by "polymorfic data cluster".  Polymorphism refers to a function's ability to accept a variety of different inputs and still yeild expected results (try feeding a 1-D array to the increment function for a quick example).  I don't know off hand of any examples of polymorphic output.  Could you elaborate?  Or better yet post some code?  You need not post the whole thing.  Sometimes just a picture of the area in question is enough.
0 Kudos
Message 5 of 8
(4,082 Views)
Hi Jason!

I just attached the picture as you tell me to do.


0 Kudos
Message 6 of 8
(4,075 Views)
Ah,  I see the problem.  Array members must all have the same datatype.  That U64 at the end is what is throwing thigns off.  Can you convert it to DBL?
Message 7 of 8
(4,071 Views)
It works.

Thank you again!
0 Kudos
Message 8 of 8
(4,065 Views)