ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify date for indicator string

Solved!
Go to solution

Hi, someone can help me?, I have an input of an array1D (ItemNames), and an output of the same array that is modified with another VI (NewItemNames), the problem I have is that when I run the VI and select a date with the Time Stamp, my string indicator is not updated. I know it's because it's outside the Event Case, but if I add it inside as another condition, the program stops when selecting a date. I also couldn't use a while loop because the program wouldn't close when I clicked the cancel or OK buttons. I tried to use while loop or modify the event case, but it didn't work. I need the event case condition to remain the same, as I mentioned, the information that arrives is modified from this VI.

 

Mocte117_0-1690003890838.png

Mocte117_1-1690003902898.png

 

 

0 Kudos
Message 1 of 6
(1,879 Views)

You write to start date and deadline in two places in parallel, and whatever writes last wins.

0 Kudos
Message 2 of 6
(1,860 Views)

Yeah, I know that, I tried to used an event case for that but it didn't work :(.

0 Kudos
Message 3 of 6
(1,846 Views)

@Mocte117 wrote:

Yeah, I know that, I tried to used an event case for that but it didn't work :(.


I have no idea what that means!

0 Kudos
Message 4 of 6
(1,836 Views)

So you apparently want to update the string when the data is selected. You need an event for that.

0 Kudos
Message 5 of 6
(1,832 Views)
Solution
Accepted by Mocte117

See if this can give you some ideas...

 

(If the ItemNames input does not contain a valid date, the current date is filled and the error canceled by wiring to the next structure.)

 

 

altenbach_0-1690020337838.png

 

0 Kudos
Message 6 of 6
(1,826 Views)