Thorlab Spectrometer CCS175 intigrating with matlab using NI-VISA protocol

4 views (last 30 days)
hi I have a spectrometer from Thorlabs model is CCS175 i would like to acquire the spectrum signals from spectrometer into matlab work space i could not able to on the recording mode I have downloaded the NI-VISA H/W Supporting package i am using VISA_USB protocol
>>my=visa('ni','USB0::0x1313::0x8087::M00267479::RAW');
>> instrfind
Instrument Object Array
Index: Type: Status: Name:
1 visa-generic open VISA-GENERIC-USB0::0x1313::0x8087::M00267479::0::RAW
record(my,'on');
Warning: An error occurred while opening the file. RecordMode has been set to off.
> In icinterface/record (line 81)
I have tried to on the recording status 'on' shows the error
>>set(my,'RecordStatus','on');
Error using instrument/set (line 109) Changing the 'RecordStatus' property of VISA-GENERIC objects is not allowed.
Properties of my device (spectrometer CCS175)
>>get(my) ByteOrder = littleEndian
BytesAvailable = 0
BytesAvailableFcn =
BytesAvailableFcnCount = 48
BytesAvailableFcnMode = eosCharCode
BytesToOutput = 0
ErrorFcn =
InputBufferSize = 512
Name = VISA-GENERIC-USB0::0x1313::0x8087::M00267479::0::RAW
ObjectVisibility = on
OutputBufferSize = 512
OutputEmptyFcn =
RecordDetail = compact
RecordMode = overwrite
RecordName = record.txt
RecordStatus = off
Status = open
Tag =
Timeout = 10
TimerFcn =
TimerPeriod = 1
TransferStatus = idle
Type = visa-generic
UserData = []
ValuesReceived = 0
ValuesSent = 0
VISA-GENERIC specific properties:
Alias = Spectrometer
EOIMode = off
EOSCharCode = LF
EOSMode = read&write
RsrcName = USB0::0x1313::0x8087::M00267479::0::RAW

Answers (0)

Categories

Find more on Simultaneous and Synchronized Operations in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!