Help! Need to generate a sinewave..​..
Hi everyone. I am new to Labview and must prove that using LV and a
data acquisition card that it is possible to produce a sinewave of
1kHz out of the analog out port and also be able to read in the
results thru an external filter to the analog input ports.
The other requirement is the sine wave must run continuosly for at
least 10 seconds without having an glitches from restarting the loop.
I have tried several vendors for acquisition cards and believe that I
need a card that has some sort of FIFO buffer. Anyone have any ideas
on how I accomplish all this? Thanks, Shannon
> Hi everyone. I am new to Labview and must prove that using LV and a
> data acquisition card that it is possible to produce a sinewave of
> 1kHz out of the analog out port and also be able to read in the
> results thru an external filter to the analog input ports.
>
> The other requirement is the sine wave must run continuosly for at
> least 10 seconds without having an glitches from restarting the loop.
>
> I have tried several vendors for acquisition cards and believe that I
> need a card that has some sort of FIFO buffer. Anyone have any ideas
> on how I accomplish all this?
A FIFO buffer will help in this, but more importantly, you need
a driver for the card that supports a kernel level buffer that
can hold the points not stored on the card and access them at
interrupt time. Without this, you are trying to get the OS
to do something every 1ms, and that is too much to ask. There
will be times when it is busy and ignores you for 10ms or more.
If you are using NI-DAQ, there are icons for analog output,
or AO. There are single point AO functions for setting up
a DC voltage, and there are buffered AO routines so that you
can send the entire signal and set it to repeat.
In parallel, you can configure an analog input or AI task
that acquires and does whatever to the signal.
Better yet, you should be able to browse through the Solution
Wizard and find an example that does this or something close
right out of the box.
Greg McKaskle
Similar Messages
-
Javascript array help needed to generate narrative from checkboxes
For context... the user will indicate symptoms in cardiovascular section, selecting "deny all", if none of the symptoms apply. The narrative sub-form needs to processes diagnosis sub-form and generate text that explains the symptoms in a narrative form. For example, if the user selects "deny all" in the cardiovascular section, the Cardiovascular System Review field would have: "The patient denies: High Blood Pressure, Low Blood Pressure. The logic associated with the narrative needs to account for "deny all" and all the variations of selections.
I have what I think is a pretty good start on the logic, but would like some help with the following:
1) loading selected fields into the cv_1s array
2) loading fields not selected into the cv_0s array
3) generating the narrative
See "phr.narrative.cv_nar::calculate - (JavaScript, client)" for the coding I've done thus far. Feel free to comment on any efficiency opportunities you see. I have a SAS programming background, but I'm new to Javascript. Thanks...
RobHi Rob,
One approach would be to give your checkboxes the same name so they can then be referenced as a group and use the caption as the source of your text, so you shouldn't have to duplicate the text and will make it easier to add more later.
Attached is a sample doing that.
Hope it helps.
Bruce -
Help needed in generating random colors...
Please review my code. I'm trying to generate ten triangles in random colors but each time I run the app the triangles are always in the same color (but a different color with each run). What am I doing wrong?
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.*;
public class DrawTriangles extends JFrame
public DrawTriangles ( )
super ( "Drawing Random Triangles" );
setSize ( 400, 400 );
setVisible ( true );
public void paint ( Graphics g )
super.paint ( g );
int [ ] xArray = { 10, 40, 70, 100, 130, 160, 190, 220, 250, 280 };
int [ ] yArray = { 30, 60, 90, 120, 150, 180, 210, 240, 270, 300 };
Graphics2D g2d = ( Graphics2D ) g;
GeneralPath triangle = new GeneralPath ( );
for ( int counter = 0; counter < 10; counter++ )
triangle.moveTo ( xArray [ counter ], yArray [ counter ]);
for ( int count = 1; count < 3; count++ )
triangle.lineTo ( xArray [ counter ] + 20, yArray [ counter ] + 40 );
triangle.lineTo ( yArray [ counter ] + 20, xArray [ counter ] + 20 );
triangle.closePath ( );
g2d.setColor ( new Color (
( int ) ( Math.random ( ) * 256 ),
( int ) ( Math.random ( ) * 256 ),
( int ) ( Math.random ( ) * 256 ) ) );
g2d.fill ( triangle );
public static void main ( String args [ ] )
DrawTriangles application = new DrawTriangles ( );
application.setDefaultCloseOperation ( JFrame.EXIT_ON_CLOSE );You're are only drawing one thing, the GeneralPath, not ten things. If you want your things to have ten different colors then you will need ten different things. (ie, use 10 different general path instances)
-
Hi,
I have the following info from a table named X.
Col1 Col2 Col3 Col4
IT01 20 01 X
IT01 20 50 X
IT01 30 01 X
IT01 30 50 X
If Col4 has value ‘X’ all the 4 combinations of Col2 & Col3, The result should be displayed as
Col1 Col4
IT01 X
If the actual values are like
Col1 Col2 Col3 Col4
IT01 20 01 X
IT01 20 50 X
IT01 30 01 X
IT01 30 50 Y
Then The result should be displayed as
Col1 Col4
IT01 Y
How will generate the query for this?
Thanks,
Titus Thomas
Edited by: Titus Thomas on Apr 20, 2010 2:48 PMTry this:
with test_tab as (select 'ITO1' Col1, 20 Col2, 01 Col3, 'X' Col4 from dual union all
select 'ITO1' Col1, 20 Col2, 50 Col3, 'X' Col4 from dual union all
select 'ITO1' Col1, 30 Col2, 01 Col3, 'X' Col4 from dual union all
select 'ITO1' Col1, 30 Col2, 50 Col3, 'X' Col4 from dual union all
select 'ITO2' Col1, 20 Col2, 01 Col3, 'X' Col4 from dual union all
select 'ITO2' Col1, 20 Col2, 50 Col3, 'X' Col4 from dual union all
select 'ITO2' Col1, 30 Col2, 01 Col3, 'X' Col4 from dual union all
select 'ITO2' Col1, 30 Col2, 50 Col3, 'Y' Col4 from dual)
--- end of mimicking your data; use SQL below:
select col1, max(col4) col4
from test_tab
group by col1;
COL1 COL4
ITO2 Y
ITO1 X -
Help needed to generate new target group for contacts from BP Target Group
In CRM 5.0, we have a functionality in which say we have created a target group (T1) for 10 BPu2019s (organization) and each of these BPu2019s have one or more contact persons associated to them. Now if I want to create a target group for all these contact persons associated to the 10 BPu2019s, in CRM 5.0 I have the option to right click on the target group (T1) and then I get an option u201C generate new target group from contactsu201D. By doing so another target group for all the contacts associated to those BPu2019s will be generated. I am not able to find out the similar option in CRM 2007 (web UI) where in I can create target group for contacts associated to BPu2019s (organization). There should be some work around for this requirement.
Please let me know how to achieve this requirement.
Thanks,
udayaHi udaya,
we're also using that functionality in CRM 5.0. I think it would be worth a combined OSS message to get this functionality back in standard if it isn't there.
Best regards
Gregor -
Help need to generate table table maintainance for one table
Dear SAP Gurus,
Am not a ABAP consultant, currently we have some requirement to maintain some values for custmized table "ZXXXtable", when i checked in SM30 this table is not supporting to maintain.
Now We are trying to gerenate for table maintaince using in SE11 --> Utilties --> Table maintainace Generatore and
but in this screen it is asking function group and packge.
What is this function group and packge,
How to maintain this gunction group and package (or) how can I check for this table function group and package is maintained.
(or) shall we use other function group and package which is already existing in the system.
Please help me to solve this isse.
Thanks & Regards,
MKHi PXG,
this is production system we cannot able to create, shall we use the existing one which is already available under same package, I have checked 4 function groups are available in the same packing , but that function groups belongs to some other table or i don't know some other purpose.
Please help to how can i maintain the table with out creating new function group.
First could please explaing what is the use of function group?
Thanks & Regards,
MK -
Help needed with generating totals
Hi,
Using oracle 11g. I'm trying to create a query using the following data. The data is really a simpler representation of larger data sets that I'm working with. Sorry, but I don't know how to format this better using this UI. Could someone tell me how?
tableA(col1, col2, col3, col4, col5, col6, col7)
(pk1, abc, xyz, def, ghi, eee, fff)
(pk2, abc, xyz, def, jkl, sss, qqq)
(pk3, abc, xyz, mno, pqr, bbb, zzz)
tableB(col1, col2, col3) --col1 is a foreign key to tableA
(pk1, 10, 20)
(pk2, 30, 90)
(pk3, 80, 70)
The result I need should look like the following. I got it to work using union all, but I'd like to know if there's another way to do it without the union all. I tried experimenting with rollup, but couldn't get it to work.
A.col2, A.col3, A.col4, A.col5, A.col6, A.col7, sum(B.col2), sum(B.col3)
abc, xzy, def, ghi, eee, fff, 10, 20
abc, xzy, def, jkl, sss, qqq, 30, 90
abc, xzy, def, totals, , , 40, 110
abc, xzy, mno, pqr, bbb, zzz, 80, 70
abc, xzy, mno, totals, , , 80, 70
abc, xzy, totals, totals, , , 120, 180
totals, totals, totals, totals, , , 120, 180select nvl(a.col2,'totals') col2,
nvl(a.col3,'totals') col3,
nvl(a.col4,'totals') col4,
nvl(a.col5,'totals') col5,
nvl(a.col6,'totals') col6,
nvl(a.col7,'totals') col7,
sum(b.col2),
sum(b.col3)
from tableA a,
tableB b
where b.col1 = a.col1
group by grouping sets((),(a.col2,a.col3,a.col4),(a.col2,a.col3,a.col4,a.col5,a.col6,a.col7))
COL2 COL3 COL4 COL5 COL6 COL7 SUM(B.COL2) SUM(B.COL3)
abc xyz def ghi eee fff 10 20
abc xyz def jkl sss qqq 30 90
abc xyz def totals totals totals 40 110
abc xyz mno pqr bbb zzz 80 70
abc xyz mno totals totals totals 80 70
totals totals totals totals totals totals 120 180
6 rows selected.
SQL>SY. -
Help needed with generating a sine wave with NI-5640R card
Hi there,
I have created a simple programe using the 5640R card, and i am attaching the programe to this question. Using a "sine generation" function/block i am generating a sine wave and outputting to one of the o/p ports and then i am connecting that o/p port to one of the i/p ports using a cable. Then i am plotting what ever i have recieved through the i/p port (this has to be same as what is generated using "sine generator" ). The graph shows that i am not receiving aything from the i/p port, but when i plot the o/p of the "sine generator", i see that the sine generator is generating the sine wave. Please refer to the attached figure and please tell me what mistake i have made in this simple programe.
Thanks,
Sandeep.
Message Edited by sandeep palreddy on 07-08-2007 12:46 PM
Sandeep Palreddy, Graduate Research Assistance
The Microwave Remote Sensing Laboratory (MIRSL)
University of Massachusetts
151 Holdsworth Way
Amherst MA 01003-9284
Attachments:
figure.doc 27 KB
figure.doc 27 KBHi sandeep
This small segment of code will not work on the NI PCI-5640R. This module does not support running the FPGA Vis directly. A Host VI must be run that calls to the FPGA Vis.
I suggest that you look at the ni5640R Analog Input and Output example that is installed by the NI PCI-5640R software.
Jerry
PS: Make sure that you are using the NI PCI-5640R software version 1.1. -
Help needed in generating the query
Hi All,
While fetching the required columns from the table, i also have to display the seq no starting with some no. ( which will vary based on the functionality, so it ll be a sep variable.) and will get incremented with a offset value.
Current code:
select col1, col2, col3 from table1 where col1 = valid_condition; Expected code / Or approach:
select start_val+offset_val , col1, col2, col3 from table1 where col1 = valid_condition; This select query is part of a view and the values for start_val, offset_val will be set as global params.
Is there any easier way of implementing this in the query, other than creating a seq no.
thanks in advance.Hi,
This sounds like a job for ROWNUM or ROW_NUMBER.
The ROWNUM pseudo-column is easy to use, but the numbers aren't necessarily assigned in the order you'd like:
SELECT ename
, 1000 + ROWNUM AS seq_no
FROM scott.emp
WHERE deptno = 30
ORDER BY ename
;Output:
ENAME SEQ_NO
ALLEN 1001
BLAKE 1004
JAMES 1006
MARTIN 1003
TURNER 1005
WARD 1002To assign the numbers in order, you could select ROWNUM from an ordered sub-query (or view), but if you're going to that much trouble, you might as well use the analytic ROW_NUMBER function:
SELECT ename
, 1000 + ROW_NUMBER () OVER (ORDER BY ename) AS seq_no
FROM scott.emp
WHERE deptno = 30
ORDER BY ename
;Output:
ENAME SEQ_NO
ALLEN 1001
BLAKE 1002
JAMES 1003
MARTIN 1004
TURNER 1005
WARD 1006Edited by: Frank Kulash on Nov 25, 2009 1:32 PM -
Help Needed REP-1800 Formatter error VGS-1701 Not enough memory
Hi. Gents
Help needed
I’m working on a Report, it gets some 2 million records and the report pages are approximately 52,000
It works fine if the pages are lesser then 48,000 or the data is less let say one and half a million, the problem occurs only after 48000 + pages formatted.
Report is generated successfully when trying to go to the last page it throw an error.
REP-1800 Formatter error
VGS-1701 Not enough memory
I have already gone through the metalink DOC Id 95505.1 as well as OTN
But all in vain,
Any comments or help much appreciated.
Details are:
Reports 6i (Clients/Server) on Windows platform
(Windows XP Professional with SP 2)
Database: Oracle9i Enterprise Edition Release 9.2.0.5.0
Computer:
Pentium(R) 4, CPU 3.00GHz, 1 GB of RAM
Still 20 GB free space
Thanks & RegardsI don't see the point in making a report with more than 48,000 pages, I think Al Gore will not be happy when you start printing it...
The problem might be caused by the fact that Reports needs to format all output at once, and then even 1GB of memory will probably be not enough. Formatting all pages at once is needed if you use pagination with displaying total number of pages. If you have this, try to get that out of the report definition and try again. -
XML Generation using a sql query in an efficient way -Help needed urgently
Hi
I am facing the following issue while generating xml using an sql query. I get the below given table using a query.
CODE ID MARK
==================================
1 4 2331 809
2 4 1772 802
3 4 2331 845
4 5 2331 804
5 5 2331 800
6 5 2210 801
I need to generate the below given xml using a query
<data>
<CODE>4</CODE>
<IDS>
<ID>2331</ID>
<ID>1772</ID>
</IDS>
<MARKS>
<MARK>809</MARK>
<MARK>802</MARK>
<MARK>845</MARK>
</MARKS>
</data>
<data>
<CODE>5</CODE>
<IDS>
<ID>2331</ID>
<ID>2210</ID>
</IDS>
<MARKS>
<MARK>804</MARK>
<MARK>800</MARK>
<MARK>801</MARK>
</MARKS>
</data>
Can anyone help me with some idea to generate the above given CLOB messagenot sure if this is the right way to do it but
/* Formatted on 10/12/2011 12:52:28 PM (QP5 v5.149.1003.31008) */
WITH data AS (SELECT 4 code, 2331 id, 809 mark FROM DUAL
UNION
SELECT 4, 1772, 802 FROM DUAL
UNION
SELECT 4, 2331, 845 FROM DUAL
UNION
SELECT 5, 2331, 804 FROM DUAL
UNION
SELECT 5, 2331, 800 FROM DUAL
UNION
SELECT 5, 2210, 801 FROM DUAL)
SELECT TO_CLOB (
'<DATA>'
|| listagg (xml, '</DATA><DATA>') WITHIN GROUP (ORDER BY xml)
|| '</DATA>')
xml
FROM ( SELECT '<CODE>'
|| code
|| '</CODE><IDS><ID>'
|| LISTAGG (id, '</ID><ID>') WITHIN GROUP (ORDER BY id)
|| '</ID><IDS><MARKS><MARK>'
|| LISTAGG (mark, '</MARK><MARK>') WITHIN GROUP (ORDER BY id)
|| '</MARK></MARKS>'
xml
FROM data
GROUP BY code) -
Need to generate a Index xml file for corresponding Report PDF file.
Need to generate a Index xml file for corresponding Report PDF file.
Currently in fusion we are generating a pdf file using given Rtf template and dataModal source through Ess BIPJobType.xml .
This is generating pdf successfully.
As per requirement from Oracle GSI team, they need index xml file of corresponding generated pdf file for their own business scenario.
Please see the following attached sample file .
PDf file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/BPA_Print_Trx-_output.pdf
Index file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/o39861053.out.idx.txt
In R12 ,
We are doing this through java API call to FOProcessor and build the pdf. Here is sample snapshot :
xmlStream = PrintInvoiceThread.generateXML(pCpContext, logFile, outFile, dbCon, list, aLog, debugFlag);
OADocumentProcessor docProc = new OADocumentProcessor(xmlStream, tmpDir);
docProc.process();
PrintInvoiceThread :
out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
out.print("<xapi:requestset ");
out.println("<xapi:filesystem output=\"" + outFile.getFileName() + "\"/>");
out.println("<xapi:indexfile output=\"" + outFile.getFileName() + ".idx\">");
out.println(" <totalpages>${VAR_TOTAL_PAGES}</totalpages>");
out.println(" <totaldocuments>${VAR_TOTAL_DOCS}</totaldocuments>");
out.println("</xapi:indexfile>");
out.println("<xapi:document output-type=\"pdf\">");
out.println("<xapi:customcontents>");
XMLDocument idxDoc = new XMLDocument();
idxDoc.setEncoding("UTF-8");
((XMLElement)(generator.buildIndexItems(idxDoc, am, row)).getDocumentElement()).print(out);
idxDoc = null;
out.println("</xapi:customcontents>");
In r12 we have a privilege to use page number variable through oracle.apps.xdo.batch.ControlFile
public static final String VAR_BEGIN_PAGE = "${VAR_BEGIN_PAGE}";
public static final String VAR_END_PAGE = "${VAR_END_PAGE}";
public static final String VAR_TOTAL_DOCS = "${VAR_TOTAL_DOCS}";
public static final String VAR_TOTAL_PAGES = "${VAR_TOTAL_PAGES}";
Is there any similar java library which do the same thing in fusion .
Note: I checked in the BIP doc http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/javaapis.htm#CIHHDDEH
Section 7.11.3.2 Invoking Processors with InputStream .
But this is not helping much to me. Is there any other document/view-let which covers these thing .
Appreciate any help/suggestions.
-anjani prasad
I have attached these java file in kixs : https://kix.oraclecorp.com/KIX/display.php?labelId=3755&articleId=354962
PrintInvoiceThread
InvoiceXmlBuilder
Control.javaYou can find the steps here.
http://weblogic-wonders.com/weblogic/2009/11/29/plan-xml-usage-for-message-driven-bean/
http://weblogic-wonders.com/weblogic/2009/12/16/invalidation-interval-secs/ -
EDI IDOC generation for interface with Vendor software help needed.
EDI IDOC help needed.
We are NOT an EDI shop, but have a project to output data to Sales Force.com
Sales Force requests IDOC output - eg. 810 Outbound Invoice.
We will need to do a historical load of Orders/Quotes/Invoices from the past 2 years.
Is there a function module or series of FM's that are used to generate the E2EDKxxxxx type segments?
I have been testing using the IDOC_OUTPUT_INVOIC and IDOC_OUTPUT_ORDRSP FM's, but they generate segments begining with E1EDKxxxxx.
Basicall we have a report program that the user enteres in the date range of Order/Quotes/Invoices they wish to extract, the the program needs to output a flat file (.txt) on the server which is then picked up by Sales Force.com.
Also, is there a way to have in the Partner Profile a generic Partner under the "Type KU" that can be used for all orders/invoices so I don't have to create a KU Partner Type for each and every Sold-To customer we have?
I am very new to EDI so any help would be greatly appreciated.
Thanks.
Scott.Hi Scott,
We will need to do a historical load of Orders/Quotes/Invoices from the past 2 years.
I know it's very tempting to use an interface for such loads if you anyhow have to create one. However, often the volume alone speaks against interface usage for such scenarios.
Is there a function module or series of FM's that are used to generate the E2EDKxxxxx type segments? I have been testing using the IDOC_OUTPUT_INVOIC and IDOC_OUTPUT_ORDRSP FM's, but they generate segments begining with E1EDKxxxxx.
Well, the E2* segments basically reflect the external name of the IDoc segment, whereas the function modules you're referring to basically just create an internal version of the IDoc. Once the IDoc framework then passes the IDocs to the partner, the segment names usually (depends on how the IDocs are passed on) get converted to their external name. If there are multiple versions of a segment, then the version number will be appended to the segment name.
Note that IDoc segment definitions are only partially stored in the data dictionary. If you want to see all versions you should always use transaction WE31 to look at segments. There you can also see for example for E1EDK01 the several versions and when you then use in SE37 function module SEGMENT_EXTERNAL_NAME_GET you will see what SAP produces as the external name for segment E1EDK01. This function module is basically the one that handles the segment name translations.
Ignore the comments for subsystem, this is basically an option in SAP to possibly trigger further external tools (e.g. mapping etc.) for handling the outbound IDocs.
Again, the funny thing is that via the WE30 transaction, if i put in INVOIC02 as the Obj. name and see the segments, i can see that E2EDK01 there is a version 005, but if i go to SE11 and put in E2EDK01005 structure line and i get a "not found". We just have up to E2EDK01002.
In the old days SAP used to generate E1, E2 and E3* structures in the data dictionary (SE11). The E1* structure reflected the character type representation of an IDoc segment, whereas the other two (definition and documentation) contained actual references to data elements (e.g. if you used a quantity field). However, in newer releases those dictionary structures (E2* & E3*) are no longer generated, because they're superfluous (meta data defined via WE31 is sufficient).
Cheers, harald -
Help needed in business logic implmentation in oracle sql.
I got a requirement from customer that i need to generated numbers based on first value which is entered by users but not second values..
for example:
c1 c2
1 1
2 1
3 1
4 1
1 2
2 2
3 2
4 2
1 3
2 3
3 3
4 3
1 4
2 4
3 4
4 4
1 5
2 5
3 5
4 5
unlimited..
the user input only first column values which comes from UI and i need to provide second column values when records are getting inserted into db table.
user always enter only 1-4 values in first column but never input second values in second column of table.. both columns are numerical.
the second values should be provided automatically or programmatically when records are getting inserted into table and automatically... how this can be done?
Can any one help me out to get this done either using sql,plsql concept?
thanks a lot in advance.Hi,
Demonstration
SQL> DROP TABLE t1;
Table supprimée.
SQL> CREATE TABLE t1 (c1 NUMBER, c2 NUMBER);
Table créée.
SQL>
SQL> insert into t1 (c1) values(1);
1 ligne créée.
SQL> insert into t1 (c1) values(2);
1 ligne créée.
SQL> insert into t1 (c1) values(3);
1 ligne créée.
SQL> insert into t1 (c1) values(4);
1 ligne créée.
SQL> insert into t1 (c1) values(1);
1 ligne créée.
SQL> insert into t1 (c1) values(2);
1 ligne créée.
SQL> insert into t1 (c1) values(3);
1 ligne créée.
SQL> insert into t1 (c1) values(4);
1 ligne créée.
SQL> insert into t1 (c1) values(1);
1 ligne créée.
SQL> insert into t1 (c1) values(2);
1 ligne créée.
SQL> commit;
Validation effectuée.
SQL>
SQL> CREATE OR REPLACE VIEW view_t1
2 AS
3 SELECT c1, ROW_NUMBER () OVER (PARTITION BY c1 ORDER BY c1) c2
4 FROM t1;
Vue créée.
SQL>
SQL>
SQL> SELECT c1,c2
2 FROM view_t1
3 ORDER BY c2, c1;
C1 C2
1 1
2 1
3 1
4 1
1 2
2 2
3 2
4 2
1 3
2 3
10 ligne(s) sélectionnée(s).
SQL> -
Help needed with CVI real time
Hi,
I am new to CVI real time and need help related to this. I will explain my scenario:
1. I have few configuration files (INI). Need to validate the files (range checking..etc) during start of the application.
2. When user clicks "START" in the user interface on the host machine, I need to generate outputs (analogs/discretes...) based on the settings in the config file and read some inputs from other instruments. ( I/O tasks like generating outputs/reading inputs i am planning to perform in RT side)
3. From the user interface, user can also change the config files. if user changes the files, again file validation needs to be performed. After changing the files, if user clicks START, need to take the newly enetered config files to perfom I/O tasks.
4. I am NOT using reflective memory for my application.
I am confused in the following area:
1. File validation during startup , do i have to perform on both host and RT side?????
2. if configuration files are changed in the host side by the user, how i have to send this latest file names to RT??? I think i should not send file names, i need to read from the file and its contents i need to pass to RT....Pls correct me , I am not sure about this....
3. If I have to send file contents to the RT, how I have to do that....means i have to use structures,..???
Please guide me. Any help would be highly appreciated.
Regards,
haari
Solved!
Go to Solution.Hey haari,
1. File validation during startup , do I have to perform on both host and RT side?????
This depends on the full range of responsibility for the INI files. If they are all needed simply to change what the I/O tasks are for, then you would technically only need to validate the INI file contents on the RT side. You could, however, validate on both sides if you wanted to. However, I would probably set it up such that I send a validation command to the target, have the target run a component of the code that validates the INI contents based on how I instructed it, and then return a message that says whether or not it met the requirements I specified. However, if you are concerned with offloading that process to the user desktop (instead weighing down the RT controller performance), you could FTP the file off of the controller and perform the validation process on the host side.
2. if configuration files are changed in the host side by the user, how i have to send this latest file names to RT??? I think i should not send file names, i need to read from the file and its contents i need to pass to RT....Pls correct me , I am not sure about this....
You can send them to the target over FTP. This can be done programmatically, through MAX, command window, or a Web browser.
3. If I have to send file contents to the RT, how I have to do that....means i have to use structures,..???
This is basically addressed in answer to question two. You would not need another structure in your RT code to handle the FTP receive component as this is handled by the FTP Client/Server communication. However, in the event that you successfully FTP a file to the target, you should likely send a message from the host to the target so that the target can respond accordingly and reload the file, reestablish the I/O values, run an idle procedure, or do whatever you like.
Hope this helps. Have a great day!
Tim A.
National Instruments
Maybe you are looking for
-
My project is not running in ios 7.1 simulator i'm getting error like "iOS Simulator failed to install the application". Please suggest a solution for it.
-
I need help with Adobe Flash Player, PLEASE!
I have been on multiple site trying to play games or watch videos (e.g. YouTube) and keep getting an error message saying I have to install Adobe Flash Player in order to play/view. I have done this multiple times and currently have Flash Player 11
-
Change single user to multi user
Hi, I put the database ABC in single user mode through SSMS, now when I am changing back it to multi user, I get below error Msg 1205, Level 13, State 68, Line 1 Transaction (Process ID 127) was deadlocked on lock resources with another process and h
-
HT4759 can't sign in to icloud
I get this message whenever I try to sign in on iCloud on a Windows 7 PC. "You can't sign in because of a server error"
-
Borderless printing on canon 610 snow leopard?
Whether I use canon's easy print or print from Photoshop or print from quark, I just don't seem to be able to coax borderless printing out of the 610. I printed my Xmas cards last year borderless; this year, zilch. What have I forgotten to do, do you