importation of code matlab in LabView

4 次查看(过去 30 天)
when I call a script code in LabView, i obtain this message "To get started, type doc. For product information, visit www.mathworks.com. "

回答(1 个)

Ayush Singh
Ayush Singh 2024-6-20
Hey Khilfi,
I see you are trying to open a MATLAB script in LabView.
The message that you received typically means that the MATLAB script execution has started but has not necessarily executed your intended script commands. This message is the standard greeting message from MATLAB when it starts up, indicating that MATLAB has been successfully called from LabVIEW but the specific instructions or the script you intended to run might not have been executed correctly.
Below are some initial troubleshooting steps you can try:
1. Check the MATLAB Script Path
  • Ensure that the path to the MATLAB script is correctly specified in LabVIEW. If LabVIEW cannot find your script due to a wrong path, it might just open MATLAB without executing the script.
2. Review the Script Execution Command
  • Verify the command you are using in LabVIEW to call the MATLAB script. You should be using a function or method that explicitly tells MATLAB to run a script, such as `eval`, `run`, or directly invoking the script name if it's in MATLAB's current path.
3. Ensure the Script Does Not Require User Input
  • If your MATLAB script requires user input (e.g., using the `input` function), it might be waiting for input and not proceeding with execution. Scripts called from external applications like LabVIEW should be automated and not require any interactive input.
4. Permissions and Environment
  • Ensure that LabVIEW has the necessary permissions to execute MATLAB scripts and that any environment variables or system paths required for MATLAB are correctly configured.
By going through these steps, you maybe able to diagnose why the MATLAB script is not executing as expected from LabVIEW and resolve the issue.

类别

Help CenterFile Exchange 中查找有关 LabVIEW 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by