matlab seriiallist and instrhwinfo('serial') output

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

matlab seriiallist and instrhwinfo('serial') output

John Donoghue-3
Can anyone with matlab and the instrument control toolkit post example
output from the following 2 function calls:

instrhwinfo('serial')

seriallist


Thanks


Reply | Threaded
Open this post in threaded view
|

Re: matlab seriiallist and instrhwinfo('serial') output

Alois Schloegl-7
On 5/13/19 2:42 PM, JohnD wrote:
> instrhwinfo('serial')
>
> seriallist


attached is the output

>> SERIALLISTS=seriallist

SERIALLISTS =

  1x2 string array

    "/dev/ttyS0"    "/dev/ttyS1"


>> IHWINFO=instrhwinfo('serial')

IHWINFO =

  HardwareInfo with properties:

     AvailableSerialPorts: {0x1 cell}
           JarFileVersion: 'Version 4.0'
    ObjectConstructorName: {2x1 cell}
              SerialPorts: {2x1 cell}


save -mat InstrTBout.mat IHWINFO SERIALLISTS

>> version

ans =

    '9.6.0.1072779 (R2019a)'

Attached is the file that contains the whole IHWINFO


Cheers,

   Alois



InstrTBout.mat (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: matlab seriiallist and instrhwinfo('serial') output

John Donoghue-3
In reply to this post by John Donoghue-3
> Message: 3
> Date: Mon, 13 May 2019 15:24:12 +0200
> From: Alois Schl?gl <[hidden email]>
> To: <[hidden email]>
> Subject: Re: matlab seriiallist and instrhwinfo('serial') output
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> On 5/13/19 2:42 PM, JohnD wrote:
> > instrhwinfo('serial')
> >
> > seriallist
>
>
> attached is the output
>
> >> SERIALLISTS=seriallist
>
> SERIALLISTS =
>
> ? 1x2 string array
>
> ??? "/dev/ttyS0"??? "/dev/ttyS1"
>
>
> >> IHWINFO=instrhwinfo('serial')
>
> IHWINFO =
>
> ? HardwareInfo with properties:
>
> ???? AvailableSerialPorts: {0x1 cell}
> ?????????? JarFileVersion: 'Version 4.0'
> ??? ObjectConstructorName: {2x1 cell}
> ????????????? SerialPorts: {2x1 cell}
>
>
> save -mat InstrTBout.mat IHWINFO SERIALLISTS
>
> >> version
>
> ans =
>
> ??? '9.6.0.1072779 (R2019a)'
>
> Attached is the file that contains the whole IHWINFO
>
>
> Cheers,
>
> ?? Alois
>
>


Thanks!