DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

DASYLab RS232 faster

I am working with a AHRS500GA-[] series avionics sensor that outputs data via an RS232 connection.  Currently, I have a DASYLab program operating, but the problem is that the data response is just too slow.  I am experiencing a 20 to 25 second delay in response, and that kind of lag is undesirable to say the least.  I was wondering if there is some way to tweak the program so that the data packets are read at a higher rate or how I can simply skip a few data packets and get a faster response. 
0 Kudos
Message 1 of 4
(7,846 Views)
Hello,
How do you know that it is the program limiting the speed?  Have you tried other programming environments?  Are you sure the instrument can operate at higher speeds?
Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(7,823 Views)

Hello,

there are some aspects which generate an time delay for your COMx output sending.

1) Only last value from Serial output module data input block is used for COMx sending, for instance input blocksize 512 = index 0 ... 511 >> 511. sample is used. So you get first time delay for index 0 ... 510 trash.

2) The cycle time from Serial output module call to next call is dependent on used worksheet blocksize. If possible, it's useful to use small blocksize 1 ...

3) A Serial output module is for DASYLab a data destination and last called from DASYLab worksheet layer. If possible, reduce your worksheet data flow design and you get an faster cycle time from worksheet.

4) Please check the possibilities for faster baud rate for COMx.

Best regards,
MHa

0 Kudos
Message 3 of 4
(7,820 Views)
I believe that the problem is with Serial Input. It simply cannot handle the 10 samples/sec on many input channels. Too much data, and the output of the module lags by 20 to 30 seconds from a change to the sensor.

This is a known limitation of the software - improving the data rate of the comm port does not change how DASYLab processes each data point.

I generally advise users not to expect much better than 1 sample/second from communications based modules (RS232, ICOMS, DataSocket, OPC, etc.)


Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 4 of 4
(7,770 Views)