LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Crea un file in labview

Solved!
Go to solution

ooh Perfect , thank you very much .

If i want to move from one directory to other one it is possible?

 

for example if the file exist in c:\desktop\a 

And i want to move the 3 files from  c:\desktop\a  to c:\desktop\b  with the folder already created.

0 Kudos
Message 11 of 29
(953 Views)

The move function works for files and folders. Check the help. (You also need to decide if existing files should be overwritten).

0 Kudos
Message 12 of 29
(948 Views)

to explain more clear.

 

i have to creat inside the usb in d:\a  a new folder  and move the three files already mentioned first in the folder already created .

 

Then the 3 files in inside the usd D:\b , i can do copy instead of move . Then this 3 files must be there in d:\b for all times and when i create a new foldere i must copy these 3 files  inside the new folder already created.

 

 

0 Kudos
Message 13 of 29
(946 Views)

if some of these does not exist , they may dive me an output message folder not exist .

These name files are fixed not change , the thing who change is just the serial number of the folder .

0 Kudos
Message 14 of 29
(945 Views)
Solution
Accepted by topic author A.M.k1984

You can use "copy" instead of "move". rest stays the same.

0 Kudos
Message 15 of 29
(933 Views)

Thank you very much.

0 Kudos
Message 16 of 29
(929 Views)

Hello, i need your help please , iam a new user.

1. I want first to creat a folder "SN12345" in the path D:\serial number with a message at the end "folder created".

2. I want to move three files "a.txt" "b.abin" "c.acmd" from a folder name "Pipo" in "c:\desktop\pipo" to the name of the folder already created in point 1 in D:\serial number\SN12345

3. I want to move the file d.log from a the foldere SN12345 in path d:\serial number\Sn12345 to path c:\desktop\Folder new.

I want to do this operation many times , every time i want to create a new folder Sn12345 ... Sn1234567... Sn....

Then i want to know the last file created in order to move the inside.

Then i want to creat an evet with Three Keys.

I want to do it in this way, not in other way.

Thank you

0 Kudos
Message 17 of 29
(921 Views)

Hi AM,

 

why did you create a new thread for the same topic? Stick with your discussion!

 


@A.M.k1984 wrote:

1. I want first to creat a folder "SN12345" in the path D:\serial number with a message at the end "folder created".

2. I want to move three files "a.txt" "b.abin" "c.acmd" from a folder name "Pipo" in "c:\desktop\pipo" to the name of the folder already created in point 1 in D:\serial number\SN12345

3. I want to move the file d.log from a the foldere SN12345 in path d:\serial number\Sn12345 to path c:\desktop\Folder new.

I want to do this operation many times , every time i want to create a new folder Sn12345 ... Sn1234567... Sn....

Then i want to know the last file created in order to move the inside.

Then i want to creat an evet with Three Keys.


  • You already solved item 1 and 2.
  • Item 3 only requires one more FileMove operation with correct inputs…
  • When you want to do something "many times" then you need to use a loop.
    Btw. an event structure should always be located inside of a loop!
  • When you want to "know the last file" then you should use shift registers in your loop. They allow you to easily store information for the next iteration(s)!
  • Which event do you want to create? Why do you need "three keys"? Which "keys"?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 29
(889 Views)

Yes, you are right ,i am new here, i don't know the procedure and hownit works.

 

I intend with keys( 3 bottom) , one for every event.

The problem is the third event i don't know how to make  remember the last serial and move it to other directory.

 

I need it not for me, i need it for an operator that work in a system ( il will be many operators) and to explain them that work in this way, it's difficult for them.

Them i need to do 3 events.

Every event do one thing.

1. Create folder.

2. Move 3 files in the folder already created in a new path.

3. Move another file .alog  that automatically created by other programs 

Into another path.

I don't know how to make it with shift register ( that remember the last Serial number)

This is to avoid opening folders( it's for make security).

It's difficult to explain all thing -).

I hope i explain my need.

 

Thank you.

 

0 Kudos
Message 19 of 29
(876 Views)

Hi AM,

 


@A.M.k1984 wrote:

I don't know how to make it with shift register ( that remember the last Serial number)


Do the LabVIEW basics as offered at the top of the LabVIEW board!

Shift registers are very fundamental to LabVIEW and it is important you know them (and all the other basics)!

 


@A.M.k1984 wrote:

Them i need to do 3 events.

Every event do one thing.

1. Create folder.

2. Move 3 files in the folder already created in a new path.

3. Move another file .alog  that automatically created by other programs 

Into another path.


You need:

  • an event structure with (atleast) 3 event cases
  • a (while) loop around that event structure
  • a shift register to hold the important data for the next iteration(s)

See how far you get and where you get stuck. Ask for specific problems and we will help you!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 20 of 29
(856 Views)