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: 

Trigger Event through file path control

Solved!
Go to solution

Hey guys,

 

I'm using a vi with a file path control and an event structure. I want an event to be triggered when a new file is loaded. I put filepathin: value Change into the Event structure, but this does not work. How could I do it?

 

Thanks

0 Kudos
Message 1 of 4
(2,505 Views)

Hi volfi,

 

I want an event to be triggered when a new file is loaded.

Where and how is the file "loaded"?

 

I put filepathin: value Change into the Event structure, but this does not work.

How is the value change event of the filepath control related to your "new file is loaded"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,502 Views)

the file is loaded through a file path control in the front panel. The file contains some data which I want to be displayed as soon as I select a new file.

0 Kudos
Message 3 of 4
(2,493 Views)
Solution
Accepted by volfi

Hi volfi,

 

when you select a (new) file with your filepath control you should get a value change event for it.

In the event you should load your data.

 

When you handle things different in your VI then you should attach this VI - that's the way to get better answers here!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(2,483 Views)