Read a record several times
Hi experts
I hope someone can help me,..
How I can get that XI to read a record eight times, and each time that XI read a record can it map a source field to target field.
eg
Source record:
"ID" "ObjJDV" "AcumJDV "DesJDV" ObjNCB "AcumNCB" "DesNCB "
A01 26 195 44 66 29 -55
next record...
Target record:
"ID" "Des" "Obj" "Acum"
A01 44 26 195
A01 -55 66 29
Thanks and Regards,
Liz
Hi Lius
Yes, I want to split the message in eight messages output, because each input message "Obj" "Acum" "Des" there are eight classifications which should be 3 classifications in a new output record
eg
InputMessage
CarID "Obj1" "Acum1" "Des1" "Obj2" "Acum2" "Des2" "Obj3" "Acum3" "Des3"......"Obj8" "Acum8" "Des8"
A01,data1,data2,data3,data4,data5,data6,data7,data8,data9......data22,data23,data24
A02,datax,datay,dataz..
OutputMessage
"ID" "Des" "Obj" "Acum"
A01,data3,data1,data2
A01,data6,data4,data5
A01,data24,data22,data23
next record
Can XI do this? and how?
Thanks and regards..
Liz
Similar Messages
-
Mapping with Scd operator set to type 2 reading source records two times
Mapping with Scd operator set to type 2 reading source records two times.Records selected count being displayed at the end of execution is double the source record count.This possibly is affecting the performance of the mapping.
Is this a bug in scd type 2 operagtor in OWB 11gR2.How to rectify this umwamted double loop through the source data selectiom?Hi Roelant,
I think it is important to be aware that although Paris - 10gR2 - is not actually buggy (in this respect!), it is really quite idiosyncratic in exactly how it processes SCDs.
I followed up on your and Mark's comments, and did an in depth analysis of this topic. It is at http://www.donnapkelly.pwp.blueyonder.co.uk/documents/OWB_10gR2_SCD.pdf
My conclusions are perhaps of interest to anyone considering doing SCD processing with Paris.
I'll be doing a follow-up this weekend, and publishing a sort of 'how-to-do-it' guide.
Cheers,
Donna
Message was edited to add the words: "in this respect" -
Right now I am working on a data communication programme. The time of reading digital signal and recording data is more than I expected, which is about 100 microsecond. I need to reduce the time. The software I am using is Visual C++ 6.0. I use two DAQ boards, which are PCI-6024E and PCI-MIO-16E. I have set the priority of Visual C++ to be realtime by task manager. The operating systme is Windows XP.
I am wondering how to set the interrupt of reading or writing data to be the highest and stop any other kind of interrupt.
Thanks in advance!The primary limitation you will encounter when trying to do high speed
digital I/O using your E-Series hardware is that the digital lines are
all software timed. This means that for each and every digital
read it is necessary for your software to issue a command to your
hardware, read a single point, then receive the response from the
board. This prevents you from performing digital operations at
very high speed. In general, I would say that 100 microseconds is
a very good response using software-timed digital I/O on a Windows
computer.
It is difficult to make a good recommendation without more detail about
what you are trying to do. You may need to consider switching to
a Real-Time operating system, or upgrading your DAQ hardware to a board
that will allow you to time your digital acquisitions on the board
itself. These devices, such as the m-Series DAQ or the PCI-653x
series, would allow you to use hardware triggers for your digital
acquisitions, change detection, and buffered data acquisitions to
reduce the software overhead involved in a rapid acquisition. -
Is there a way of "merging" songs in iTunes? Several times, I have downloaded recordings from the Internet, or recorded from CDs, then found the tracks broken up to appear as separate "Albums". I have a 5-movement symphony, which appears as 5 separate songs - Irritating!
Try posting in a more appropriate forum, as this has noting to do with itunes U - the place where University/college/museums post education material.
-
I downloaded the new iOS 5 ....lost most of my apps ..restored them...however the kindle books app does not allow me to open books previously purchased from Amazon...the books are shown in the archive,but will not open when placed in home...a mesage comes up to uninstalll the books from "home' and uninstall the app and reinstall...which i have done to no avail several times...any cure for this?
你可以先关机重启,试试看打不打得开。
如果打不开可以删了,重新下载或者icloud同步。
祝你好运! -
'''bold text'''I have found out that I need to disable my Firewall, and stop my pop-up blocker, before downloading the new Adobe Reader. Now, I have uninstalled it and re-installed it several times, because on the Checl Plu-In Page, it still says it is outdated. I don't know what else to do.
Bill,
Thanks for getting back to me. I am very frustrated. Initially I called to ask questions about what software version I needed and got my questions answered. I received the messages with registration/sign in info and the link to download. Then I got the screens shown on the attachment. I did this several times on Friday and then called for assistance, which put me into the Forum area to leave my question. This morning I have used your link and gone to the same place and got the same results. I am beginning to wonder if this is what I want. We need software that will let us edit pdf text and drawings files. Can you confirm that I am trying to get the correct software and what I need to do to complete this download?
I don't believe it is a system problem because I have 215 GB of free space on my hard drive.
Thanks,
Margaret -
Upgraded to 5.4 when opening lightroom get a message "encountered an error when reading from its preview cache and need to quite" tried this several time but get the same error message. Says Lightroom will attempt to fix the problem the next time it launches but that is not happening. How do it fix this?
Delete the preview cache using your operating system. It is a folder whose name ends with Previews.LRDATA. Do not delete the Lightroom catalog, which ends with .LRCAT
-
Hi !
One of our Java folks here need at function where he reads one record at at time in id order;
create table url_recs (id number, url varchar2(4000));
insert into url_recs values(1,'www.fona.dk');
insert into url_recs values(2,'www.dr.dk');
insert into url-recs values(17,'www.ihk.dk');
select read_rec() from dual; - get id 1
select read_rec() from dual; - get id 2
select read_rec() from dual; - get id 17
select read_rec() from dual; - get id 1 - "no more rows - start all over again)
select read_rec(45) from dual; - get NULL (no rows with that id)
select read_rec(1) from dual; - get id 1
The purpose id for some "round robin" trying to get to some internal URL's.
Can you give me a hint for creating the function(s)
best regards
MetteWill successive calls come on the same Oracle session? Or across different Oracle sessions?
If you're going to call the function multiple times within the same Oracle session, you could store the last value returned in a package variable and select the record whose ID is greater than that value every time the function is called. That's unlikely to do exactly what the Java developer is hoping, though, because the Java calls are likely to bounce between multiple Oracle sessions due to connection pooling. And it'll likely require that the Java developer (or app server admin) adds some code when they get a connection from the pool where they reset the package state. Or it'll require that someone develop a method to keep the Java and Oracle session state in sync.
Justin -
Hello, I have a 2009 iMac, and my harddrive has failed several times now.
I tired to reinstall snow leopard with the install DVD that came with my iMac. However the disc is damaged so I bought a new Snow Leopard but my iMac wont read the new disc, it just stays in the apple logo screen, I have tired safe boot, holding down the "C" key on startup and tried using disc utility but getting nowhere.
Please help. Thanks.Might be related, if your hard drive is a 1TB drive,it could be a Seagate drive.
The drives are known to fail and your iMac maybe covered for free replacement under the Apple's Seagate hard drive replacement program until April 12 of this year.
I Believe the 2009 models are covered under this replacement warranty.
You can find out if you are eligible here.
http://www.apple.com/support/imac-harddrive/
Good Luck! -
Reading and recording at the same time with AudioUnit
Hi,
I am trying to read and record at the same time on the iPhone with AudioUnit. For the reading part I made an AUGraph which works fine, constructed like that:
NewAUGraph(&_graph);
_outputUnitComponentDescription.componentType = kAudioUnitType_Output;
_outputUnitComponentDescription.componentSubType = kAudioUnitSubType_RemoteIO;
_outputUnitComponentDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
_outputUnitComponentDescription.componentFlags = 0;
_outputUnitComponentDescription.componentFlagsMask = 0;
AUGraphAddNode(_graph, &_outputUnitComponentDescription, &_outputNode);
_mixerUnitComponentDescription.componentType = kAudioUnitType_Mixer;
_mixerUnitComponentDescription.componentSubType = kAudioUnitSubType_MultiChannelMixer;
_mixerUnitComponentDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
_mixerUnitComponentDescription.componentFlags = 0;
_mixerUnitComponentDescription.componentFlagsMask = 0;
AUGraphAddNode(_graph, &_mixerUnitComponentDescription, &_mixerNode);
AUGraphConnectNodeInput(_graph, _mixerNode, 0, _outputNode, 0);
AUGraphOpen(_graph);
AUGraphNodeInfo(_graph, _outputNode, NULL, &_outputUnit);
AUGraphNodeInfo(_graph, _mixerNode, NULL, &_mixerUnit);
_generatorUnitComponentDescription.componentType = kAudioUnitType_MusicDevice;
_generatorUnitComponentDescription.componentSubType = kAudioUnitSubType_RemoteIO;
_generatorUnitComponentDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
_generatorUnitComponentDescription.componentFlags = 0;
_generatorUnitComponentDescription.componentFlagsMask = 0;
for(int i=0; i< [_urlList count]; i++)
SoundBuffer* soundBufferTemp = [_bufferSoundList objectAtIndex:i];
AURenderCallbackStruct renderCallbackStruct;
renderCallbackStruct.inputProc = MyFileRenderCallback;
renderCallbackStruct.inputProcRefCon = soundBufferTemp;
AudioStreamBasicDescription* inputAsbd = [soundBufferTemp getASBD];
err = AudioUnitSetProperty(_mixerUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
i,
inputAsbd,
sizeof(AudioStreamBasicDescription));
UInt32 zero = 0;
err = AudioUnitSetProperty(_mixerUnit,
kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Input,
kInputBus,
&zero,
sizeof(zero));
err = AUGraphSetNodeInputCallback(_graph,
_mixerNode,
i,
&renderCallbackStruct);
This works well, for the recording AudioUnit I did the following:
OSStatus err;
AudioComponentDescription audioComponentDescription;
AudioComponent audioComponent;
audioComponentDescription.componentType = kAudioUnitType_Output;
audioComponentDescription.componentSubType = kAudioUnitSubType_RemoteIO;
audioComponentDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
audioComponentDescription.componentFlags = 0;
audioComponentDescription.componentFlagsMask = 0;
audioComponent = AudioComponentFindNext(NULL, &audioComponentDescription);
err = AudioComponentInstanceNew(audioComponent, &_audioUnit);
UInt32 size;
size = sizeof(AudioStreamBasicDescription);
err = AudioUnitGetProperty(_audioUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
1,
&_soundFileDataFormat,
&size);
_soundFileDataFormat.mSampleRate = 44100.00;
AudioUnitSetProperty(_audioUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
kInputBus,
&_soundFileDataFormat,
size);
AudioUnitSetProperty(_audioUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Output,
kOutputBus,
&_soundFileDataFormat,
size);
AURenderCallbackStruct renderCallbackStruct;
renderCallbackStruct.inputProc = MyRecorderCallback;
renderCallbackStruct.inputProcRefCon = self;
UInt32 one = 1;
UInt32 zero = 0;
err = AudioUnitSetProperty(_audioUnit,
kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Input,
kInputBus,
&one,
sizeof(one));
err = AudioUnitSetProperty(_audioUnit,
kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Output,
kOutputBus,
&zero,
sizeof(zero));
err = AudioUnitSetProperty (_audioUnit,
kAudioOutputUnitProperty_SetInputCallback,
kAudioUnitScope_Global,
0,
&renderCallbackStruct,
sizeof(AURenderCallbackStruct));
err = AudioUnitInitialize(_audioUnit);
Then in I setup a file to write in:
- (void) openFile
OSStatus err;
err = ExtAudioFileCreateWithURL((CFURLRef) _soundFileUrl,
kAudioFileCAFType,
&_soundFileDataFormat,
NULL,
kAudioFileFlags_EraseFile,
&_extAudioFileRef);
err = ExtAudioFileSetProperty(_extAudioFileRef,
kExtAudioFileProperty_ClientDataFormat,
sizeof(AudioStreamBasicDescription),
&_soundFileDataFormat);
err = ExtAudioFileWriteAsync(_extAudioFileRef,
0,
NULL);
All this things works well (I check by printing err in the log which I removed here for clarity).
And then in the callback for recording I do the following:
static OSStatus MyRecorderCallback(void *inRefCon,
AudioUnitRenderActionFlags* inActionFlags,
const AudioTimeStamp* inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumFrames,
AudioBufferList* ioData)
OSStatus err= noErr;
AudioUnitRecorder* auRec = (AudioUnitRecorder*) inRefCon;
[auRec allocateAudioBufferList:1 size:inNumFrames*4];
err = AudioUnitRender(auRec.audioUnit,
inActionFlags,
inTimeStamp,
inBusNumber,
inNumFrames,
auRec.audioBufferList);
err = ExtAudioFileWriteAsync(auRec.extAudioFileRef,
inNumFrames,
auRec.audioBufferList);
return err;
(Then I close the file after recording at the same time I close the AudioUnit)
Now the strange thing is that all this works perfectly well in the simulator: I can record and play at the same time but on the device, the callback for recording is not ran (I check by trying to print something in the log in the callback function.) which men no writing in the file and an empty file in the end.
Any one has any idea of what could be causing this?
Thanks
AlexandreJust in case some one might need it, I solved my problem:
I simply needed to initialize the AudioSession before playing/recording. I did so with the following code:
OSStatus err;
AudioSessionInitialize(NULL, NULL, MyInterruptionListener, self);
UInt32 sessionCategory = kAudioSessionCategory_PlayAndRecord;
err = AudioSessionSetProperty (kAudioSessionProperty_AudioCategory,
sizeof (sessionCategory),
&sessionCategory);
AudioSessionSetActive(TRUE); -
Trying to read a recorded file that display the x-axis recorded time stamp?
How do I read a recorded file with (XY) data, meaning I want to plot the x-time recorded data and be able to scroll back and forth.
Hi Gina,
If I understand your question correctly, it sounds like you are trying to plot some data that you have saved in a file. I am assuming that this data is in the form of X and Y values.
If this is correct, the easiest solution would be to use an XY-Graph in LabVIEW. I would start by using LabVIEW's File I/O VIs to load the data into an array or even a string indicator. You can then parse the data that you need and separate it into two arrays, one for X values and one for Y values. You can then bundle these two arrays together and feed the resulting cluster into an XY-Graph.
I have attached an example that may help to point you in the right direction when it comes to the actual programming.
I hope this helps!
Matthew C
Applications E
ngineer
National Instruments
Attachments:
Example.zip 61 KB -
recently bought 4S, it keeps searching for network, reads invalid SIM, keeps searching for network, have switched the handset on and off several times, have tried 2 new micro chips, re set the network too ! nothing seems to be working !!! Iam in Delhi
Obvious question... where did you buy your 4S and is factory unlocked?
-
XSU: Reading each record at a time
I am using XSU12 to retrieve database contents in XML format. I am passing the Connection and ResultSet objects to create OracleXMLQuery object. I want to read each record at a time and so setting the maxRows to 1 and then getting the xmlstring.
code looks like...
qry =new OracleXMLQuery(connection,resultset);
qry.setMaxRows(1);
xmlString = qry.getXMLString();
I keep this in a loop and read each record at a time. The problem is whenever getXMLString() method is called, the application is hitting the database, which will be a performance issue.
Is there any way to read contents of a table at once and then loop each record at a time without hitting the DB everytime?
Kishore
nullpublic static char readChar() {
int ch;
char r = '\0';
boolean done = false;
while (!done) {
try {
ch = System.in.read();
r = (char) ch;
if (r == '\r') {
System.out.println("Not a character. Please try again!");
System.in.skip(1);
done = false;
} else {
System.in.skip(2);
done = true;
} catch (java.io.IOException e) {
done = true;
return r;
Try this as an method and then use it..
This code will read will be in response untill you hit the return key but will take only the first character.... -
I installed Photoshop Elements 11 on a new computer a month ago. It opened several times until yesterday. I uninstalled it and now am trying to reinstall from the CDs that I own and it will not read the disk. Nothing happens. I had previously downloaded it to my laptop and work computer. How do I install it again?
You can't run PSE from a USB drive, nor can you transfer PSE to a different computer via a USB drive. PSE must be installed on a computer using the installer program provided by Adobe.
-
iMovie less than an hour in length. share to iDVD failed. read in support to share to media browser. then made DVD through iDVD. worked for one movie. tried on different one and iDVD hung up and had to use force quit to get out of it. tried several times -- same result. suggestions?
Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
I suggest that no response is made to this duplicate thread.
Maybe you are looking for
-
after i download a movie from itunes where do i fine it so i can watch it, thanks
-
Little Features Like These Are Nice to Have
After having my iPod 5G for more than 2 weeks now, I have noticed two new small features that were not on my iPod 3G. 1) When you pull out your headphones/earbuds from the iPod, the music that is playing will automatically pause. Therefore, if you ac
-
Opening website in new window from Digital Editions
I have links inside my .epub but when using a PC they either open inside the frame(with no ability to scroll or navigate) or tell you that you can open in new window. The latter is fine but there's no clear demarcation as to when this will happen.
-
How do you change the aspect ratio of a video from 4:3 to 16:9?
in final cut pro x
-
After having created a disk image how to burn it?
After having created a disk image (selecting HD for Output Device) in Compressor I get some files: 1. ac3 and m2V files 2. .img file 3. PAR folder I guess the file I need to burn is the .img one. How can I burn it directly on a DVD? On Compressor its