Changing Script to Function does not work

Post your MATLAB discussions here
Post Reply
PeterLang
Newbie
Posts: 0
Joined: Tue Jun 23, 2020 3:22 pm

Changing Script to Function does not work

Post by PeterLang »

Dear Sir or Madam

I try to use a matlab function in stead of a matlab script but then it shows the error message:

Code: Select all

Warning: Disconnect: No devices found. 
Error using icdevice (line 316)
An error occurred while executing the driver create code.
Undefined function or variable 'ps6000Enuminfo'.
If the error is not an instrument error, use MIDEDIT to inspect the driver.
Is there an issue with matlab functions instead of scripts?
I used one of the examples and just added the

Code: Select all

 function [] = PS6000_ID_Streaming_Example()
togehter with the

Code: Select all

end 
, I saved it even in the same folder like in the examples.

Is there a solution to this problem?

Best regards

Peter Lang

Post Reply