having difficulty cluster convert to array of enumeratorsHi I have difficulty conver

having difficulty cluster convert to array of enumeratorsHi I have difficulty conver

Post by Matthew Ke » Tue, 04 Sep 2007 13:10:05


The problem you are having is that your enumerated data elements are not the same.  Enumerated data types include the string value,  So, since you have moved None around in the list and taken away a value from each, LabVIEW doesn't consider the data types to be the same.I have attached three VIs showing options.The first uses the same enum type for all the values.  The issue here
is that the value of None doesn't change.  But, you can also convert
this into your array of enums instead of U16s.  Please note that if you
went this route, you should probably use a type def so if you ever had
to add an 8, you'd do it once.  Not knowing your ultimate goal, it is
difficult to suggest a method, although I would use the last example.In the second, I changed your enums to rings.  The rings don't care what the string values are, so you can keep the different pull down lists as you had them in your original.The third uses the different enums you have and uses a typecast to a U16 array.

The second and third examples lose its data meaning because you basically need to know how the values track back to the original data type.  The first keeps the data type.  But again, it may be beneficial in your case to have the values change based on which value is set ot None.MatthewMessage Edited by Matthew Kelton on 09-02-2007 10:49 PM


cluster to array of enumerators.vi:
http://www.yqcomputer.com/


cluster to array of enumerators (ring).vi:
http://www.yqcomputer.com/ (ring).vi


cluster to array of enumerators (typecast).vi:
http://www.yqcomputer.com/ (typecast).vi
 
 
 

1. I am having difficulty in converting string to datetime

2. I am having difficulty trying to create a query/form for calculating training ho

I am a US Marine Crash Fire Rescue Specialist and am
currently assigned as a Training NCO. One of my primary
duties is to keep track of all of the training that we
do. I have 60 Marines, divided into 3 sections, and need
to track the following information on each of them:
1. Class Date
2. Class Hours
3. Class Subject
4. Class Category
5. Number in attendance
6. Total Man Hours
7. And whether or not the individual attended.

I would like to be able to fill-in the information in a
header and then click a checkbox for those who were in
attendance.

My main problem is that I have not figured out how to
create a separate record of each class including all of
the students and who did and did not attend. The
queries/forms that I make never recognize the checkbox as
being new when I make a new class record. They stay
checked or unchecked from the previous class record.

Any help you could give would be GREATLY appreciated!!!

Thank you for your assistance!
David

3. Having real difficulty with datatable relation

4. Having difficulties using COUNTIF with filtered columns

5. Having difficulties with For If Next loops

6. I am having difficulty getting nested subtotals to work anymore?!

7. I am having difficulties reconstituting my Network Places in Fron.

8. Having difficulty updating from Word 98 to Word 2004

9. I am having difficulty in sending email and receiving windows visa mail

10. Having difficulty configuring a File data source.

11. I am now having real difficulties with Excel Interop and VB.NET

12. Having difficulty with scroll bar in VB

13. I having difficulty with new hyperlinks...

14. Having difficulty with online registration

15. Having Much Difficulty Putting Music On PSP system