LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Online Labview report creation video tutorials?

Solved!
Go to solution

Are there any good Labview report creation video tutorials online?

 

I am inexperienced with Labview and would like to read a stream of data from a serial port and place the contents into an ASCII text document (under some custom header information) and would find a video helpful.

 

Thanks

 

 

0 Kudos
Message 1 of 8
(3,245 Views)

Hi robojeff,

 

I found an NI Community post that has a lot of links regarding tutorials for LabVIEW. Regarding what you want to do, on the Serial communication side, I'd like to reference the Basic Serial Write and Read.vi shipping example we have. You can locate that in Help » Find Examples » Hardware Input and Output » Serial.

Now, regarding writing to an ASCII file, you can just add the Open/Create/Replace and wire it to the Write to Text File and that to the Close File. Then just wire the string that comes out of the VISA Read to the Write to Text File.vi.

 

Write to Text File.png

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
Message 2 of 8
(3,229 Views)

Thanks for the tip...

 

I have been playing around with this and I thikn that i just about have it done but need to know the following two things...

 

1. When I print my report, the  text that is in the main tesxt area of the document (not in the header) is a much larger font size than the text in the header. How can I change the text not in the header to be smaller like the header text? 

 

2. How can I set the path constant that I use to set up where the file is saved from the serial number that the user enters?

 

report print2.JPG

 

 

0 Kudos
Message 3 of 8
(3,216 Views)

Hi robojeff,

 

1. I noticed that you have two exactly the same font settings for both Set Report Font VIs. This seems redundant. Why don't you get rid of this second Set Report Font?

 

2. You can use a Concatenate Strings to include the serial number and the extension and then use a Build Path like shown.

 

build path.png

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
Message 4 of 8
(3,209 Views)

Thanks Reds-

 

The path related tip worked great but I was not able to fix the font text size issue yet...

I changed my vi as follows:

 

report.JPG

 

and the both the saved html report and the print out still looks like this:

 

report output.JPG

0 Kudos
Message 5 of 8
(3,190 Views)
Solution
Accepted by topic author robojeff

OK, apparently there is some sort of difference between the font size in a header versus test font size in the body of a report so  I added a Set Report Font" control in the changed the report's body text font size to about half size of that heading font size and when it prints the report body text font size is a little bit bigger...

 

Not sure why this is and thought it might have something to do with the font size highlighted below...

 

font size.JPG

0 Kudos
Message 6 of 8
(3,169 Views)

Hi,

 

I've done a little experimenting and it definitely looks like there are default font sizes for the header vs the body of the report. These defaults look pretty good for a standard report but for an html report like you are doing, they do seem to require some tweaking for readability. Were you able to get the fonts to a size appropriate for your report?

0 Kudos
Message 7 of 8
(3,150 Views)

Yes, thanks...

 

I think that I ended up with Arial 3 for the report font size which matches the Arial 12 font size in the header...

0 Kudos
Message 8 of 8
(3,141 Views)