Hi everyone,
I am trying to connect a Joy-it JDS6600 function generator to matlab, I have not been able to do it. I am trying fgen function, but then I need the IVI-C driver. However I can not find it anywhere.
Please, can someone help me? Have somebody had a similar problem?
thank you in advance,
Best regards,

댓글 수: 4

António Diogo
António Diogo 2021년 4월 26일
I have tried to do what you suggested, but I have not gotten the connection between my gunction generator and matlab. In attachment is some command lines I tried. However, I still do not understand to exactly do that. My function generator is connected to COM5
Walter Roberson
Walter Roberson 2021년 4월 26일
When you create a serial() object, after configuring it, you need to fopen() it, and you would not connect()
connect() is for device objects, not "interface objects" (serial() is an "interface object")
António Diogo
António Diogo 2021년 4월 27일
It worked! But, how can i send signals to function generator?

댓글을 달려면 로그인하십시오.

 채택된 답변

António Diogo
António Diogo 2021년 4월 30일

0 개 추천

Problem solved! Thank you @Walter Roberson.

댓글 수: 4

Felicien Filleul
Felicien Filleul 2021년 11월 4일
Hi António Diogo, did you manage to send commands to the JDS6600?
After the lines:
AWG = serial('COM1','BAUD',115200);
fopen(AWG);
I'm trying to control it to output a triangle wave function using this line:
fprintf(AWG,':w21=3.<CR><LF>')
but nothing happens.
Could you please explain how you made it work?
Thank you !
Felicien
António Diogo
António Diogo 2021년 11월 4일
What I have made is to record some signals on the function generator and then every time I need to change the function generator output, I send an input to it to change the wave.
Feel free if you want to ask anything more.
Good look
Felicien Filleul
Felicien Filleul 2021년 11월 4일
Thank you so much for your quick answer!
I would love if you could show me the matlab code you are using to do that because I am really stuck at the moment.
Would it be possible?
Thank you !
Felicien
António Diogo
António Diogo 2021년 11월 4일
At this point, I am only using matlab to command all the setup. In fact, to control the function generator I am using python scripts. You can download them clicking on the link GitHub - on1arf/jds6600_python: python library to remote-control a Junce-Instruments JDS6600 signal generator over USB
Good luck

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

질문:

2021년 4월 26일

댓글:

2021년 11월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by