From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-27-2012 01:05 PM
Hi everyone
I am interested to use .mat data as a control in my LABVIEW program.
As a simple program, if I display control value on any indicator I use only one control and one indicator. Now I am interested that control value would be the same value as it is on .mat data stored any directory.
Thanks
Best Regards
Muhammad Abul Hasan
01-27-2012 01:47 PM
Are you referring to Matlab .mat files, or something else? There is no "control" for .mat files. There are controls to display data, but you have to read the data yourself in code and write that data to an indicator. You could create an XControl if you really wanted to.
01-28-2012 03:00 AM
01-28-2012 03:41 AM
So from what I understand, you want to import the variables from the Matlab workspace to LabVIEW, rather than a .mat file which would consist of Matlab script.....
Is that correct?
01-28-2012 04:16 AM
01-28-2012 04:30 AM
Did you refer to Mathscript node ?
Unless there is application requirement where your matlab workspace variable values are changing dynamically with LabVIEW running in parallel, mathscript node will work.
Else, you can use ActiveX call for Matlab and poll the workspace variables in matlab.