From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB Communication Error

All experts,

I have a strange problem. I am using GPIB write to control a attenuator. Sometimes, when I send commands too quickly, GPIB write has error message, and then after that I've got to physically switch off the attenuator in order to communicate with this machine. I have tried GPIB clear and 488.2 device clear. They all don't work.

Could anybody here to help me out please?

Thanx in advance.

All the best,

Liuhongbo
0 Kudos
Message 1 of 10
(4,440 Views)
Hi, maybe you can try this

Problem 1 :
Use a wait for the multiple sending of command in your VI

Problem 2
As for the clearing of the remote status, maybe you can use the GPIB misc icon. All under the GPIB palette.
For the string cmd, you can use "rsc 0" and then write another one "sre 0"

This rsc 0 string is to Release System control
The sre 0 string command is to clear remote enable of the instrument
0 Kudos
Message 2 of 10
(4,431 Views)
Hi, maybe you can try this

Problem 1 :
Possible solution :Use a wait for the multiple sending of command in your VI

Problem 2
As for the clearing of the remote status, maybe you can use the GPIB misc icon. All under the GPIB palette.
For the string cmd, you can use "rsc 0" and then write another one "sre 0"

Possible Solution :
"rsc 0" string is to Release System control
"sre 0" string is to clear remote enable of the instrument
0 Kudos
Message 3 of 10
(4,430 Views)
Dear Regular,

If I am right, GPIB mis requires to be a system controller status when sending command sre 0/1. However sending rsc 0 is to release system control.

Liuhongbo
0 Kudos
Message 4 of 10
(4,419 Views)
Good Day,
Thankz dude, maybe you just have to wait for someone out there who knows more than 😃 If you want to be the system controller just write rsc 1

Cheers
0 Kudos
Message 5 of 10
(4,416 Views)
Liuhongbo,

What is the error message that GPIB write returns? This might give us some idea of what is going wrong.

Shawn B.
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
0 Kudos
Message 6 of 10
(4,393 Views)