03-14-2007 09:35 PM
03-15-2007 11:51 AM
03-15-2007 01:41 PM
03-15-2007
01:55 PM
- last edited on
11-07-2025
12:30 PM
by
Content Cleaner
Hi Lao,
Dennis is correct that the digital timing on your E-Series board (60xx) is controlled by your computer (software timed). The outputs will only be able to update as fast as your computer can run the code. You can use timing functions in LabVIEW to measure the time it takes to run each of the digital writes. Also note that the speed is highly dependent on the processes running on your computer. For example, if a virus scanner is running and the user is interacting with the mouse, this will take up processor time and the application will output slower. This means that the time between writes will not remain constant.
If you need correlated (hardware timed) or faster digital output I would reccomend working with an M-Series board. In case you have access to an M-Series board (62xx), I will include a link to an example of timed DIO with ELVIS: [example no longer available]
Regards,
Jennifer O.
Applications Engineer
National Instruments
03-15-2007
02:25 PM
- last edited on
11-07-2025
12:31 PM
by
Content Cleaner
Hi Lao,
I thought I would include one extra suggestion in case you do not have an M-Series board.
With NI-ELVIS, the digital write must go through 2 steps and can slow down the speed at which you can output. You can bypass one step and write directly with DAQmx VIs. This will still be slower than the timing you can achieve with M-Series and will not be deterministic (timing will vary as explained above).
Open the example linked before. This demonstrates how to bypass the ELVIS portion and then performs timed DIO. You can remove the DAQmx Timing (sample clock) from the code and add more DAQmx writes to update the digital outputs.
For readability I recommend using the flat sequence instead of the stacked sequence. To control timing you can add a wait function in each frame of the sequence. I expect that you will be able to approach the 1kHz frequency, but you may not be able to meet it (system dependent).
Regards,
Jennifer O.
03-15-2007 02:25 PM
Hi Jennifer,
Thank you for your reply.
The following is my working enviroument, could you help me to analyse whether the output frequency is too low or reasonable? Thanks a lot.
Hardware specification:
CPU: P4 2.8G
RAM : 1G
Hard Drive: 80G, 7200RPM, 40G free space
OS:Windows XP SP2
software enviroument: Office, Acrobater Reader, IE7, Symantec Antivirus
Is the output frequency for my computer reasonable?
Thanks again for your help.
Lao Wan
03-15-2007 08:49 PM
03-15-2007
09:20 PM
- last edited on
11-07-2025
12:32 PM
by
Content Cleaner
.Hi Lao,
As you can see from the DIO benchmarks for the boards listed, the data rate can easily double between different processors. Also, the bus type is a large factor. PCI and PXI devices are much faster than the USB device. The comparison is on the order of 50-100kHz while the USB device does not reach 1kHz on the systems tested. For this reason you will have to test the card on your own system to determine how fast it can output.
You can find the specifications for the 6062E here. Under the Digital I/O specifications you will see that the theoretical maximum is 50kwords/s and 10kwords/s sustainable (system dependent).
If you just want to output a pulse at 1kHz, you may want to investigate using a counter.
Regards,
Jennifer O
03-15-2007 09:33 PM
03-16-2007 10:38 AM
Hi Jennifer: