File Exchange
Try Origin for Free
The Origin Forum
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
|
Send File to Tech support
All Forums
Origin Forum for Programming
Forum for Automation Server/COM and LabVIEW
Sending data to worksheet (Python)
Note:
Only the poster of this message, and the Moderator can edit the message.
Screensize:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Anti-Spam Code:
Format Mode:
Basic
Help
Prompt
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Red
Yellow
Pink
Green
Orange
Purple
Blue
Beige
Brown
Teal
Navy
Maroon
LimeGreen
Forum:
Forum for Automation Server/COM and LabVIEW
Subject:
Message:
* HTML is OFF
*
Forum Code
is ON
Smilies
I have previously used MATLAB to send data to a worksheet using the command: worksheet.SetData(data,0,0) Where data is a cell array of numbers and strings. Now I'm trying to port my code to python, but this command doesn't seem to work. I keep getting this error: com_error: (-2147352567, 'Exception occurred.', (8177, u'Origin 2016', u'Origin COM Error, argument 1 invalid!', None, 0, 0), None) This time, I have just made data a simple list of lists, as per this example http://www.originlab.com/doc/python: data =[[x for x in range(5)] for x in range(5)] Any thoughts on why this command doesn't work in python? Note: I am able to do just about everything else. I can open up origin, make workbooks, worksheets, and graphs, etc. Origin Ver. and Service Release (Select Help-->About Origin): Origin 2016 (64-bit) Operating System: Windows 10
Check here to subscribe to this topic.
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000