LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel

I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel.
When it was explained to me it didn't sound to hard of a task, I have no LabVIEW experience and the tutortial sucks.
0 Kudos
Message 1 of 14
(4,819 Views)


overmyhead wrote:
I have no LabVIEW experience and the tutortial sucks.

Well, then maybe you should look for a career elsewhere. How about cab driver, gardener, cook, or receptionist? 😄 There are plenty of alternatives!
Message 2 of 14
(4,818 Views)
Ow. Someone is grumpy today.

Overmyhead, your best bet is probably Read From Spreadsheet File VI. You can create your text file and every line is read as a row, and by default tabs are read a columns.

Message 3 of 14
(4,792 Views)
 

StevenD: FYI, I did NOT give you the one star rating. I would never do that!


StevenD wrote:
Ow. Someone is grumpy today.

😄
  • Well, this is an assignment, so it is probably homework.
  • Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
  • This would make no sense unless all of it was just covered in class!

This is not a free homework service with instant gratification. 😄

OK! Let's do it step by step. I assume you already have a VI with the digital indicators.

"...but have no idea where to begin".

  1. open notepad.
  2. decide on a format, possibly one line per indicator.
  3. type the document.
  4. close notepad.
  5. open LabVIEW.
  6. Open the existing VI with all the indicators.
  7. (are you still following?)
  8. look at the diagram.
  9. Who made the program?
  10. Does the code make sense so far?
  11. Is it a statemachine or just a bunch of crisscrossed wires?
  12. Where do you want to add the file read?
  13. How should the file be read (after pressing a read button, at the start of the program ,etc.)
  14. ...

See how far you get!



Message Edited by altenbach on 06-24-2008 11:23 AM
0 Kudos
Message 4 of 14
(4,757 Views)
Altenbach...  I admire your patience  😉
Message 5 of 14
(4,726 Views)

One of the great things about labview is how simple it is to run small snipits of code... Do as altenbach suggests, break it down.  You might start by just creating a new vi and plopping down a "Read from Text File" vi. Select your text file as the file path and run it.  Once you have read the file, then you can start experimenting with string parsing functions...

 

-------------

StevenD.... Sorry I'm the one that accedentally gave you the one star... I ment to click on 5 and but had a momentary click dyslexia...Smiley Sad

-------------



Message Edited by StevenA on 06-24-2008 01:14 PM
SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
0 Kudos
Message 6 of 14
(4,712 Views)
No, your right. The question does seem a bit like help me do my homework and was probably not best to open with "the tutorial sucks." Just seemed a bit harsh only to reply, "find a new career path." I was not gonna make a VI for him, but a suggestion for where to get started maybe.

Edit: StevenA

"StevenD.... Sorry I'm the one that accedentally gave you the one star... I ment to click on 5 and but had a momentary click dyslexia..."

You just want the monoply on StevenX dontcha? Smiley Very Happy



Message Edited by StevenD on 06-24-2008 02:17 PM
Message 7 of 14
(4,707 Views)
__________________________________________
You just want the monoply on StevenX dontcha?
___________________________________________
Smiley Very Happy... I really was trying to help out my fellow StevenX... it sure did backfire on me Smiley Happy
SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
0 Kudos
Message 8 of 14
(4,694 Views)
Here is something even easier.
 
Just place a string control on the front panel.  Make the box as large as needed.
 
Go to the block diagram and wire the string control to a Write To Text File vi.
 
Type stuff into the string control (box) and then run the VI.  It will prompt you for a filename.  Give it a filename with extention .txt.
You'll be able to double click the newly saved file and open it with Notepad. 
 
It's a starting point...  THen you can expand.
 
RayR
 


Message Edited by JoeLabView on 06-24-2008 04:24 PM
0 Kudos
Message 9 of 14
(4,677 Views)


JoeLabView wrote:
 

Still not using the CCT?
 
 
As for tutorials, these might help more.

___________________
Try to take over the world!
0 Kudos
Message 10 of 14
(4,668 Views)