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
Adding data to graph (MATLAB)
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
Hi, In the MATLAB example, the following lines were used to add data to the graph: % Add data to data range invoke(dr, 'Add', 'X', worksheet, 0 , 0 , -1, 0 ); invoke(dr, 'Add', 'Y', worksheet, 0 , 1 , -1, 1 ); What do these last four digits signify? My only guess right now is that the last digit is the column from which the data is taken, but when I add more lines for an extra data series like this: invoke(dr, 'Add', 'X', worksheet, 0 , 0 , -1, 0 ); invoke(dr, 'Add', 'Y', worksheet, 0 , 1 , -1, 1 ); invoke(dr, 'Add', 'X', worksheet, 0 , 0 , -1, 2 ); invoke(dr, 'Add', 'Y', worksheet, 0 , 1 , -1, 3 ); The resulting graph looks very screwy (see image here: http://imgur.com/7IIV13Q) with straight lines across that shouldn't be there and the data looping back on itself oddly. Thanks, John Origin 2016 Operating System: Win10
Check here to subscribe to this topic.
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000