Control through Matlab via USB interface

Hi, everyone

I were sucessfull in controlling the lynxmotion 6 arm using Matlab via the standard serial port in my PC, for instance:

S=serial(‘COM1’, ‘BaudRate’, 115200,‘Terminator’,‘CR/LF’);
fopen(S)
fprintf(S,’#14P1500S150#15P1500S150’)
fclose(S)

I wanted to present my project using my laptop but i don’t have a serial port in my laptop. So, I tried creating a USB object in matlab but i failed.

I created a USB visa object using the line:

usb = visa(‘ni’,‘USB::0x067b::2303::CN3CRS60JV::INSTR’)

where 0x067b is the vendor ID,
2303 is the product ID and CN3CRS60JV is the serial number
the object was created but when i typed fopen(usb), this message appears:

‘??? Error using ==> icinterface.fopen at 82
Could not open VISA object. Use INSTRHWINFO for a list of available configurations.’

Does anyone know how to fix this or another way to control the arm using Matlab via usb?

Thank you all

Get a USB to serial adapter.

Calling instrhwinfo(‘visa’,‘ni’) will likely help figure out what the valid VISA strings are.