# How to calculate min/max scan rate of PCI-MIO-16XE-50

My board: PCI-MIO-16XE-50 , 20MHz timebase
The min/max scan rate is0.00596-20K scan/s and the channel rate is 1.53-20Kchannels/s
How do they calculate these data?

Hi May
Check out the knowledge base locate at http://digital.ni.com/public.nsf/websearch/EA4E306828AF05B586256B8F00661A8B?OpenDocument . I think it answers your question.
Serges Lemo
Applications Engineer
National Instruments

### Similar Messages

• How to calculate Min & Max temperature with just air temperature

Hi Gurus,
I have a requirement in which I have to build a Bex Query in which I have to find the Min & Max temperature of a day if a specific date range is used in the query.I have checked the multiprovider and there is only one field available
which is "Air temperature" and it's a KF. I have built a query which will give you the temperature for the day if you give a particular date range.
My question is,is it possible for me to find the min and max temperature with just air temperature as input?
Please let me know your thoughts.
Thanks,
Raj

Hi,
You have to create two KFs for Min and Max temperatures,
In  Min Temp KF definition, Aggregation Tab-->Minimum--> reference char as 0calday
In Max Temp KF definition, Aggregation tab-->Maximum-->Reference char as 0calday
Regards,
Suman

• CFM /TR - how system calculate amount based on rate FX 60A

Hi all,
i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
steps input:-
1. header - comp code, product type, trans type
2. partner
3. purchase curr & amount (eg. IDR 8,345,545,500)
4. sale currency only (amount system will auto calculate) USD
5. rate field = 11.553
6. spot rate will auto pick up from rate
7. value date
8. contract date
upon TBB1 no error. posting log as follows:-
FX1000+ : 40 8,345,545,500 IDR bank GL acc
50 8,345,545,500 IDR clearing acc
FX2000- : 40 722370.42 USD clearing acc
50 722370.42 USD bank GL acc
but upon TPM18 error occurred as follows:
DBT_C009 - GL not maintain in acc symbol 5.3.4
DBT_E039 - no posting spec assigned to update type
DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
50 0 USD, 431,977,511 IDR clearing acc
so, after maintained DBT_C009 as follows still error for DBT_E039:
40  0 USD, 38 IDR clearing acc
50  0 USD, 38 IDR P&L gl acc
what i don't understand is how system calculate and get DBT_C009 & DBTE039.
what is the function of TPM18?
thanks.

Hello Prarnod,
I have done the first node only for actuals that come from the integration to the internal order.
I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
Thanks,
Paul

• How to do a single channel DAQ using NI-DAQ driver software with a PCI-MIO-16XE-10 card

Hi,
I would like to find out how I could do a simple one channel Data Acquisition from a signal generator using the NI-DAQ driver software with a PCI-MIO-16XE-10 card.
I have written some test problem but even when the signal generator is turned on/off I get back some weird values.
Here is my code.
CString sFunctionName("");
double volt[OUTPUT_POINTS*2];
double out[OUTPUT_POINTS*2];
short timebase, ready, code, stopped;
unsigned short sampleInterval;
int i, status, count=0;
unsigned long update, points;
short* ai_buffer;
short output_ch_vector[16];
int local_ITERATIONS = 2;
SAFEARRAYBOUND bound[1];
double dataItem = 9.9;
long j;
long k;
double* pTheValues;
LPTSTR lpsz_ErrMsg;
// Initialise device
status = Init_DA_Brds (deviceNumber, deviceNumberCode)
Initializes the hardware and software states of a National Instruments
DAQ device to its default state and returns a numeric device code that
corresponds to the type of device initialized
Init_DA_Brds(DEVICE, &code);
// Check return code from Init_DA_Brds
Code return should be 204: PCI-MIO-16XE-10.
if (code < 0)
CString sError;
sError.Format("Code error: %d", code);
if (code == -1)
sError = sError + ": No device found";
LPTSTR lpsz = new TCHAR[sError.GetLength()+1];
_tcscpy(lpsz, sError);
AfxMessageBox(lpsz);
delete lpsz;
return S_FALSE;
// Allocate memory for analog output and input arrays
//ao_buffer = new short[OUTPUT_POINTS*2];
ai_buffer = new short[OUTPUT_POINTS];
// Set double-buffering
status = DAQ_DB_Config (deviceNumber, DBmode)
Enables or disables double-buffered DAQ operations.
status = DAQ_DB_Config(DEVICE, 1);
if (status < 0 )
sFunctionName = "DAQ_DB_Config";
goto TidyUp;
// Get the rate parameters
status = DAQ_Rate (rate, units, timebase, sampleInterval)
Converts a DAQ rate into the timebase and sample-interval
values needed to produce the rate you want.
status = DAQ_Rate(RATE, 0, &timebase, &sampleInterval);
if (status < 0 )
sFunctionName = "DAQ_Rate";
goto TidyUp;
// Setup scan
status = SCAN_Setup (deviceNumber, numChans, chanVector, gainVector)
Initializes circuitry for a scanned data acquisition operation.
Initialization includes storing a table of the channel sequence
and gain setting for each channel to be digitized
status = SCAN_Setup(DEVICE, 1, ai_channels, gain);
if (status < 0 )
sFunctionName = "SCAN_Setup";
goto TidyUp;
status = SCAN_Start (deviceNumber, buffer, count, sampTimebase,
sampInterval, scanTimebase, scanInterval)
Initiates a multiple-channel scanned data acquisition operation,
with or without interval scanning, and stores its input in an array
status = SCAN_Start(DEVICE, ai_buffer, OUTPUT_POINTS, timebase, sampleInterval, timebase, 1000);
if (status < 0 )
sFunctionName = "SCAN_Start";
goto TidyUp;
while(count < local_ITERATIONS)
// Check whether we are ready to input another half-buffer
status = DAQ_DB_HalfReady(DEVICE, &ready, &stopped);
if (status < 0 )
sFunctionName = "DAQ_DB_HalfReady";
goto TidyUp;
if (ready == 1)
status = DAQ_DB_Transfer(DEVICE, ai_buffer, &points, &stopped);
if (status < 0 )
sFunctionName = "DAQ_DB_Transfer";
goto TidyUp;
count++;
// Clear the analog input
status = DAQ_Clear (deviceNumber)
Cancels the current DAQ operation
(both single-channel and multiple-channel scanned) and reinitializes the DAQ circuitry.
status = DAQ_Clear(DEVICE);
if (status < 0 )
sFunctionName = "DAQ_Clear";
goto TidyUp;
status = SCAN_Demux (buffer, count, numChans, numMuxBrds)
Rearranges, or demultiplexes, data acquired by a SCAN operation
into row-major order, that is, each row of the array holding the
data corresponds to a scanned channel
status = SCAN_Demux(ai_buffer, OUTPUT_POINTS * 2, 2, 0);
if (status < 0 )
sFunctionName = "SCAN_Demux";
goto TidyUp;
//Convert binary values to voltages (Doesn't actually take a reading from board)
status = DAQ_VScale (deviceNumber, chan, gain, gainAdjust, offset, count, binArray, voltArray)
Converts the values of an array of acquired binary data and the gain setting for that data
to actual input voltages measured.
status = DAQ_VScale (1, 0, 1, 1.0, 0.0, OUTPUT_POINTS , ai_buffer, volt);
if (status < 0 )
sFunctionName = "DAQ_VScale";
goto TidyUp;

Hello,
Please take a look at lots of examples available at :
1. www.ni.com >> NI Developer Zone >> Development Library >> Measurement Hardware
2. C:\program files\national instruments\ni-daq\examples\visualc
Sincerely,
Sastry V.
Applications Engineer
National Instruments

• How do I add a multiplexer accessory device to my PCI-MIO-16XE-10

I've been told I have to add a multiplexer to my PCI-MIO-16XE-10 card (so I can read more than the 10 chanels it provides for at the same time).
How do I do this in the Measurement&Automation Explorer?
Thanks for any help!

Brain&Body,
The card can function as either 8 channels in differential mode or 16 channels (Referenced single ended or None referenced single ended - later uses system ground). The single ended mode(s) will allow you get access to all the channels, though it would mean that you would expect to see more noise on the signal than in differential mode.
You can select these modes within MAX under the properties for the specific DAQ card. Look under analogue input (AI) there you will see a pull down for the modes please select the mode you want. I would recommend that you read the user manual regarding the benefits and limitations of the modes. If using a developement tool (LV,CVI, VB or VC++) please make sure that you are reading single ended signals.
If you wish to expand the system further you might want to consider purchasing a multiplexer system such as an SCXI system (reference page 184 of the 2005 catalogue). I would recommend that you contact your local sales office and speak with one of our Internal Sales Engineers - UK general number of +44 1635 572400.
Kind regards
JoeW
NI-UK

• How to program labview to output continous voltage using NI PCI-MIO-16XE-50

I am an undergraduate student working on a research project. I need to program a labview block diagram to output continous voltage using DAQ NI PCI-MIO-16XE-50. I am new to this and having problems with formulating.
For example, if i need to output 4V, how to output 4V from the DAQ.
I know that there are 2 channels for output. But having problems figuring out which pins to use as well.
If there are any examples,tutorials or whatever hints i could get in order to solve this, that would be great. I am simply confused and wondering where to start.
Thanks in advance.
Confused undergraduate student

Here is an example of how to do some basic analog and digital communication. Since you need a 4V signal you are going to want to use Analog Output.
http://decibel.ni.com/content/docs/DOC-15408
Product Support Engineer
National Instruments

• How is to set the input range of PCI-MIO-16E-1 (6070E) to be 0 to +5V?

How is to set the input range of PCI-MIO-16E-1 (6070E) to be 0 to +5V? Thank you very much.

Hi x2am,
Here is a link to a document about setting input range limits.
DAQ Input Limits
Hope this helps!
Jeremy L.
National Instruments
Jeremy L.
National Instruments

• How to calculate the unit for RATE?

Hey All,
I am not sure if there is something standard for this or not.
I am calculating the 'Rate' by using 'Value/Amount' and 'Quantity' as follows -
Rate == Value /  Quantity
I need to calculate the unit for the rate as below -
Rate unit == Value unit (Currency) /  Quantity unit (Base_uom)
(for example -
if value is 1000 USD and quantity is 10 TO then Rate should come out as 100 USD / TO)
Could anyone please suggest how to calculate the unit in this case?
Many Thanks!
Tanu

Hi,
Go through the below link it may give some idea
http://help.sap.com/saphelp_nw04/Helpdata/EN/19/1d7abc80ca4817a72009998cdeebe0/content.htm
Regards,
Marasa.

• How to set min & max connections for  MSSQLconnection pool

Hi,
I want to set minconnection, maxconnection, idletimeout initial limit for the pool
I have got a MSSQL database connection using following java code.
// MSSQL DbConnection Code
import java.sql.*;
public class MsSqlDataSource
public static void main(String arr[])
Connection con = null;
ResultSet rs = null;
try{
com.microsoft.sqlserver.jdbc.SQLServerDataSource ds = new com.microsoft.sqlserver.jdbc.SQLServerDataSource();
ds.setServerName("10.50.50.51");
ds.setPortNumber(1711);
ds.setDatabaseName("test");
ds.setUser("starhome");
ds.setPassword("starhome");
con = ds.getConnection();
}catch(Exception e){}
}In oracle i have passed min and max number of connection properties through setConnectionCacheProperties method.
//Connection Pooling using Oracle Data Source:
m_connSource = new OracleDataSource();
m_connSource.setDriverType("thin");
m_connSource.setServerName(m_host);
m_connSource.setNetworkProtocol("tcp");
m_connSource.setDatabaseName(m_db);
m_connSource.setPortNumber(m_port);
m_connSource.setUser(m_user);
m_connSource.setPassword(m_password);
// Enable caching. m_connSource.setConnectionCachingEnabled(true);
java.util.Properties prop = new java.util.Properties();
prop.setProperty("MinLimit", m_minConnections);
prop.setProperty("MaxLimit", m_maxConnections);
prop.setProperty("InitialLimit", m_initialConnections);
prop.setProperty("InactivityTimeout", m_inactivityTimeout);
prop.setProperty("AbandonedConnectionTimeout", m_abandonedTimeout);
prop.setProperty("ConnectionWaitTimeout", m_connWaitTimeout);
m_connSource.setConnectionCacheProperties(prop);I dont know how to pass min and max number of connection properties for SQLServerDataSource. Is there any method available to pass min and max number of connection properties for SQLServerDataSource.
Iam using Tomcat. I found one way to set min and max connections for pool by doing changes in context.xml and web.xml using below url http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html
I dont want to touch tomcat configuration files. I need to set connection pooling properties which is independent of application server.
Please anybody give solution for this?
Thanks,
Prisha

Hi,
you need to define your database under the DB Admin tab. In the Schema objects node you'll find Sequence Implementations, and there you can definde min max values as well as caching and increments.
Gerald

• How to get min/max price to be captured from last 6months

Hi friends,
I'm confusing about my report requirements can anybody suggest about the below comments.
1) I want to generate report min/max price to be captured for last 6months based on query selection given values e.g: material, calmonth.
2. Query date/Query month is based on Purchase order creation date.
3. When we execute query for given 0material, 0calmonth e.g: 10000 , 12.2008 report output should be last six months min/max price for materials.
How can i get this type of report.
Anybody suggest me on this.
Thanks lot
Siri

Dear Siri,
I understand that your report should be like:
Material     CalMonth    Min Price    Max Price
Have you explored the option of using the Price field with the properties set to Min for one column and Max for another?
Regards,
Nitin S.

• How to get min,max,avg time for query execution?

Dear Friends,
In AWR we are getting avg time taken to execute particular query, how can one get min,max time taken by query during number of executions.
Thanks

I would run the sql in a cursor for loop, to get a quite reasonable execution time without changing the actual execution plan:
SQL> show user;
USER is "HR"
SQL> set timing on
SQL> select count(*) from all_objects;
COUNT(*)
55565
Elapsed: 00:00:03.91
SQL> var p_sql varchar2(200)
SQL> exec :p_sql := 'select * from all_objects'
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> declare
2  t1 timestamp := systimestamp;
3  begin
4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
6  end;
7  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:03.53
SQL> declare
2  t1 timestamp := systimestamp;
3  begin
4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
6  end;
7  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:02.75
SQL> declare
2  t1 timestamp := systimestamp;
3  begin
4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
6  end;
7  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:02.73
SQL> declare
2  t1 timestamp := systimestamp;
3  begin
4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
6  end;
7  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:02.66
SQL> ---- alter system flush shared_pool;
SQL> declare
2  t1 timestamp := systimestamp;
3  begin
4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
6  end;
7  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:02.80
SQL> declare
2  t1 timestamp := systimestamp;
3  begin
4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
6  end;
7  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:02.64
SQL>
https://forums.oracle.com/thread/705536?start=15&tstart=0
Regards
Girish Sharma

• Pivot view  - how to find min & max on a  level lower than selected..

Hi all,
we have a pivot view having structure.
Year
Dept |Count| Min | MAX |
ABC | 87 | | |
XYZ | 44 | | |
Can we find out the min & max in the current year selected on quarter level & not on year and no show quarter on report. I.e the min count & max value of count in the 4 quarters.
also for below structure.
Year
| Q1 | Q2 | Q3 | Q4 |
Dept |Count| Min | MAX |Count| Min | MAX |Count| Min |MAX | Count| Min | MAX|
ABC | | | | | | | | | | | | |
XYZ | | | | | | | | | | | | |
similarly find on quarter & for quarter we want the min & max on month level. i.e minimum & max in 3 months under that quarter.
If we set the aggregation level as Min in max in pivot itself it shows the min & max same as the count as it calculates on the year level.
Thanks,
Dev

Using hierarchies with exception aggregation can give strange results when aggregating to the parent nodes of the hierarchy. Recommendations:
1) check whether the results are still wrong if you deactivate the hierarchy view
2) build you exception aggregations globally. That is, do not define the exception aggregation in the structure of your query. Build it as a CKF on your InfoProvider.
3) if the above steps don't work, perhaps you can use APD or get the exception aggregations calculated in the load to the InfoProvider rather than in BEx

• How to use min-max functions for date in transformation in bpel?

Hi,
I have a requirement where i need to map earliest date of a Source field among all the dates to a target field in a transformation file in BPEL. There are functions called max-value-among-nodeset and min-value-among-nodeset in mathematical functions but they can be used only for numbers and strings.How to do these with dates?
Thanks,
Prasanna

I exactly have the same requirement.Are you able to solve this?
Its very urgent.Please help me.

• How to create MIN/MAX limitations in SELECT statement ??

Hey,
I have a table which rank90 (city population ranked from 1>*) and state_abrv which has the corresponding state for each city rank.
Is there a way to select only the maximum AND minimum ranks for each state ??
I realise there is a max and min function, but i need to do it for EACH state_abrv.
An example say Los Angeles is ranked 2, San Diego is ranked 6, and San Fransico is ranked 14 (All of these citys are in california (CA)). How do i display a table which lists only Los Angeles (Highest rank) and San Fransico (lowest rank) but DOESNT list San diego ??
Thanks, you guys are helping me heaps and im starting to learn a lot more :P
Message was edited by:
user495524

SQL> create table t (state varchar2(2), city varchar2(20), n number);
Table created.
SQL> insert into t values ('CA','San Francisco',14);
1 row created.
SQL> insert into t values ('CA','San Diego',6);
1 row created.
SQL> insert into t values ('CA','Los Angeles',2);
1 row created.
SQL> insert into t values ('NY','Buffalo',4);
1 row created.
SQL> insert into t values ('NY','Syracuse',7);
1 row created.
SQL> insert into t values ('NY','Mt Kisco',2);
1 row created.
SQL> insert into t values ('NY','Albany',5);
1 row created.
SQL> select * from t order by state, n desc;
ST CITY                          N
CA San Francisco                14
CA San Diego                     6
CA Los Angeles                   2
NY Syracuse                      7
NY Albany                        5
NY Buffalo                       4
NY Mt Kisco                      2
7 rows selected.
SQL> select state, city, n from
2    (
3    select t.*, min(n) over (partition by state) min_n,
4      max(n) over (partition by state) max_n from t
5    )
6  where n in (min_n, max_n) order by state, n desc;
ST CITY                          N
CA San Francisco                14
CA Los Angeles                   2
NY Syracuse                      7
NY Mt Kisco                      2
SQL>

• Help..! ..how to calculate the average interest rate in discoverer?

help..!
I want to calculate average interest rate in discoverer, question describes below:
1. the data have 4 columns, 1 account number, 2 balance, 3.interest rate, 4. product type 1, product type 2
2.average interest rate =
sum (product type1 account bal * rate / sum(product bal)).
a*sum(product bal) is sum every records column 2 according the type of product
b*every record need to calculate using balance to divide sum(product bal) for calculate the rate of the sum(product bal) of type of product
c* sum(b*) is what my answer rate.
3.
I need to display average interest rate in discoverer, and each product have a one average rate according user drill-up or drill-down product dimension.
*product dimension have two level
please tell me how to let every record divide by group sum(product bal)
or tell me how to solve this problem.
thanks!
david

Hi David
Try using the AVG analytic function.
Best wishes
Michael