05-28-2008 04:17 AM
Test Results: <all the upcomming data is acquired from the instrument>
Channel 1|
FER |
0% |
0% |
0% |
0% |
0.48% |
0% |
|
Frame errors |
0 |
0 |
0 |
0 |
3 |
0 |
|
Frames sent |
106 |
306 |
606 |
306 |
631 |
306 |
05-29-2008 11:24 AM
Hi MAshraf,
There are a number of ways you can write a data file, the best way depends on what you want to do with the data after it is written and saved to the file. For this data I might suggest using the "Write to Measurement File" express VI. You can select options for how you want to segment the data including having one header for each columb. You can find that express vi in the structures function palet under File I/O. Thanks and have a great day.
05-29-2008 11:39 AM
05-30-2008 03:59 PM
06-22-2008 09:40 AM
06-24-2008 06:58 AM
MAshraf,
Looking at your code, I don't see any instrument I/O. Where is the data coming from? The way your code looks now, you are just generating a very simple table with a few rows and columns. You can generate a custom template using the DIAdem report generation VI but this VI is designed to read signals. It will be difficult to built a template that just takes a few text values. It seems like the main issue is that you need a PDF at the end of the day. Is that correct? If so you might try saving this data into a spreadsheet file and then just saving the file as a PDF from Excel. If you have Excel 2007 you can save any file as a PDF.
06-25-2008 01:45 AM
06-26-2008 01:26 PM
Mohammed,
I will speak with one of our DIAdem experts to see if you can do this using the DIAdem report generation express VI. You may actually have to bring your data into DIAdem, you could use a VBScript to automatically bring it into a template and generate the PDF.
06-30-2008 06:05 AM
07-01-2008 06:13 PM
Hello MAshraf,
Have you tried building an array with your data, and then converting it using the Convert to Dynamic Data express VI? It is in the functions pallete under Express » Signal Manipulation » Convert to Dynamic Data. You can then connect its output to Signal input of the NI DIAdem Report Wizard express VI. This express VI allows you to export the signal to a TDM file, and then write it to a TDR report file. Once the report is generated, you can then export it to a PDF, by (1) manually selecting File » PDF Export... from the Report view of DIAdem, or (2) creating a VBScript file that will generate the report automatically, and call it from LabVIEW using the DIAdem Run Automation Command VI (In the Functions palette under Addons » DIAdem » Automation Commands » DIAdem Run Automation Command.vi).
Unfortunately, you cannot include any kind of data but numeric data in the Dynamic Data type. If you want to have other types of data (i.e. string as you mentioned earlier in this thread), you may have to create a VBScript which will fill in this data for you.