12-08-2016 09:23 AM - edited 12-08-2016 09:24 AM
@billko wrote:
...
My favorite way of populating a huge enum - especially if I want to exactly match a document.
You got it!
Take the spreadsheet with the spec (compiled by your customer), edit same and save as tab-delimited... read it into an array and push to the ring... replace ... DONE!
Now if we could only create "Sparse Enums"...
Ben
12-08-2016 09:45 AM - edited 12-08-2016 09:46 AM
Oh if that is what OP wants I made a tool that can go in your Tools menu for making enums with paste support.
http://forums.ni.com/t5/LabVIEW/Creating-a-ENUM-from-EXCEL-Colum/td-p/3276235
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-08-2016 01:56 PM
@Ben wrote:
@billko wrote:
...
My favorite way of populating a huge enum - especially if I want to exactly match a document.
You got it!
Take the spreadsheet with the spec (compiled by your customer), edit same and save as tab-delimited... read it into an array and push to the ring... replace ... DONE!
Now if we could only create "Sparse Enums"...
Ben
Arrrrrgh! I am having that issue RIGHT NOW... 😄
12-08-2016 07:02 PM
For example, I want to create 1000 Enum constant(circled red based on the picture attached) but i don't want to manually create 1000 of them if that makes sense.Sorry if I didn't explained it well
12-08-2016 07:03 PM
I know right?
12-08-2016 07:05 PM
Oh really? I'm still quite new to this and confused about most things but thanks for correcting me:)
12-08-2016 07:06 PM
I'll try doing that.
12-08-2016 08:43 PM
Tips on creating messages in the forums. It looks like you are replying to specific messages, but we can't tell which ones you are replying to. You have 4 consecutive messages 4 minutes with short cryptic messages that have no linkage back to who you are replying to.
Be sure to use the quote button so it enters the original message you are replying to.
Or create just a single message combining all of your replies, and be sure to address the specific person you are replying to prior to each short response you write in that single message.
12-08-2016 09:29 PM
@RavensFan wrote:
Tips on creating messages in the forums. It looks like you are replying to specific messages, but we can't tell which ones you are replying to. You have 4 consecutive messages 4 minutes with short cryptic messages that have no linkage back to who you are replying to.
Be sure to use the quote button so it enters the original message you are replying to.
Or create just a single message combining all of your replies, and be sure to address the specific person you are replying to prior to each short response you write in that single message.
Ahh I see. Thanks!
12-08-2016 09:30 PM
@natasftw wrote:
Try explaining your task. It doesn't make sense to create an enum in a loop. You'd need to be doing some kind of scripting that wouldn't really be all that useful if you're new to LV.
If you want to just copy it, copy/paste works.
If you want them to be linked, take a look at typedefs. I'd strongly suggest looking at this first. Once you make the typedef, then copy/paste works much better
For example, I want to create 1000 Enum constant(circled red based on the picture attached) but i don't want to manually create 1000 of them as that will take up lots of space if that makes sense.Sorry if I didn't explained it well