epiz Posted July 27, 2023 Report Posted July 27, 2023 I want to write data read from a device to a file. I have figured out to do so. However, I would like to automatically create a file that is named after the serial number of the device. Is there a way that I can do this? Essentially creating a file name from a string and then putting data into the file without having to manually type in a file name and location in the popup box Quote
crossrulz Posted July 27, 2023 Report Posted July 27, 2023 If you can read the serial number from the device, then you can just use Format String to create the file name and then write to the file as you already are doing. Quote
epiz Posted July 27, 2023 Author Report Posted July 27, 2023 Awesome, thank you Just out of curiosity. On my computer I have a vi with multiple sub vis. I also call from folders that I have on my computer. If I was to send over my labVIEW code to someone would I have to attach all sub vis and folders used so they can also use my program? Quote
infinitenothing Posted August 2, 2023 Report Posted August 2, 2023 (edited) Most people compile their code into an EXE for distribution. But, yes, plan B would be to send the top level VI and all the dependencies. One way to do that is to use the "save as previous" feature which will automatically pick up most of the dependencies. https://www.ni.com/docs/en-US/bundle/labview/page/saving-for-a-previous-version.html Edited August 2, 2023 by infinitenothing Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.