Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab Script node data type

Hello,

I'm using in a Labview VI a Matlab script node (Matlab 7).
I would like get from Matlab a vector (matrix) of integer (int16) and use it in Labview without converting the datas to double format(Matlab node only support double and complex numbers).

How can I do this?


Thanks for the answer
0 Kudos
Message 1 of 4
(2,692 Views)
There doesn't seem to be a way to do this. Is there a reason why you really need to?
Randall Pursley
0 Kudos
Message 2 of 4
(2,627 Views)
Hello Randall,

Thanks for the answer.

I try to generate signals continously and at high rate (1 Msamples/s on 4 channels). The signals (format int16) a computed in a Matlab node because it is faster. But to write the data to Labview buffer, I have to convert the datas in double format (to export in Labview) and then convert them to int16 (I use the writeInt16 VI from Labview). This way of doing slows down much the process of gneneration. It's why I tries to export directly the datas in int16 format from Matlab.

Félix
0 Kudos
Message 3 of 4
(2,618 Views)
Well, I can't think of any way to do that. The only other thing I can think of is to write you processing in C and compile it.


Sorry I wasn't much help.
Randall Pursley
0 Kudos
Message 4 of 4
(2,613 Views)