04-10-2012 03:34 PM
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
Solved! Go to Solution.
04-11-2012 11:41 AM
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.
04-12-2012 03:13 PM
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?
04-13-2012 12:47 AM
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.
04-13-2012 08:27 AM
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:
and the both the saved html report and the print out still looks like this:
04-16-2012 08:38 AM
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...
04-17-2012 05:24 PM
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?
04-18-2012 06:04 AM
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...