How Can I Set the GPIB Timeout When Using an IVI Driver?
Primary Software: Instrument Drivers/IVI>>IVI Compliance Package
Primary Software Version: 2.2
Primary Software Fixed Version: N/A
Secondary Software: N/A
Problem: I am using an IVI driver. With VISA, I could set the timeout value for GPIB communication. There does not appear to be a way to set the timeout value when using an IVI driver.
Solution: The National Instruments IVI drivers do not have a function to set the timeout value of a GPIB session; however, the drivers are written using VISA therefore the timeout value can be set using a property node. The following is a list of steps that will allow the timeout value to be set when using IVI drivers for GPIB communication:
- Obtain the I/O session being used. This can be achieved by either of the two following methods (a & b)
- Place a Visa Resource Name Constant on the Block Diagram and select the GPIB instrument from the drop down box.
- Take the Logical Name input of the Initialize with Options.vi and convert it to an I/O session using the Type Cast function.
- Wire the I/O session into the "Reference" input of the Property Node.
- Select "Timeout Value" from the Property » General Settings menu.
- Right-Click on the Timeout Value of the property node and select the option Change to Write.
- Create a constant input for the Timeout Value and enter in the desired Timeout value.
NOTE For option "a", the property node does not need to be wired into any of the IVI VI's.
- (Option "b" only) Wire the output of the Type Cast function into the reference input of the property node.
- (Option "b" only) Wire the reference output of the property node into the logical name input of the Initialize with Options.vi.
The following is an example of option "a":

The following is an example of option "b":

Related Links:
Attachments:


Report Date: 06/18/2003
Last Updated: 10/28/2005
Document ID: 2YHGPLWC