How do I output digital/analogue signals based on a text file
I have a CSV file with three fields in each record; time, rpm, and a voltage. A sample file is attached. The rpm numbers are generated using 8 counts/revolution. I want to replicate this file somehow. At a trade show this past weekend I was told Labview could possibly read this file and output the signals. How would this work? I develop an app in Labview that reads the txt file and then run the app. The app generates the signals using what device? Any info is greatly appreciated, thanks in advance
Toby
Many of the National Instruments hardware cards (or potentially third party manufacturers) can be used by LabVIEW to create analogue and digital I/O signals from a text file.
The PCI cards often have 2 analogue outputs and 8 analogue input channels (often more), as well as Digital I/O's and counter timers.
I suggest that you firm up your requirements and contact your local NI sales office for specific hardware advice.
Message Edité par Conseils le 12-18-2006 03:27 PM
Similar Messages
-
How do i monitor/output digital/analogue audio while editing?
I just switched to the mac pro and am learning FCP. Now i am forced to monitor audio output through my headphones. I want to tie the audio into my studio monitors and also be able to send optical audio in to the mac pro from my main mixer, a Mackie 1404. Do i need a DAC(Benchmark), a optical I/O digital mixer or both or something else? My budget is upt to $1,000, but i would like to spend <$300.
In general, i am trying to figure out how to incorporate analog/digital audio/video in to my new editing system. Before this i was outputting analog video/audio in real time with a Velocity I/O card. I am now, obviously, converting to a new way of outputting my finished product and how to edit and work with the new Mac Pro.
I guess i could also consider using the firewire also, right? I haven't worked with a firewire based audio hardware unit, so any info on that appreciated as well.
Also, is the line out in the back of the Mac Pro mono or stereo? I appear to be getting a mono feed while monitoring clips i've shot.
While researching i might list here some things i have come across. Opinions on these appreciated:
Apogee Mini-DAC
Edirol FA-66, 101
Message was edited by: gnostic1919http://www.blackmagic-design.com/products/decklinkstudio/
-
How to write the output of an SQL query to a text file?
I am using Oracle 11g and SQL plus.
I have a large table called rating.
Whenever I do
SQL> select * from rating;
The output goes much beyond what the SQL Plus screen can show. I want to therefore store the output of this query into a text file.
How can this be done? Please help. Thanks.SQL> SPOOL results.txt
SQL> select * from rating;
SQL> SPOOL OFF -
How to Download Output of Script or SmartForm in to word file or Pdf file
Hi Experts .
I am stuck up at a point that how i can download the Output of
smart-form or Sapscript into word file or Pdf file .
Please help me out Boss .
Best Regards : rajneeshOnline PDF Printer for SAP
1. Print your document into spool request
2. Go to SP01 and get the Spool Req. No.
3. Go to SE38 and run Report RSTXPDFT4
4. Feed in the Spool Req. No.
5. Save the PDF file on your Desktop. -
How to go to the next Page while generating a text file ??
All,
I am generating a text File dynamically based on the information from the Database. I need to give some Page breaks after every 80 lines. Does any one has any clue how can I do that.
I am able to generate the file though.
Also I need to set the Font to Courier.
Please let me know if anyone has done anything like this.
I am using "BufferedWriter" for generating the text file.
ThanxBasically - I have to repeat the header if the records goes to the next Page. My records can increase decrease dynamically as the data is coming from the Database.
I do not know how to find out whether it has reached the next page or not ??
If you know by any chance how can I repeat the header once it goes to the next Page that would be a great help.
Thanx -
In PI how do I convert the XML payload (input) to a text file and send out
I am extracting data from SAP and sending thru XI / PI to a file (non-sap system).
On the receiving end, I need the file to be a text file, with one row for each "FTZ_Row concatenated_data" tag in the input. It needs to be just a plain text file with no XML tags.
Currently the file gets one record which matches exactly to the XML payload below.
I want it to create a file that looks like this :
CONCATENATED DATA 1
CONCATENATED DATA 2
012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12
here is the payload going thru XI
<?xml version="1.0" encoding="utf-8" ?>
- <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
<FTZ_Row concatenated_data="CONCATENATED DATA 1" />
<FTZ_Row concatenated_data="CONCATENATED DATA 2" />
<FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
</n0:FTZ_Concatenated_Row>
thanks
jaythanks for the input but I am still having issues - I get an empty file when I use the content conversion option.
My payload coming into XI is :
<?xml version="1.0" encoding="utf-8" ?>
- <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
<FTZ_Row concatenated_data="CONCATENATED DATA 1" />
<FTZ_Row concatenated_data="CONCATENATED DATA 2" />
<FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
</n0:FTZ_Concatenated_Row>
Here is the layout of my data type - I am using the same for input & output
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" targetNamespace="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone">
<xsd:complexType name="FTZ_Concatenated_Row">
<xsd:sequence>
<xsd:element name="FTZ_Row" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="concatenated_data" type="xsd:string" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
I mapped these items : FTZ_Concatenated_Row & FTZ_Row & concatenated_data
I set up my content convesion with :
recordset structure FTZ_Row
FTZ_Row.fieldSeparator #
FTZ_Row.endSeparator 'nl'
I am not sure why the following row looks like this ??
<FTZ_Row concatenated_data="CONCATENATED DATA 1" />
I thought FTZ_Row would be one tag and "concatenated_data" would be another one.
any help would be appreciated.
I have read many entries/blogs/etc in SDN but and tried many different setups, but nothing is working.
thanks -
How do i compare the similarities between two or more text files?
The subject says it all. I am familiar with a number of the diff tools that are available, but I have yet to find a tool or app that will find the similarities between two text files. Any suggestions?
From http://hints.macworld.com/article.php?story=20030217061153119
"FileMerge highlights the sections that differ in each file..."
I need to find similarities. I was thinking something along the lines of the similarity-tester package in Ubuntu:
http://unix.stackexchange.com/questions/1079/output-the-common-lines-similaritie s-of-two-text-files-the-opposite-of-diff/94532#94532
Preferably a GUI tool, but command line is OK if I can figure out the proper syntax. -
How to write from a linked list collection to a text file.
Hi,
I want to write my data in linked list collection to a text file.
the following is the code of my linked list. how do i write it
Iwant the data to be comma separated while writing it to a text file.
please help.
class MailList
public static void main(String args[])
LinkedList m1 = new LinkedList();
m1.add(new Address("J.W.West", "11 Oak Ave",
"Urbana", "IL", "118011"));
m1.add(new Address("H.S.sandy", "1 k ve",
"Bana", "L", "18011"));
m1.add(new Address("K.Satish", "1 104 Clarence Street",
"Strathfield", "NSW", "135"));
Collections.sort(m1);
Iterator itr = m1.iterator();
while(itr.hasNext())
Object element = itr.next();
System.out.println(element + "\n");
}look at the API for FileWriter.
http://java.sun.com/docs/books/tutorial/essential/io/index.html -
Im using measurement studio c++ to create a application. How to save a randomly generated value which display in the CNumberEdit Control to a text file? how to do the coding part?
You can use the CNiFile class to write the value out to a file. For example, create a new Measurement Studio C++ project and follow these steps:
Add a CNiNumEdit to the dialog.
Add a member variable for the CNiNumEdit called m_numEdit.
Add a button to the dialog.
Double-click the button to add a message handler for the button's BN_CLICKED message.
Add the following code to the button's BN_CLICKED message handler:
CNiFile file("C:\\Values.log", CFile::modeCreate | CFile::modeWrite | CFile::typeText);
file << m_numEdit.Value << endl;
file.Close();
Run the application, edit the CNiNumEdit's value, and click the button. The value should be written to the Values.log
file as specified in the code above.
Hope this helps.
- Elton -
How to remove the last blank line in the downloaded text file?
Hi All,
I am downloading the one internal table content using the GUI_DOWNLOAD to a text file(.txt). The cursor is in last position of the text file where there is no content. For example consider the below is downloaded txt file:
This is test file.
Downloaded from the internal table
using GUI_DOWNLOAD
| <----
In above the internal table content first three lines..
Once I press page down in the text file, the cursor goes below the third line..(i.e., next to the last line)
How to avoid that ?
Thanks in Advance,
Regards,
RaghuI solved this problem with BIN mode.
See this code example
DATA: FILESIZE TYPE I.
CALL FUNCTION 'SCMS_TEXT_TO_BINARY'
IMPORTING
OUTPUT_LENGTH = filesize
TABLES
TEXT_TAB = i_record
BINARY_TAB = i_Record
filesize = filesize - 1. "TRUNCATED LAST LINE!!!
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = filesize
filename = l_file
filetype = 'BIN'
TRUNC_TRAILING_BLANKS = 'X'
TRUNC_TRAILING_BLANKS_EOL = 'X'
WRITE_LF_AFTER_LAST_LINE = ' '
TABLES
data_tab = i_record
Hope this can help you. -
How to find SVG coordinates which have been converted to text file?
Hi all,
I am currently developing a system that will read svg file. As svg file can be converted to text file, i already converted it. The problem is how is i going to read the coordinates provided by svg?I just want to read all the coordinates, nothing else...I hope you all can help.
Regards..
Edited by: Tommy1986 on Jul 8, 2008 12:45 AM
Edited by: Tommy1986 on Jul 8, 2008 12:47 AM<?xml version="1.0" standalone="no"?>
<svg width="6.666667in" height="4.166667in" viewBox="-0.000000 -0.000000 6.666667 4.166667">
<g transform="matrix(1,0,0,-1,0,4.166667)">
<polyline id="1" stroke="#000000" stroke-width="0.007874" fill="none" points="1.218750,2.614583 1.239583,2.666667 1.364583,2.791667 1.395833,2.885417 " />
<polyline id="2" stroke="#000000" stroke-width="0.007874" fill="none" points="1.656250,2.802083 1.364583,2.802083 1.322917,2.541667 1.296875,2.489583 1.296875,2.364583 1.406250,2.260417 1.468750,2.244792 1.875000,2.244792 " />
<path id="3" d=" M1.887762,2.247006 A0.531129,0.531129 0 0,1 1.657914,2.815088 " fill="none" stroke="#000000" stroke-width="0.007874" />
</g>
</svg>
Hi BatraAnkit,
Thank you very much for replying in my post. I really appreciate it Above is an example of svg file. What I am tring to do is to read only the polyline and the path collumn. Is there anyway to do it? As you can see, the svg is in xml format. Looking forwards to your reply..
Regards,
Tommy1986 -
How to download PF-STATUS of a Report to a Text File
Hi Friends,
Please guide me on this,
I want to download PF-STATUS of a Report into a text file,
Problem is how to get/capture the PF-STATUS.
Regards,
SowjanyaHi,
Please follow the following link
Upload / download PF Status
Regards,
Shailaja -
How to export app list in iTunes to csv or text file?
How to export an app list in iTunes libtary to csv,text, or Excel compatable file format?
Hi Peter,
I found out what caused the Script not running on CS3. In my workstation, there are multiple versions of ExtendScript Toolkit (cs, 2 and CS4). When I am working on the Script it default to the latest version which is ExtendScript Toolkit CS4, so it will refer to CS4, activate and launch CS4.
After pulling my hair finding the cause. I finally search and found ExtendScript Toolkit 2 which work for CS3. I shut down ExtendScript Toolkit CS4 and test the same exact Script . It works perfectly. So if you try to run this Script on CS3. Make sure at the prompt message to see if it will run on Adobe InDesign CS3, then it will run fine. In reverse, if you run the Script on CS4, make sure to check your ExtendScript Toolkit CS4 otherwise it will do nothing like I experienced. Great!
Below is my final code for the Script. This Script will capture all link elements' name as text file so I can search batch of elements from the central server for all pick up logos, images, artworks... to prep for my page assembly workflow. Hope this will help anyone have the same interest. All credit to Peter. Thank for all your help and support.
#target indesign;
try
link_name = app.documents[0].links.everyItem().name;
var f = app.documents.add ().textFrames.add ();
f.geometricBounds = [0.5,0.5,"266mm","203mm"];
f.contents = link_name.sort (caseless).join ("\r");
catch (_){}
function caseless (a, b)
return a.toLowerCase() > b.toLowerCase()
Kenn Nguyen -
How to send output from SQL script to the specified log file (not *.sql)
## 1 -I write sql command into sql file
echo "SELECT * FROM DBA_USERS;">results.sql
echo "quit;">>results.sql
##2- RUN sqlplus, run sql file and get output/results into jo.log file
%ORACLE_HOME/bin/sqlplus / as sysdba<results.sql>>jo.log
It doesn't work please advise$ echo "set pages 9999" >results.sql ### this is only to make the output more readable
$ echo "SELECT * FROM DBA_USERS;" >>results.sql
$ echo "quit" >>results.sql
$ cat results.sql
set pages 9999
SELECT * FROM DBA_USERS;
quit
$ sqlplus -s "/ as sysdba" @results >jo.log
$ cat jo.log
USERNAME USER_ID PASSWORD
ACCOUNT_STATUS LOCK_DATE EXPIRY_DAT
DEFAULT_TABLESPACE TEMPORARY_TABLESPACE CREATED
PROFILE INITIAL_RSRC_CONSUMER_GROUP
EXTERNAL_NAME
SYS 0 D4C5016086B2DC6A
OPEN
SYSTEM TEMP 06/12/2003
DEFAULT SYS_GROUP
SYSTEM 5 D4DF7931AB130E37
OPEN
SYSTEM TEMP 06/12/2003
DEFAULT SYS_GROUP
DBSNMP 19 E066D214D5421CCC
OPEN
SYSTEM TEMP 06/12/2003
DEFAULT DEFAULT_CONSUMER_GROUP
SCOTT 60 F894844C34402B67
OPEN
USERS TEMP 06/12/2003
DEFAULT DEFAULT_CONSUMER_GROUP
HR 47 4C6D73C3E8B0F0DA
OPEN
EXAMPLE TEMP 06/12/2003
DEFAULT DEFAULT_CONSUMER_GROUPThat's only a part of the file, it's too long :-) -
Can we create entity object based on a text file on the OS?
I understand you can interface with files using webDAV. Can we just create a entity object with source to a text/xml file on the OS instead of a table?
Have a look at the URL data source (under new->business tier->web services) - it allows you to create a data control based on an XML or csv file.
http://technology.amis.nl/blog/?p=1592
You can also create a data control based on a Java class that interact with a file.
Maybe you are looking for
-
Disk Utility cant repair my external hard drive?!
I'm using a 1 TB WD external hard drive on my Macbook Pro (OS is still Snow Leopard). It was working just fine until a few days ago the hard drive does not show on finder. I tried to repair it with disk utility but it gave the following message "Disk
-
Cannot select landscape photos as a desktop background from iPhoto events.
In the desktop preferences screen, when choosing a desktop background, I am able to see all of the normal options at the left. However, when I choose an image from the "iPhoto Albums" section, only vertically oriented images work. Landscape-oriented
-
LD416 (Ver4.2.5) specification content-rule
I have localdirector 416 with 4.2.5. How to define the rules for content load balancing with https. First of all, on specification Is it impossible? As the following content-rule rule01 depth 1024 "/aaa/" content-rule rule02 depth 1024 "/bbb/" virtua
-
Converting from UTM meter to latitude,longitude in oracle
I am trying to write a procedure which takes in utm data and converts to latitude,longitude mostly on the net i am getting some formulas for conversion with no proper explanation. Can any of you suggest any previously written oracle procedure or othe
-
JniAgComAdaptor.write failed GuiNiWriter: write failed
Hi, I also have the system completely hang (the hourglass never stops) when certain functions (e.g. activating a program that has good syntax) are attempted. Here is the output: 27.10. 11:54:28.105 ERROR: JniAgComAdaptor.write failed ERROR #########