LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file creation

Hi guys,
I'm extremely new to labview and need help creating, writing, and reading
files. Suggestions, websites?
Thanks.
Robert
0 Kudos
Message 1 of 7
(2,691 Views)
I just created this VI today that demonstrates how to read plain text from a file. You specify the file that you want to read and tell it how much to read and it will read it.

This VI was to demonstrate reading a few chunks of text at a time, depending on your likes.

If you want to write text to a file, I'd go with "Write Characters to File" function, which is located in the "File Functions" tab. It's fairly straight forward and you can get most of your answers from help.

Regards,

Shan Pin Koh
0 Kudos
Message 2 of 7
(2,691 Views)
All the necessary function to do all the things you need are in:

Diagram palette -> File I/O

Also, check for the "Search Examples..." option in the Help menu. There are very useful examples of File I/O in the Fundamental section.

Good luck and have fun with LabVIEW!
EJV
www.vartortech.com
0 Kudos
Message 3 of 7
(2,691 Views)
Enrique,
Thanks for the Search Examples idea. Didn't think to look there. Another
question if I might: When you open a vi (such as one of the examples), you
only get the output screen/user screen, not the screen where the actual
programming is done. How do I get that to show?
Thanks again.
Robert

"Enrique" wrote in message
news:506500000005000000F32E0000-991728092000@quiq.com...
> All the necessary function to do all the things you need are in:
>
> Diagram palette -> File I/O
>
> Also, check for the "Search Examples..." option in the Help menu.
> There are very useful examples of File I/O in the Fundamental section.
>
> Good luck and have fun with LabVIEW!
> EJV
>
0 Kudos
Message 4 of 7
(2,691 Views)
The screen with the actual program code is called the "Diagram". To see the Diagram of a LabVIEW program, go to the Window menu and select "Show Diagram".

Also, you may want to know where in the diagram is the terminal that correspond to a specific control or indicator in the Panel (The "Panel" is the "output screen/user screen", as you called) and viceversa. To do that, right-click the control or the node and select "Find Terminal" or "Find Control/Indicator". A quick way to do this is to double-click the control, indicator or terminal.

EJV
www.vartortech.com
0 Kudos
Message 5 of 7
(2,691 Views)
Windows-->Show Diagram or CRTL-E opens the Window with the programming.

Martin

"Mr. Newt" schrieb:
>
> Enrique,
> Thanks for the Search Examples idea. Didn't think to look there. Another
> question if I might: When you open a vi (such as one of the examples), you
> only get the output screen/user screen, not the screen where the actual
> programming is done. How do I get that to show?
> Thanks again.
> Robert
>
> "Enrique" wrote in message
> news:506500000005000000F32E0000-991728092000@quiq.com...
> > All the necessary function to do all the things you need are in:
> >
> > Diagram palette -> File I/O
> >
> > Also, check for the "Search Examples..." option in the Help menu.
> > There are very useful examples of File I/O in the
Fundamental section.
> >
> > Good luck and have fun with LabVIEW!
> > EJV
> >
0 Kudos
Message 6 of 7
(2,691 Views)
Thanks guys. Just what I wanted.
Robert
"Rudigier Martin" wrote in message
news:3B27C5E9.3A147CFD@sbox.tu-graz.ac.at...
> Windows-->Show Diagram or CRTL-E opens the Window with the programming.
>
> Martin
>
> "Mr. Newt" schrieb:
> >
> > Enrique,
> > Thanks for the Search Examples idea. Didn't think to look there.
Another
> > question if I might: When you open a vi (such as one of the examples),
you
> > only get the output screen/user screen, not the screen where the actual
> > programming is done. How do I get that to show?
> > Thanks again.
> > Robert
> >
> > "Enrique" wrote in message
> > news:506500000005000000F32E0000-991728092000@quiq.com...
> > > All the necessary function to do all the things
you need are in:
> > >
> > > Diagram palette -> File I/O
> > >
> > > Also, check for the "Search Examples..." option in the Help menu.
> > > There are very useful examples of File I/O in the Fundamental section.
> > >
> > > Good luck and have fun with LabVIEW!
> > > EJV
> > >
0 Kudos
Message 7 of 7
(2,691 Views)