From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 1073

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
(7,368 Views)
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
(7,362 Views)
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
(7,240 Views)

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 

0 Kudos
Message 4 of 5
(7,224 Views)

It is an amazing tool.Thank you very much!

0 Kudos
Message 5 of 5
(3,670 Views)