LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file added in an executable

Hi,

I'm trying to create an executable of a VI that analyze a song. I really need that specifically song to be part of the executable. Is there a possibility that when an installer is created you can add the song and always use the sane path do the user doesn't have to look for the file?

If someone could help me, it would be great.

Thanks in advanced.
0 Kudos
Message 1 of 4
(2,458 Views)

Hi rrr1,

 

add the file to your build specs and place it in the standard "DATA" folder of your executable. So the file will be always placed in the DATA subfolder of your executable path and so you're able to load the file from always the same (relative) path...

 

Idea: When the song data is really static you can preload it at development stage into a block diagram constant and save it as constant data inside a VI.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,453 Views)
I love the idea but actually don't know how to make a song a constant. I think I have to show always the path.

Can you tell me how to create the constant please? I would love to know how to do it because the song is really static.

I'm really sorry to bother you this much.

Thank you really much.
0 Kudos
Message 3 of 4
(2,431 Views)

@rrr1 wrote:
I love the idea but actually don't know how to make a song a constant. I think I have to show always the path.

Can you tell me how to create the constant please? I would love to know how to do it because the song is really static.

I'm really sorry to bother you this much.

Thank you really much.

Load the song to a waveform or array indicator, change to constant.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 4
(2,426 Views)