LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph in MS Office Report Express VI

Hi,

 

I tried using MS Office Report Express VI with template as Custom Report (with a  *.xltx  template). But when i tried to insert a XY Graph (a 2D array with Row(0) as X axis values and Row(1) as Y axis Values) with 'Value Source' : Input ; and 'Input Appearance in Report ' :Graph;  onto the excel report, it shows a entirely messy output as shown below.

 

image_IW.pngimage_72.png

0 Kudos
Message 1 of 16
(5,087 Views)

I've not used that express VI, but it looks like you're graphing Y vs. Y.

0 Kudos
Message 2 of 16
(5,082 Views)

Hi Gregoryj,

 

Please see the new edit i made.The image i loaded initially was wrong.

0 Kudos
Message 3 of 16
(5,072 Views)

Can you upload the VI or a snippet of the VI so I can take a look? I'm using LabVIEW 2014.

0 Kudos
Message 4 of 16
(5,062 Views)

Please attach your VI so we can see what you are doing.  For doing anything that is the least bit "unusual" (like inserting a Graph into an Excel Workbook), you should not use an Express VI.  It is really simple to create a Workbook with an embedded graph -- I posted an example here in the Forums a few years ago (I'll try to find it, but I think if you search for "Revised Example", it will pop up ...).

 

Bob Schor

 

P.S. -- note that what I was posting was a revision to an Example that came with LabVIEW.  I haven't looked at the currently-shipping Examples for RGT, but those would also be a good place to look for suggestions ...

0 Kudos
Message 5 of 16
(5,048 Views)

Looks like you need to transpose the 2D array.

0 Kudos
Message 6 of 16
(5,011 Views)

Hi All,

Thanks for the inputs.

Please find attached the code and also the excel generated.

I actually wanted to get an excel sheet with both arrays and also the labVIEW graph of the same.
The only problem in the excel sheet is the messed up graph. I would want to get the exact same graph that i get in the front panel, on my excel too.
I tried Transposing, concatenating the array.. and all. Nothing worked.
Please help.

0 Kudos
Message 7 of 16
(4,998 Views)

Please find attached a version with the template file also attached. I forgot to attach the same before.
Please change the properties of the Express VI to map the template file and location to save accordingly.

0 Kudos
Message 8 of 16
(4,981 Views)

Transposing the array fixes your problem.

0 Kudos
Message 9 of 16
(4,970 Views)

Sorry, forgot to save my changes before I uploaded it.

 

 

0 Kudos
Message 10 of 16
(4,962 Views)