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 Kommentare

António Diogo
António Diogo am 26 Apr. 2021
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 am 26 Apr. 2021
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 am 27 Apr. 2021
It worked! But, how can i send signals to function generator?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

António Diogo
António Diogo am 30 Apr. 2021

0 Stimmen

Problem solved! Thank you @Walter Roberson.

4 Kommentare

Felicien Filleul
Felicien Filleul am 4 Nov. 2021
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 am 4 Nov. 2021
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 am 4 Nov. 2021
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 am 4 Nov. 2021
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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by