3 Waveform Chart to a Single Excel but in Different Spreadsheet
I wanted my waveform chart to export the data to excel which I can easily do by right clicking the chart and export to excel. But I have 3 waveform chart and I want to export it to a single excel file but in different spread sheet. How do I do that with the same result with the conventional "right click method and export"?
For this you probably will need to add some code to your VI to do this instead of right clicking on the chart. You can use the VIs located in the Programming>Report Generation>Excel Specific pane which has tons of stuff for that.
Attached is an example of a basic VI that populates three waveform charts with random data and creates an excel spreadsheet with each chart's data input into a different workbook. This is rough and you can add a lot more functionality if you want depending on your needs. Just take references to all your charts and put them into an array and feed into the for loop.
(Also there are probably better/cleaner ways to do it but this is the best I've got )
Attachments:
WaveformExcelExample.vi 29 KB
Similar Messages
-
How to Display Multiple rows in a single row but in different columns (Oracle 11.2)
Hello All,
I have a table in which data is stored in the below displayed fashion.
TRANS_ID
Ty_1
NU_1
38960
BP
5215153159
38960
EM
[email protected]
38960
FX
5115538033
38960
HP
4419965055
38960
For some weird purpose, I would have to display the same data in the below listed fashion
TRANS_ID
Ty_1
NU_1
Ty_2
NU_2
Ty_3
NU_3
Ty_4
NU_4
Ty_5
NU_5
38960
BP
5215153159
EM
[email protected]
FX
5115538033
HP
4419965055
If possible, Please guide me in the right direction.
ThanksMultiple inserts do only work with parametrized statements, usually used in interfaces like JDBC, ODBC etc.
With static SQL statements it is not possible.
Regards Thomas -
Saving sql query result as excel file in different spreadsheets
Hi,
I have exported the output of sql into excel sheet as follow:
SET LINESIZE 80
SET PAGESIZE 0
SET FEEDBACK OFF
SET SPOOL ON
SET TERMOUT OFF
SPOOL current_employees.csv
SELECT '"ID","Sales Amount","Region Id","Sales Date"' FROM dual;
set colsep ,
SELECT * FROM sales;
SPOOL OFF
But my question is how can I export SQL output in multiple excel spredsheets?
Is there anything by which I can switch my spreadsheets through the above SQL script?
Regards,
AshishHi,
I have exported the output of sql into excel sheet as follow:
SET LINESIZE 80
SET PAGESIZE 0
SET FEEDBACK OFF
SET SPOOL ON
SET TERMOUT OFF
SPOOL current_employees.csv
SELECT '"ID","Sales Amount","Region Id","Sales Date"' FROM dual;
set colsep ,
SELECT * FROM sales;
SPOOL OFF
But my question is how can I export SQL output in multiple excel spredsheets?
Is there anything by which I can switch my spreadsheets through the above SQL script?
Regards,
Ashish -
I need to put my waveform chart data into an excel graph?
does anyone know how this can be done?
please help,
Harold Timmis
GE Transportation
Harold Timmis
[email protected]
Orlando,Fl
*Kudos always welcomehere..
do this
Message Edited by krispiekream on 11-14-2008 01:58 PM
Best regards,
Krispiekream
Attachments:
excel1.PNG 19 KB
excelPlot.zip 215 KB -
Saving array data from a waveform chart
I am using a CRIO 9004 and a 9237 bridge module to measure some strains from strain gauges. I've got one timed loop that reads the DMA FIFO and puts the arrays of values (16 data points, 4 per channel) into a queue. In the consumer timed loop a For loop scales the binary data, auto indexes it into arrays, then the arrays are merged into a 2D array for the four channels displayed on a waveform chart . Everytime the consumer loop runs it indexes 4 data points (per channel) yet the waveform chart plots them in a consecutive manner and doesn't overwrite the previous four. If I convert the arrays to waveform arrays I don't see anything on the waveform chart.
If I pass the 2D array of data to a array indicator inside or outside the consumer loop I get only 16 data points. I want to save the information that appears on the waveform chart after the consumer loop but because I'm not using waveform data type I can't use the write waveforms to file vi. The waveform chart history buffer has been set to 195360.
Idealy we will run the four channels for 120 seconds charting the data and saving the data. The minimum data rate is 1613kS/s (403 per channel) The data can be saved after the loops have finished gathering and processing or while they are running. I noticed when I tried to write to TDMS it slowed the consumer down. Same thing if I use a shift register with the volume of data.
I suspect I'm not sending data to the chart in the correct manner ( usualy takes two attempts to "clear chart" using shortcut menu). I'm not too familiar with timed loops /producer consumer loops and just tried to put something together based on examples.
I've attached my host vi and front panel screenshot.Hope they appear attached this time.
Attachments:
Basic DMA (Host).vi 444 KB
screenshot2.jpg 113 KB -
Only first plot of waveform chart has run-time menu
Hello again all you helpful forum-goers!
My multi-plot waveform chart is working decently well, but now for some reason only the first plot in the plot legend displays a run-time customization menu when I click on it while the VI is running (allowing me to select the plot color, etc.). All the other plots do nothing when I click on them. I do not have any mouse-down events or filter events of any kind in my VI. I programmatically set the number of plots and the size of the plot legend, along with each plot's name, y index, and color. Any ideas as to what might be going on?
Thanks a bunch as always!
-Joe
Solved!
Go to Solution.Okay, hopefully this will help get some more thoughts / answers flowing. I've copied my strip chart from my actual VI into a test VI, and it still exhibits the problem. On the other hand, I have created a new strip chart from scratch, and it works fine. I have attached both VIs here for you to see. My guess is that some property of the first chart is set incorrectly or something, but I cannot figure out which one (and there are so many!).
Any assistance you can give would be appreciated. The challenge is to get the chart in the first VI working (plots other than the first responding to a mouse click to change their color or other attributes), via changing some attribute of the chart (and being able to tell me which one you changed!).
Thank you again for anyone who can look into this.
-Joe
Attachments:
Test StripChart color selection not working.vi 17 KB
Test StripChart color selection working.vi 12 KB -
How to set maximum number of data points displayed on waveform chart?
I have a waveform chart set to x-autoscale, but after about 1000 data points, it begins to scroll again. How can I display all of the data points being collected, say 2000 points?
Right click on the chart and select Chart History Length. Enter the value that you need. The maximum is 2147483647 points.
-
Downloading different internal table data in a single excel with diff tabs.
Hi gurs,
I have 4 internal tables with me i can able to display in 4 different excel sheets using CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'
But my requirement is i want to download 4 internal table in single excel sheets with different tabs. please send the code if u have.
Thanks and regards.Hi,
If you want to display the content of 4 internal table in different sheets of same workbook then go through below code,
DATA : EXCEL TYPE OLE2_OBJECT,
WORKBOOKS TYPE OLE2_OBJECT,
WORKBOOK TYPE OLE2_OBJECT,
CELLS TYPE OLE2_OBJECT,
SHEET TYPE OLE2_OBJECT,
FONT TYPE OLE2_OBJECT,
H_COM1 TYPE OLE2_OBJECT,
F TYPE RLGRAP-FILENAME,
FILEP TYPE DRAW-FILEP,
G_FILE_DEST TYPE STRING,
G_FILE_TEMP TYPE STRING,
G_SYSUBRC TYPE SY-SUBRC,
G_FILE_SRC TYPE DRAW-FILEP.
START THE EXCEL APPLICATION
CREATE OBJECT excel 'EXCEL.APPLICATION'.
CALL METHOD OF excel 'WORKBOOKS' = workbooks.
SET PROPERTY OF excel 'VISIBLE' = 0.
CALL METHOD OF workbooks 'OPEN' EXPORTING
#1 = filep.
For Sheet1
CALL METHOD OF excel 'Worksheets' = sheet
EXPORTING #1 = 1.
CALL METHOD OF sheet 'Activate'.
FREE OBJECT sheet.
CALL METHOD OF excel 'CELLS' = cells
EXPORTING #1 = 1
#2 = 15.
SET PROPERTY OF cells 'VALUE' = <value>
CALL METHOD OF cells 'FONT' = font.
SET PROPERTY OF font 'SIZE' = '20'.
FREE OBJECT cells.
For Sheet2
CALL METHOD OF excel 'Worksheets' = sheet
EXPORTING #1 = 2.
CALL METHOD OF sheet 'Activate'.
FREE OBJECT sheet.
CALL METHOD OF excel 'CELLS' = cells
EXPORTING #1 = 1
#2 = 6.
SET PROPERTY OF cells 'VALUE' = 'XYZ'.
CALL METHOD OF cells 'FONT' = font.
SET PROPERTY OF font 'SIZE' = '20'.
GET PROPERTY OF excel 'ACTIVESHEET' = sheet.
CALL METHOD OF sheet 'SAVEAS' EXPORTING
#1 = <destination file path where you want to store>
#2 = 1.
CALL METHOD OF workbooks 'CLOSE'.
CALL METHOD OF excel 'QUIT'.
FREE OBJECT excel.
Thanks!
Brunda
'Reward if useful'. -
From sap to excel file with different sheets?
can i upload an internal table from SAP to single Excel file with different sheets for example like : sheet1, sheet2, sheet3.......sheet10. , but need to upload data from sap to excel worksheets ie. from multiple named tabs in Excel. Is this possible, and if so, please can you help and advise me how?
thanks
venkat.
Edited by: Matt on Feb 16, 2009 2:15 PM Removed excessive question marks...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Hi venkat,
Yes indeed it is possible to write data from internal table to different excel sheets. Check out SAP's Microsoft OLE functionality.Search on SDN for OLE . Following are some links
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/sample%252bprogram%252bto%252bopen%252bexcel%252bsheet%252busing%252bole
You can also check out FM ALSM_EXCEL_TO_INTERNAL_TABLE to check how to read different worksheets.
Using the above two resources you can create a program that can upload data to multiple worksheets in the same workbook.
Also see this link
Creating Excel with More than one page
Edited by: aditya aghor on Feb 16, 2009 1:57 PM
Edited by: aditya aghor on Feb 16, 2009 2:02 PM -
Copied a chart as picture in Excel 2007, but picture size goes out of whack in InDesign
I copied a chart as picture in Excel 2007 (selected as shown when printed), but the picture expands across the whole page when I paste into Indesign. Pls help
To place an Excel chart, first convert it to PDF. Then place the PDF file in InDesign.
Copying objects from Excel isn't reliable. -
I was under the assumption that waveform charts in LabVIEW 6i atomaticly displayed wired data with respect to time in seconds. However, I noticed that my chart plots data with respect to the number of data points my VI has generated. Is there anyway to fix this so that the chart actually plots vs. time. I've attached VI. The CIN is to a Computerboards Inc, thermocouple. Any help would be appreciated.
Attachments:
tepTInScan.VI 73 KBIt appears that the chart is set to display relative time but since you don't have the acquisition in any kind of a loop, your relative time is pretty meaningless. You've got the dX of the chart set to be one, so yeah, at the beginning, the x scale numbers are going to be the same as the number of aquisitions until you've run it more than 60 times. At this point, you'll see the x scale show minutes and seconds. If you want absolute time for the x scale, look at the examples Real-Time Chart.vi or Variable-Time Chart XY.vi.
-
Waveform chart to looking like this excel format
hello,
i am using the DAQ assistant.
i configured it to have 9 channels of data.
can someone guy me into exporting the data to look like this excel file?
how can i take the data from the waveform chart and input it into the RAWDATA STRING so that it look like the format in the excel sheet?
thanks!
Attachments:
TCs.vi 108 KB
082714.001.csv 139 KBNo need to delete old posts. It may help someone in the future and if not, it will fall off the main pages and dwell forever in land that time forgot... Or the NSA will grab it.
Using LabVIEW: 7.1.1, 8.5.1 & 2013 -
Waveform chart. Send data to Excel
I am monitoring the output voltage from a electronic circuit using LabView 7.1 and a DAQ card.
I have been able to view the output voltage using a Waveform Chart but i have been unsuccessful sending the data to a file. Only one data point gets saved each time.
I am using the "Write to Spreadsheet File .vi "
Could someone tell me what i am doing wrong?
Please see the program attached below.
Attachments:
Attempt 3.vi 26 KBYou can build a 1D array as your loop runs. Where your data exits the while loop, right click on the border and select 'Enable Index'.
If you want to save data continously, you need to move your 'Write to spreadsheet file' vi inside your while loop. As it is, only the last data point will be saved when you stop your loop.
You will also need to connect a control or constant to the file path input so that you do not get a file dialog every time your loop iterates. Further, connect a True constant to the 'append to file?' input so that you do not overwrite data.
Also, you may want to insert a wait period in your loop to allow other processes to run.Message Edited by DavidT on 04-27-2005 09:16 AM -
Labview absolute time waveform chart to excel
Hi everyone, I have a bit confusing on absolute time waveform chart. My problem is when I want to export to excel, the data duplicate nearly 30 times for each second. My project is about collect temperature from serial port and plot it in waveform chart, and I want to view history data in excel.
Anyone can help to solve my question? I attached my vi here..
Thank you so much..
Attachments:
NEW FINAL1.vi 96 KB
snap.PNG 11 KBYou are getting such a large number of readings because your VI has no timing control in it, if you simply add in a delay somewhere of maybe migrate to an event structure with a timeout then you can control the number of readings that are taken per second.
-
Export all data from my waveform chart to excel
Hello, my name is Chris. I am just learning to use LabView. Everything I have learned so far is through these boards. Which is a valuable tool for someone learning. The VI I am working on is to monitor current from a unit we are testing. I am able to monitor current and have it running in what I believe to be real time. As I said, this is the first one I have made. I am trying to export all the data from my Waveform Chart to a report. Everytime I try I get one instance and it measures 0. I don't know what I am doing wrong. Any help would be appreciated. Also, if you have any suggestions on the all around working of this I would appreciate that as well. Thank you in advance.
Attachments:
Lp Current Test.vi 83 KBHey Christophrt,
If you are trying to display the microseconds for a waveform chart in LabVIEW here is how you can do it:
Go to the Chart Properties>Display Format>X-Axis>Advanced editing mode>enter:
%<%I:%M:%S%6u>T as the format string and you will have the hours: minutes: and seconds to the microseconds.
If you are trying to display the exported data in microseconds in Excel, you will probably have to do some formatting changes in Excel to have that work.
Regards,
Tommy G.
Applications Engineer
National Instruments
Maybe you are looking for
-
New Airport Extreme works fine with everything except my husband's Toshiba running Windows 7
I have no idea how to fix this problem. He scanned his computer (Windows 7) for viruses, and nothing came back. He deleted our home network from his laptop, then added it back. His computer shows that he has "limited access" to our home network an
-
This is what happens when I log in on firefox only! "In an attempt to increase security, you are no longer able to use your personal email to sign into your myWalden portal. Please try again using your WaldenU.edu email." I am not logging in with my
-
"Stack overflow" & "out of memory"
Hello, I have an issue with javascript code : with my own navigation, which includes additional javascript, I have either a "out of memory" error on the declaration of "var strUrl = http://..." in the CommonOpener_CreateExtObject method, or a "stack
-
Yellow tint (lower part of screen)
Good day! I am a very satisfied Z2 user for quite a while now. My problem started recently when I noticed the lower part of my screen developing a yellowish color. Should I send it to Sony service center or should I wait for a firmware update? And wo
-
How to positively get rid of AVG Secure search
I have tried many of the method suggested by user but AVG Secure Search is unaffected or goes away but keeps coming back. I don't understand how it only seems to affect people running Firefox and why Firefox seems to rely completely on forums and sug