Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

nat 7210

we have a board using NAT7210 and a microcontroller.
when i perform read from the pc and i did not finish my data prcessing in the microcontroller the NAT do not wait for the data and the PC application returns on timeout.
is there a way to make the GPIB BUS wait until my data is ready?
 
thanks
Rona
 
0 Kudos
Message 1 of 6
(3,414 Views)
Rona, can you just increase the timeout in the application on the PC? If you are using NI-488 the timeout can be made very large.
0 Kudos
Message 2 of 6
(3,404 Views)
And you can certainly do things better at the instrument end. When the data is available, you can have the instrument issue a service request. Then the controlling program can do a wait on SRQ and when tru, do the read.
0 Kudos
Message 3 of 6
(3,398 Views)

hi

thanks for your answers but...

the problem is that this is that the labview driver need to be the same as  at other products we have. I need to find a way to send the labview device not ready or something semiliar so the pc driver will send read only when data is available....

thanks

Rona

0 Kudos
Message 4 of 6
(3,387 Views)
Rona,

Does the program running on the PC continuously try to read data from the device, even if there is no data available? Or does the program read data when the device has data to send, and the device is slow transmitting the data?

After reading your last post it seems that the first statement is true. If so, then Dennis' suggestion is the best implementation. The device can assert the SRQ signal to notify the host controller (PC) that it has data ready to send. The host (PC) should wait until it receives a service request (SRQ) from the device, serial poll the device, and then read data from the device.

Serial polling is similar to the way interrupts work in a PC. A device can assert SRQ at any time to notify the host of some change in state. The host receives one byte from the device during a serial poll. This byte indicates the reason the device asserted SRQ.
0 Kudos
Message 5 of 6
(3,381 Views)

thank you all for the help.

Rona

0 Kudos
Message 6 of 6
(3,377 Views)