LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How open a .txt file using notepad ?

Hi all,
I want to open a txt file created by "Write characters to File.vi" with
notepad , inside Labview .
I think I have to use ActiveX .
0 Kudos
Message 1 of 16
(8,993 Views)
Pedrus wrote:

> Hi all,
> I want to open a txt file created by "Write characters to File.vi" with
> notepad , inside Labview .
> I think I have to use ActiveX .

Why not "System Exec.vi" with the command "notepad """?

Rolf Kalbermatter
Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 16
(8,993 Views)
You can use sys Exec.vi located under communication Vi panel with following string.

notepad [filepath+filename]
0 Kudos
Message 3 of 16
(8,993 Views)
It doesn't work : it opens notepad , but not my txt file !

I set this command line :

"notepad.exe "<>""

and the working directory is : C:\WINNT\system32

Solution ?




"RolfK" ha scritto nel messaggio
news:40c05645@newsgroups....
> Pedrus wrote:
>
> > Hi all,
> > I want to open a txt file created by "Write characters to File.vi" with
> > notepad , inside Labview .
> > I think I have to use ActiveX .
>
> Why not "System Exec.vi" with the command "notepad """?
>
> Rolf Kalbermatter
>
>
0 Kudos
Message 4 of 16
(8,993 Views)
Ok , thanks



"sumitrishi" ha scritto nel messaggio
news:506500000005000000898F0100-1079395200000@exchange.ni.com...
> You can use sys Exec.vi located under communication Vi panel with
> following string.
>
> notepad [filepath+filename]
0 Kudos
Message 5 of 16
(8,993 Views)
Pedrus wrote:
> It doesn't work : it opens notepad , but not my txt file !
>
> I set this command line :
>
> "notepad.exe "<>""
>
> and the working directory is : C:\WINNT\system32
>
> Solution ?

Well the <> characters were to indicate that that is a parameter you
have to fill in. Try without them. Also the quotes around the whole
thing are not necessary but keep them for the document path as it
contains spaces.

Rolf Kalbermatter
Rolf Kalbermatter
My Blog
Message 6 of 16
(8,993 Views)
Hi!

I have the same problem but my filename/path must be variable.
I have error log files. The name appends on the date and time for every new file so that I get different files where I can retrace the date in the filename.

How could I manage this?
~~~~
Regards
Sarah

LV 7.1.1
0 Kudos
Message 7 of 16
(8,993 Views)
Just use Format Into String to create the command that you pass to System Exec. Use a format string like notepad "%s" and the filename is wired to input 1 of the function.
Message 8 of 16
(8,992 Views)

Hi all, 

 

Can some body tell me how to save  notepad file created into a memory card...and write some data into it...

 

George 

0 Kudos
Message 9 of 16
(7,643 Views)

You probably should have created a new message rather than adding on to a 5 year old thread that is only somewhat related to your question. 

 

The memory card should show up as a drive letter on your PC.  So treat it the same way as if you were writing to a file on your hard drive, but use the drive letter of the card instead.

Message 10 of 16
(7,602 Views)