NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Jeff_EPS
Posts: 6
0 Kudos

Slow Data Response, Display

Hi,

I am running a fairly large worksheet that needs to interact with PCIboads from measurement Computing at a very high speed in order to interact with my machine. One of these boards is a Data Acquisition board, and the other is a Digital Input Output board, controlling switches.

 

The program only seems to run smoothly when I have the sampling rate very low (2 Hz's). I need to be running at a much higher sampling rate . I understand that the faster my sampling rate the slower it displays, but by checking the files that I am writing to, I can see that it is not actually gathering data at this speed. I am using a brand new fast computer so processing power should not be a problem. 
 

Is this a problem with dasylab itself? My program?

 

I have attached my program below.

Active Participant
CJ_Butler__DASYLab_Pro
Posts: 739
0 Kudos

Re: Slow Data Response, Display

I need to know the exact hardware devices that you are using.

 

- cj
Member
Jeff_EPS
Posts: 6
0 Kudos

Re: Slow Data Response, Display

The two boards are:

 

PCI-DAS6033 from measurement computing

PCIe-DIO96H from measurement computing

 

the PCI-DIO96H board connects to a CIO-ERB48 relay board (below)

 

 

 

http://www.mccdaq.com/PDFs/Manuals/CIO-ERB48.pdf

 

Active Participant
CJ_Butler__DASYLab_Pro
Posts: 739
0 Kudos

Re: Slow Data Response, Display

Here's the bad news -- I don't have that hardware combination here, so I cannot reproduce it.

 

I do know that the A/D card is hardware timed, and the timing is well defined by the clock on the device.

 

The DIO card is software paced, which means that the program (DASYLab and its driver) are using a PC timing source. The highest possible update rate is determined by a lot of factors, including the computer and the whims of the guy who wrote the driver :smileywink:

 

And you have a relay board which is relatively slow. That may determine the maximum output rate.

 

So, if the input channels are connected to the output channels, you need to reduce the output rate to the Digital Outputs. Does that make sense?

 

You can sample the Analog inputs at a high rate, and then use an average or a separate module to reduce the sample rate before it gets to the Digital Output module. All channels connected to the output need to use the same rate. You're using the "Driver", and can leave that at the lower rate when you increase the Dev1-AI HW rate.

 

If you need more help with these devices, and to determine the highest possible sample rate for the PCIe-DIO96H, you need to contact Measurement Computing directly. Call 508-946-5100 or go to www.mccdaq.com. They are staffed from 8 AM to 6 PM, EDT.

- cj
Member
Jeff_EPS
Posts: 6
0 Kudos

Re: Slow Data Response, Display

The max sampling rate for the DIO96H board seems to be 33.33 Hz and weirdly enough the program runs fairly smoothly at this speed. However, when I try and run at speeds in between that (say 20 Hz) the program seems to freeze/lag and not disply the inputs at the correct speed. I have all of the boards set to the lower sampling rate, so the interaction should be fine. Do you have an explaination for why some sampling rates work and others dont?

Active Participant
CJ_Butler__DASYLab_Pro
Posts: 739
0 Kudos

Re: Slow Data Response, Display

No... that sounds like a driver interaction, and the folks at Measurement Computing are best equipped to answer that. 

They do provide DASYLab support, too!

- cj
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page