10-31-2007 06:08 AM
10-31-2007 08:08 AM
11-01-2007 04:53 AM
Thanks for the link Andre,
Although i dont think it is quite what i am after as i do not have the connectivity toolbox for matlab. I have a script that just reads a file, performs some math and then returns a file (.csv's). I am still thinking of just running a batch file on the remote matlab machine which runs the script from the command line using "matlab -r myscript.m". However the bit i am unsure of is how to connect to that machine in arder to run that batch file. Am still thinking that it should be possible using the system exec.vi on the remote matlab machine but how to do that i am unsure of.
Thanks again for the reply though Andre
Craig
11-01-2007 07:51 AM
11-01-2007 02:26 PM
11-02-2007 05:10 AM - edited 11-02-2007 05:10 AM
Hi Cmpowell,
That is the kind of idea i was looking for and datasocket did not occur to me so thanks for pointing me in that direction. I will go off and have a read and try a few vi's over the course of the day and let you know how i get on.
Thanks for the Input 😄
Hi Grant
The function that is falling over is "Interp2" (from my dodgy memory) which is a 2D Interpolation. I use meshgrid also. In effect the process is data in -> meshgrid it -> Interp2(x,y,z,xi,yi,cubic) -> reduce data set -> data out (or something along those lines). However using the cubic interpolation method in the Interp2 function gives NaN and missing data points on my data set. I have gone through this whole process with NI support including the actual code and a results file, however i am not at liberty to post examples here before you ask. If you wish i can dig out the ref numbers and/or e-mails for you.
Also in a further script it was observed that the filtfilt function does not give the same results as the matlab's filtfilt function. This function is supposed to remove dc or end effects of the filter but does not seem to do so under mathscript. I have not contacted NI support over this issue as a matlab guru whom i worked with created his own filtfilt function (filtfiltphil hehe) using matlab primitives which gave identical results under mathscript to those under matlab (for my purpose at least).
Ideally Grant i want these functions working under LabVIEW but i can understand this will take time and money. If i can assist in anyway to get these functions working correctly please let me know although it will have to be through a channel other than the forum for confidentiality.
Thanks in advance
Craig.
Message Edited by craigc on 11-02-2007 05:21 AM
Message Edited by craigc on 11-02-2007 05:21 AM
11-02-2007 10:26 AM
@craigc wrote:
I have gone through this whole process with NI support including the actual code and a results file, however i am not at liberty to post examples here before you ask. If you wish i can dig out the ref numbers and/or e-mails for you.
11-06-2007 09:04 AM
11-13-2007 04:41 AM
Thanks cmpowell,
Managed to get it working through Datasocket. This has enabled me to do more across the network and speed up my test times too!
Travis
Did you get my support numbers OK and is there any updates out of curiosity
Thanks in advance
Craig
11-13-2007 07:29 AM