LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data retrieval timing issue, USB-GPIB?

Hi, I am trying to operate an SRS SR400 photon counter using LabView. I have an optical chopper as the external trigger and I am using both channels A and B in a gated way. Basically I can get the photon counter to operate perfectly being controlled by LabView, but if I collect only one data point at a time in Labview, the data displayed is that recorded on the photon counter 7 counts previously. If I ask LabView to record say ten counts, I generally get 9 of the same number repeated (the same number which appeared on the SR400 7 counts previously) and then a random 0 or 6, like it is trying to pull data from an empty buffer, or when there is no data being sent. I am using a new NI USB-GPIB card to interface the PC and SR400, which I have not used before, we have always used the PCI cards, so I do not know if it is due to the USB interface or my code. Ultimately I would really like LabView to display the most recent value recorded in the photon counter, and be able to do that for as many counts as I want. I am sure the problem lies in some buffering or handhsaking issue, but I'm relatively new to LabView and can't figure it out. Any help will be greatly appreciated! The code I'm using is attached  
0 Kudos
Message 1 of 2
(2,474 Views)
Duplicate
 
The other message contains more info.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 2
(2,448 Views)