LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Which kind of array to choose for combining several unsigned byte

Solved!
Go to solution

My suggestion would be to use the example exactly as it is. Call the wrapper VI in each VI you want to save and load the values in and just let it handle all the internal details.

 

If you don't want the files to be in the default data folder itself, you can modify the wrapper to put them in another path, but you should make sure that this folder exists first, because otherwise opening the file will fail. OpenG has a useful VI for that, which creates a folder if it doesn't exist, or you can call the built-in Create Folder primitive and ignore its error output.


___________________
Try to take over the world!
0 Kudos
Message 11 of 13
(451 Views)

Hi Tst, I am adding your code to my original one. And trying to use "action" in the front panel then can select it to load or save. Now save is OK but I do not know how to implement load, could you give me more explanation about how you read out files? Attached is my front panel and insde code. As you can see, I change your "action" to control type. Thank you for advise!

0 Kudos
Message 12 of 13
(429 Views)
Solution
Accepted by topic author bhl3302

This is a pretty basic behavior in data flow - the subVI on the top runs once when the VI starts and loads the values into the controls. The subVI in the event structure runs once when you press the save button, which also stops the loop. You can see this better if you run the example in highlight execution mode. Since this is pretty basic, I suggest you try looking at some of these tutorials.

 

Also, don't use BMP images, as they're very large. PNG is a good format, and if you want, the Code Capture Tool allows you to generate images of LV code quickly.


___________________
Try to take over the world!
0 Kudos
Message 13 of 13
(417 Views)