LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our General Code Repository Files. Also, before posting here, check to see if your post doesn't fit into another subforum by category.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> LABVIEW AND MATLAB
epravi
post Aug 29 2004, 09:47 AM
Post #1


Active
*

Member
Posts: 11
Joined: 16-August 04
Member No.: 599
LV:7.0


I have a file of temperature adquisition data (data in columns), and want to make some operations in the Matlab script node. Imagine I get one of the columns as a vector. How can I easily get element by element of the vector to introduce it in the Matlab script node?. My matlab program calls one dll that only takes real number, but not vectors.

THANK YOU


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Aug 29 2004, 09:47 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
todd
post Aug 31 2004, 04:36 PM
Post #2


Very Active
***

Member
Posts: 77
Joined: 30-May 03
From: Everett, WA
Member No.: 107
Using LabVIEW Since:2006
LV:7.1.1 ,. ,.
United States Nothing Selected Nothing Selected


Perhaps this answer is too simplistic:

Using the MATLAB Script node, if you only need one value at a time, index the array of data and send one value at a time. (This can't be right.)

Using MATLAB batch mode, you can call a .m file that opens the data file and writes an output file. Use "System Exec.vi" to call MATLAB with the /r flag for Windows (-r for *nix) and the name of the .m file.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Gino
post Apr 17 2006, 09:13 PM
Post #3


One hit wonder!


Member
Posts: 1
Joined: 11-March 06
Member No.: 4404
LV:7.1.1
Italy Nothing Selected Nothing Selected


QUOTE (todd @ Aug 31 2004, 06:36 PM) *
Perhaps this answer is too simplistic:

Using the MATLAB Script node, if you only need one value at a time, index the array of data and send one value at a time. (This can't be right.)

Using MATLAB batch mode, you can call a .m file that opens the data file and writes an output file. Use "System Exec.vi" to call MATLAB with the /r flag for Windows (-r for *nix) and the name of the .m file.

Hi! I’m a new member for this forum.
Can I save the file in labview in .mat form?
Thanks and sorry for my english.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Guillaume Lessar...
post Apr 18 2006, 04:22 PM
Post #4


Very Active
***

Member
Posts: 67
Joined: 16-September 05
Member No.: 3022
Using LabVIEW Since:2004
LV:8.5 ,8.2.1 ,.
ca_quebec us_new_mexico United States


QUOTE (epravi @ Aug 29 2004, 03:47 AM) *
I have a file of temperature adquisition data (data in columns), and want to make some operations in the Matlab script node. Imagine I get one of the columns as a vector. How can I easily get element by element of the vector to introduce it in the Matlab script node?. My matlab program calls one dll that only takes real number, but not vectors.


How about calling the DLL from LabVIEW? If it's a special matlab-friendly DLL, maybe you can make another DLL that wraps it with a labview-friendly interface... =)

--------------------
Guillaume Lessard


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
torekp
post May 11 2006, 12:45 PM
Post #5


Very Active
***

Member
Posts: 110
Joined: 31-March 06
From: Detroit (work) / Ann Arbor (home), Mich.
Member No.: 4616
Using LabVIEW Since:2001
LV:8.5 ,. ,.
United States Nothing Selected Nothing Selected My Gallery


More free advice worth twice the price:

If you're at all familiar with Matlab, I would strongly urge you to write a version of the Matlab program that can handle a whole array at once. Array manipulation is what makes Matlab great! If there's a lot of data, your performance will improve.

--------------------
Paul Torek, Ypsilanti/Trenton/Belleville, Michigan


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 9th January 2009 - 02:39 AM