Instrument Control (GPIB, Serial, VISA, IVI)

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

Serial rs232 to PSP 405, (Hex 0xBFFF0072), no communication

Résolu !
Accéder à la solution

 

Hello everyone,

I´m trying to communicate my pc to a Instek power supply, the psp 405. Unfortunately it doesn´t use a standard rs232, it is as follows:

Connection diagramConnection diagram

 

I created my own cable with this specifications, and power on the DTR (pin 4), but since it didnt output 12 V I had to use a external power supply, set the serial settings as it is specified at 2400 baud rate, 8 data bits, etc.

 

I tried to solve it as they did in this thread: psp 603 serial communication

 

It has never responded but before the power supply my usb-232 mark it as : —Port is open, but no valid signals detected, But after it , it marks it only as: —port is open

I can also see that is sending the signal.

 

 So all appears to be working but in NI MAX it marks it as (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.

 

No error appears if I use it in this VI: ni example program I´m using. but nothing happens with any commands, It doesnt read or affect the supply.

 

Maybe my wiring is incorrect, there´s no enought information so I connect the 12 V towards the supply and united the ground as follows:Connection cables.jpg

 

 

 

 

I dont know what else to do.

So thank you for any input you may have.

 

 

 

Tout télécharger
0 Compliments
Message 1 sur 10
6 959 Visites

I thought you have to check the user manual.

 

The new version added the setting for NI-VISA. May check the step 11 for config DTR pin.

 

http://www.gwinstek.com/en-global/Download/DownloadFile/DownloadFile/download%23_%2304_DCPower%23_%2...

 

if you decided not to purchase the GTL-232A cable, make sure you did well connect.

 

 

 

0 Compliments
Message 2 sur 10
6 822 Visites

Hello, thank you for responding,

I tried to set it on by software first but the output wasn´t near enought to 12 V, hence I tried the solution of that past thread.

 

Do you think I´m applying it incorrectly?

0 Compliments
Message 3 sur 10
6 815 Visites

If the voltage of DTR pins is not enough, you willl get a “0xbfff0015, time out error” while you try to read the response string from PSP series.

 

the 0xbfff0072 should the incorrect setting of NI-VISA. May try to reset the NI-VISA.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8awSAC

0 Compliments
Message 4 sur 10
6 809 Visites

Thank you, as you said , since resetting the ni-visa as instructed,the error now is 0xbfff0015, time out error. I dont understand as of why since I´m using a 12 V- 1A charger output.

0 Compliments
Message 5 sur 10
6 802 Visites

I thought you may try to connect the Pin4 to Pin4. And assert the DTR pin by the step 11 in the programming manual.

0 Compliments
Message 6 sur 10
6 800 Visites

Do you mean this? :

step 11step 11

I had already tried it, pin 4 to pin 4, with that configuration but the output wasnt near to 12 V.

 

0 Compliments
Message 7 sur 10
6 794 Visites

Do you still get the timeout error for reading?

0 Compliments
Message 8 sur 10
6 776 Visites

Yes, unfortunately, I don't know what else it could be.

0 Compliments
Message 9 sur 10
6 769 Visites
Solution
Accepté par l'auteur du sujet FrancoCG

Found the solution, apparently the guy who weld the new cable didnt understood the manual, he did it backwards, no problem now.

 

he didnt realize it is like this.inside db9.png

Message 10 sur 10
6 754 Visites