10-10-2007 04:36 AM
10-12-2007 09:28 AM
rsv
command. The address 0x40 ( ASCII @ ) corresponds to the Service
Request. For more detail, click here. Other then that, there are labview functions, TestSRQ and WaitSRQ, which as I understand, are not helpful for you.10-12-2007 05:14 PM
Hi MikiLV,
It seems that you are expecting both of the bits to be set in the returned status byte. When you call viReadSTB it returns the status byte of the instrument. Are you expecting both an event to have occurred as well as a message be available? If an event happens OR MAV is set, the instrument will SRQ. If you are only interested in one of these status changes (MAV) you might try disabling all other bits in the status register or try using *SRE 32 ?
Have you tried the GPIB-USB HS on different computers? Also are you using a computer that has USB 1.0 or 2.0 ports? USB 1.0 has much longer latency and might be causing response issues. I have attached graph showing much slower in latency USB 1.0 is below . Something else you might try is inserting waits in the program so the instrument has more time to respond.
Regards,
10-19-2007 04:17 AM
Hi Andy L,
Thank you for your reply. The reason why I send *SRE 48, is because I would like an SRQ event to notify that a message is available (MAV bit and RQS bits set). I also need to be notified, via the ESB bit, if an instrument error has occurred while attempting to make measurements (this can be an EXE, CMD, DDE error). In the event of an error, I will not attempt to fetch measurements from the output queue, but will perform an Error Query instead.
What seems to be happening, as I mentioned in my earlier posts, is that neither the MAV bit nor the ESB bit are set when I receive a Service Request event, but only the RQS bit is set. I am trying to establish whether this 'false' Service Request condition is at all permitted by the GPIB specification, but more importantly whether the GPIB driver on our instrument may have a problem.
The computer I am using is a 2GHz P4 with Windows 2000 service pack 4. I have verified that all USB ports are USB 2.0 compliant. I am a little confused by the latency issue. Since USB 2.0 appears to have a worse latency than a PCI-GPIB card, I would have thought this should give the instrument more time to respond 'correctly'.
At the moment I have modified the driver to discard these 'false' Service Request events, and wait for the 'wanted' event. I am testing this solution as we speak and will be testing the GPIB-USB HS card on different Computers. Although in my view it is good practice to implement safer coding, it does not get to the bottom of the issue and this is what I am trying to do at the moment.
Thanks again for you help.
Michele
11-26-2007 10:59 AM