LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Microsecond delay

For a measurement, I need to insert a delay of 10 microseconds - 100 microseconds at some point in the execution. Is this possible ? If so, how ?

 

 

The code will run on a modern machine with a CPU speed of 1 GHz+, so it should be possible theoretically.

0 Kudos
Message 1 of 14
(5,115 Views)
What OS?
0 Kudos
Message 2 of 14
(5,113 Views)
The speed of the CPU is not relevant here. The OS is, however, as Christian alluded to. While a non-deterministic operating system (like Windows) may have a call to get you a microsecond delay there is no guarantee that you will actually get that. Also keep in mind that the overhead required to actually call those operating system functions from LabVIEW will likely swamp out the actual delay you're trying to achieve in the first place. If you're trying to do this on a non-deterministic OS you may need to consider moving to a real-time OS.
Message 3 of 14
(5,081 Views)
The OS is Linux (Fedora 10) for deployment and OSX (Leopard) for development. Using version 8.6 in both cases.
0 Kudos
Message 4 of 14
(5,060 Views)
Since neither is any more deterministic than windows, you cannot do such a short delay in software. What kind of measurement are you doing?
Message 5 of 14
(5,051 Views)

Like smercurio and Dennis said, with a non-realtime OS you won't be able to get such a timing. Even the jitter is higher then the execution timing you need.

 

 

Christian

0 Kudos
Message 6 of 14
(5,036 Views)
Its a CELIV measurement where I have a triangular ramp (about 60 microseconds long) followed by a 10-100 microsecond delay at zero bias. I could in principle use a software trigger on the instrument to simulate the delay with empty measurements, but was wondering if I could avoid that.
0 Kudos
Message 7 of 14
(5,021 Views)
Whats your measurment hardware? Is it an NI DAQ device?
0 Kudos
Message 8 of 14
(4,970 Views)
The measurement hardware is a PCI GPIB card.
0 Kudos
Message 9 of 14
(4,917 Views)

Well, GPIB (General Purpose Interface Bus) is for communicating with instruments and not a measurement device to acquire signals and trigger an acquisition.

So what instrument is connected to this GPIB card?

 

As far as I understood your application and the timing considerations you will need an FPGA for doing that.

 

 

Christian 

0 Kudos
Message 10 of 14
(4,896 Views)