jojo_lapin Posted January 29, 2009 Report Share Posted January 29, 2009 Hi, Is it possible to have the .mat file, which is a Matlab file, while data acquisition of several canals with Labview? Thank u. Quote Link to comment
Anders Björk Posted January 30, 2009 Report Share Posted January 30, 2009 QUOTE (jojo_lapin @ Jan 28 2009, 10:59 PM) Hi,Is it possible to have the .mat file, which is a Matlab file, while data acquisition of several canals with Labview? Thank u. Ok Read mat-file while run DAQ in parallel, yes it is possible! Quote Link to comment
jojo_lapin Posted January 30, 2009 Author Report Share Posted January 30, 2009 QUOTE (Anders Björk @ Jan 29 2009, 08:45 AM) OkRead mat-file while run DAQ in parallel, yes it is possible! Thank u for your reply. What is DAQ? Can you explain further plz, Iam a beginner:( Quote Link to comment
Dan DeFriese Posted January 30, 2009 Report Share Posted January 30, 2009 QUOTE (jojo_lapin @ Jan 29 2009, 05:30 AM) Thank u for your reply.What is DAQ? Can you explain further plz, Iam a beginner:( Data AQuisition. He means that you can do file input/output and hardware input/output at the same time. Quote Link to comment
Maca Posted January 30, 2009 Report Share Posted January 30, 2009 QUOTE (jojo_lapin @ Jan 29 2009, 07:59 AM) Hi,Is it possible to have the .mat file, which is a Matlab file, while data acquisition of several canals with Labview? Thank u. Maybe you should restate your question, as its a bit hard to understand. What exactly are you trying to do? I assume this topic has something to do with your last topic: http://forums.lavag.org/Convertion-between...7231#entry57231 Quote Link to comment
jojo_lapin Posted January 31, 2009 Author Report Share Posted January 31, 2009 QUOTE (Maca @ Jan 29 2009, 01:28 PM) Maybe you should restate your question, as its a bit hard to understand.What exactly are you trying to do? I assume this topic has something to do with your last topic: http://forums.lavag.org/Convertion-between...7231#entry57231 Hi again, What I would like to do is: make the data acquisition of several channels coming from electrods using labview. As Labview just makes the acquistion in real time, while I need to have the diffrent channels(data: time and voltage) and to keep them, that is why I would like to obtain a .mat file but I don't know how to generate it. Hope I'm more clear:) Thank you. Quote Link to comment
Francois Normandin Posted January 31, 2009 Report Share Posted January 31, 2009 QUOTE (jojo_lapin @ Jan 30 2009, 07:40 PM) What I would like to do is: make the data acquisition of several channels coming from electrods using labview. As Labview just makes the acquistion in real time, while I need to have the diffrent channels(data: time and voltage) and to keep them, that is why I would like to obtain a .mat file but I don't know how to generate it. Hey there Jojo, Have a look at this link on the dark-side. There's a Matlab toolkit for calling LabVIEW VIs, including a way to convert VIs to MEX files as you previously asked here. Quote Link to comment
Maca Posted February 1, 2009 Report Share Posted February 1, 2009 So what you want to do is as follows: Use LabVIEW to acquire and save some data. Use MATLAB to analyise the data. Is this correct? The problem you are having then is getting the data from LabVIEW to MATLAB? First up: A *.m file is a MATLAB script file, while they can contain data as well, they typically are not used for storing large data sets. And in regards to getting the data into MATLAB: If your LabVIEW code saves the data to an ASCII "spreadsheet" file MATLAB can directly import it (using a wizard). You could also programing fill an array from the spreadsheet file if you so wished, but its been way to long since Ive used MATLAB and while I have done it before for the life of me I can't remember how to do it. Quote Link to comment
Francois Normandin Posted February 1, 2009 Report Share Posted February 1, 2009 QUOTE (Maca @ Jan 30 2009, 08:56 PM) A *.m file is a MATLAB script file, while they can contain data as well, they typically are not used for storing large data sets. Actually, a .mat file is a binary file for data. .m files are scripts. .mex files are the ones, from what I understand, that emulate VIs. Quote Link to comment
Neville D Posted February 4, 2009 Report Share Posted February 4, 2009 As far as I remember, the .mat need not be binary. You could probably write the .mat file to look like this in ASCII: A=[1 0 2] (maybe a ; at the end?) and matlab should be able to interpret it as a matrix A. Anyway, the bottom line is: Jojo-Lapin, PLEASE ask questions in a coherent way so that people can actually give you reasonable answers. Looks like people are desperately trying to pull the signal out of noise, but who knows if they are succeeding? N. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.