LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 1073

Highlighted

What I'm trying to do: Load items into an enum from a file.

 

How I'm trying to do it: As a first step I am trying to load the contents of the enum from a control. As shown in the image below I have an enum that I've prepopulated with default values. This feeds a case structure that has a case for each enum value.

screen.jpg

 

 

Here's the error message I get when I try to run the VI:

 

error1073.PNG 

 

Can anyone tell me why I'm getting Error 1073 and how to fix it? Or is there another way to accomplish what I'm trying to do that would avoid this error?

0 Kudos
Message 1 of 5
(4,659 Views)
Highlighted
Well, as the message says, you can only make changes when the VI is in edit mode and that means you can't run it and make changes at the same time. A quick search found this post.
Message 2 of 5
(4,653 Views)
Highlighted
I mistakingly replaced a text ring with an enum control and was trying populate the strings of the control programatically and received the same error you did.  Apparently you can do this with a text ring and not with an enum.  I went back to the text ring and the problem went away.  Maybe this would work for you.
Message 3 of 5
(4,531 Views)
Highlighted

I found this very usefull code in a post I can't find back. The author information are in the block diagram.

 

This code is used to convert an array of string to an enum control, type def or strict type def.

 

Ben 

--------------------------------------------------
The best way to say thanks is to give kudos!
0 Kudos
Message 4 of 5
(4,515 Views)
Highlighted

It is an amazing tool.Thank you very much!

0 Kudos
Message 5 of 5
(961 Views)