Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

REN Line Question GPIB-USB-HS Adatper 488.2

I am trying to figure out when REN is asserted/unasserted. I have a pin of a co processor connected to this line and need to figure out exactly what this line does with each command.

 

Sometimes the REN line doesn't seem to get asserted when I call ibdev until after I send data with ibwrt but sometimes it is automatically asserted with ibdev. Not sure if it is a brief assertion or if it is continuously asserted (maybe I am missing something) after calling ibdev. Calling ibonl seems to have no affect on the REN line. I tried calling ibconfig(ibcSRE), attempting set the state to 1 as well as zero, received errors both times. How do I properly manage/monitor the REN line?

 

Basically I want to assert the REN line when a device handle is created with ibdev and unassert REN before closing out any applications.

 

It seems to be that the NI adapter buffers as much data as possible which is throwing me off.

0 Kudos
Message 1 of 5
(3,218 Views)

Hi hwalke,

 

I have found the best resource for me when using the 488.2 driver is the 488.2 help. I access this by going to NI MAX >> Help >> Help Topics >> NI-488.2. I will then go to the search tab, and search the term I am looking for. I entered in REN and it pulled up many different results that I believe can be helpful to you. You use iblines to return the state of the GPIB control lines. One of these bits is the REN line.

 

I hope this helps!

0 Kudos
Message 2 of 5
(3,176 Views)

I read through some of the commands in there, ibcSRE seems to be of use but it isn't working, as previously stated.

 

0 Kudos
Message 3 of 5
(3,173 Views)

iblines also gives me an error - [8000] EHDL

 

no errors calling ibdev, ibwrt, and ibonl. can communicate with my device fine.

0 Kudos
Message 4 of 5
(3,172 Views)

The EHDL error appears if you have not opened the board. In interactive control you need to do an ibfind "GPIB0" then use the board level commands. Ie:

 

ibfind "GPIB0"
ibconfig ibcsre 1

Then

ibconfig ibcsre 0

That will wiggle REN.

 

But as you have seen, REN goes active right away and there seems to be no way to change that. The documented option does not work. Ie I cannot get ibconfig IbaSRE to work.

0 Kudos
Message 5 of 5
(3,153 Views)