03-16-2016 07:55 AM
Just voted 🙂
03-16-2016 07:07 PM
Thanks Blokk, yes i understand almost everythink and i know about help in Labview i check it but i was need know some specific things, but everythink is clear. But i dont stop aplication when i cancel event in change folder or copy folders and files. i need , that the application stil working,unless exit button is pressed.
I have this conditions:
1. When is application frist time launched and event select path to list its content is automaticaly launched and user cancel it -----> message Application is complete.
2. When user select path to list its content and click to change folder and then click cancel change folder-------------> application is still working, with data wich are content in browser before.
3. When user click to copy some selected data and then cancel select target ------------------------> application automaticaly launch event select path to list its content.
4. When user pressed exit button application is complete.
03-17-2016 12:24 AM - edited 03-17-2016 12:26 AM
@Noro wrote:Thanks Blokk, yes i understand almost everythink and i know about help in Labview i check it but i was need know some specific things, but everythink is clear. But i dont stop aplication when i cancel event in change folder or copy folders and files. i need , that the application stil working,unless exit button is pressed.
Change the error wire connection, connect to stop condition after the Event structure. In this way you will capture errors right after the actual Event case fired. After this you need to handle the errors!
I have this conditions:
1. When is application frist time launched and event select path to list its content is automaticaly launched and user cancel it -----> message Application is complete.
The first time launch you get File Dialog msg before the Event structure (so this is not the Event select path case!). When the user cancels it, it will generate error (code 43). You need to hande this error too. I put an Error Case structure around the Event case for now, but you can handle this other ways too.
2. When user select path to list its content and click to change folder and then click cancel change folder-------------> application is still working, with data wich are content in browser before.
Capture and erase this error, so the application will not stop in this condition.
3. When user click to copy some selected data and then cancel select target ------------------------> application automaticaly launch event select path to list its content.
This is not clear what you want in this case. I just modified the code here to not do anything after cancel, the app still waits for the user in the Event structure. (I put the target folder Dialog inside the Event structure)
4. When user pressed exit button application is complete.
This part is already functional. Exit button = Abort copy proc ("Cancel op!"). Change its text to "Exit" if you wish.
Ok, the above steps should have been programmed by you. Try to understand the functionalities, and also think about how the code could be simplifed/modified to get the same desired functionality. Learn by doing it.
03-17-2016 12:50 AM
There is still a little bug in the code, but I let you fix it.
Hint: after you specify a new Source path ("Change_start_folder"), this new path information is not kept for the next Event case (like when you specify the Target folder). Use a shift register to keep this info!
03-20-2016 07:15 AM
Thank you blokk so much, I will try learn everythink about it, lets do it!
03-20-2016 07:20 PM
Everythink work good! 🙂 Thanks so I make one more thing what i would like to do. It is image (jpeg or png) insight from array. I need one button 'VIEW' , which can doing insight of image wich i mark in browser (array) in real time.
Now i make insight only for jpeg files, which are display every time after your copy or if you abort select target folder event.
How to make it? I need read index array and convert it to path for loading image files? But i think i need some conditions too (when files are not images -> jpg or png).
So, one more time - one button, which can do insight of image, which i mark in browser in real time.
03-21-2016 01:47 AM
@Noro wrote:Everythink work good! 🙂 Thanks so I make one more thing what i would like to do. It is image (jpeg or png) insight from array. I need one button 'VIEW' , which can doing insight of image wich i mark in browser (array) in real time.
Now i make insight only for jpeg files, which are display every time after your copy or if you abort select target folder event.
How to make it? I need read index array and convert it to path for loading image files? But i think i need some conditions too (when files are not images -> jpg or png).
So, one more time - one button, which can do insight of image, which i mark in browser in real time.
First of all, tidy up your Block Diagram! You have wires and other objects overlapping, so difficult to follow what you try to do. Like the "target path" wire coming from the File Dialog: I have no idea why I see there a node at the right side of the FOR loop. You should attach your VI, and not a screenshot. I do not want to do all of your home work, try to make it, you are not too far, I give you some hints:
03-21-2016 05:49 PM
Sorry, yes I know, but I clean it up as soon as it will be good funcionality. I am beginer in Labiew so sorry for my mistakes.
Btw If I need preview not only jpeg files, but png files too, what will the condition?
03-22-2016 12:18 AM - edited 03-22-2016 12:19 AM
If you program on a messy block diagram, it can also make you have more mistakes since you do not see some wires, objects. So it is a better way to have clean BD from the beginning, just an advice.
About the conditions: Case structures can accept string types too connected to their selector node. It is pretty simple what you can do: extract the extension info of the file name string, so the last three characters, using string functions. After this, you can setup your Case structure to have 3 cases:
03-22-2016 02:18 AM