Script for multi channel processing

Hi everybody
I have got 40 channels. Names look like "A1 B1", "A1 B2", ... "A1 B8", "A2 B1", ... "A2 B8", ... "A5 B8"
"Dimension" is 5x8 (AxB).
I would like to run script witch will calculate 'mean' for channels "Ax B1" to "Ax B8" and save result to new channel "mean Ax".
AND
Script witch will calculate mean with channels "A1 Bx" to "A5 Bx" and save result to new channel "mean Bx".
Complication: Same channels could be missing for example there will be 38 channels without "A2 B5" and "A5 B2"

I am attaching example data set.
Channel names are combination of A and B when A = 1 to 5 and B = 1 to 8.
I want generate channels list Ax which will include this channels: (AxB1, AxB2, AxB3, AxB4, AxB5, AxB6, AxB7, AxB8). Later I will use this channels list to calc 'mean' or 'standard deviation'.
For this I could use VBScript command:
"Call ChnAverage("'[1]/A1 B1' - '[1]/A1 B8'","/Mean1")" or
"Call ChnAverage("'[1]/A1 B1', '[1]/A1 B2', '[1]/A1 B3', '[1]/A1 B4', '[1]/A1 B5', '[1]/A1 B6', '[1]/A1 B7', '[1]/A1 B8'","/Mean1")"
And I want generate channels list Bx which will include this channels: (A1Bx, A2Bx, A3Bx, A4Bx, A5Bx)
For this I could use VBScript command:
"Call ChnAverage("'[1]/A1 B1', '[1]/A2 B1', '[1]/A3 B1', '[1]/A4 B1', '[1]/A5 B1'","/Mean1")"
Script must check if channel name is valid. If Channel name is invalid then must be removed from channels list because calc function will return Error. (Same channels could be missing)
Attachments:
Gruping_Data.zip ‏101 KB

Similar Messages

• An application for multi-channel measurements

Does NI have a software solution for multi-channel measurements? I mean systems for measurements, tests and monitoring which contain numerous DAQ devices with thousands of sensors.
I suppose the software for such system should have the following features:
Instrument control
Sensor management (type, s/n, accuracy, calibration data, next calibration date, measurement limits, etc.)
Data acquisition
Storing data in databases
Data visualisation and analysis
Report generation
Tools for creating custom user interfaces / data visualisations for monitoring
As far as I know the DIAdem is great for data analysis, visualisation and report generation but it's not suitable for other tasks. With LabVIEW you can do anything but it's not an "out-of-the-box" solution.
Just to clarify what I'm talking about, here's an application that seems to fit the description. It's the HBM catman. Maybe someone worked with it? Do you know any analogues for it?

NI has flat out stated that they do not want to make turn-key solutions.  That would take away from them being able to make tools for people to create the solutions.  That is why they have alliance partners.  These partners take the tools made by NI and make really cool stuff.  My latest project was a software package that helped a technician build a jet engine correctly so that the turbine blades do not come out and destroy the engine (just slightly important).  I have also done some test systems for space craft avionics.
So if you are really serious about this, I highly recommend finding an Alliance Partner to help you out.  If you want, give me a PM and I can work on getting you and a few people on my side to discuss your requirements and proceed from there.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

• What's the best program structure for multi-channel Averaged FFTs?

I have been successfully using a 8-channel FFT analyzer using a separate Averaged FFT Spectrum (Mag-Phase) VI for each channel, but I now need to expand my channel count from 8 to 16. All channels are simultaneoulsy read in to a buffer to maintain phase relatioships. Do I need to have 16 copies of the Averaged FFT Spectrum VI in my diagram to maintain the averages of each channel or can I utilize one FFT VI somehow within a For Loop? If a For Loop can be used, how can the averaged spectrums be maintained for each of the 16 channels?

You should be able to use a single FFT vi in a for loop. If your data is in a 2D array representation with each row representing a channel and you leave the indexing enabled you can pass your data array into the loop and it will strip off each row automatically. You could then pass each row of data to the FFT and pass the results out to the boundary of the for loop. This will then build an array containing the FFT results for each row (channel).
Marc
Marc

• Error -10609!! How to correct for multi-channel data acquisition?

I am creating a program that will obtain data from all 16 channels of the PCI-DAQ6023E. I keep running into the 10609 Error "Transfer in Progress" when trying to compile and run. How do I set up the code to allow the DAQ card and Visual Basic to analyze all 16 channels at the same time?

Greetings,
Most of the time when I see the error 10609 Transfer in Progress it is because multiple calls, such as an analog config or analog start, are being called to the same DAQ device at the same time. Both calls are fighting for the DAQ card's resources. This is an issue with your program.
I recommend that you take a look at an example program, such as our simple AI example in Visual Basic which can be found in the following directory: \Program Files\National Instruments\NI-DAQ\Examples\Visual Basic\_Getting Started\AI.
You will see a Component Works control called CWAI. If you right-click on this control and choose properties you will be able to select the channels you wish to read from. You will want to read from all 16 channels by using a
channel string of 0:15 or 0,1,2,3 .. 15. You do not want to have one CWAI control for each channel.
You could also take a look at the following example available on our web site.
Continuous Analog Input on Multiple Channels Using Visual Basic with NI-DAQ Function Calls
Regards,
Justin Britten
Applications Engineer
National Instruments

• Creating a script for Notification and Processing of document status change

Hello,
I work for a company that uses SAP.  I'm not sure how much of what goes on in our company is company-specific, and how much of it would be understandable by anyone who uses SAP as this is the first company I've worked with that uses SAP.
I'll explain my issue.
See this picture: http://imagesi.com/8e08d.png
I would like to write a script, if it is possible, that will automatically notify me when the Document named "Credit memo Request" has changed to the status of "Completed."  I would like to set this up in a way to possibly scan all credit memo requests raised by my SAP username, and monitor this on an hourly basis.  I would also like SAP to then send me a copy of that Completed document.
Is this possible?  I know a little bit about scripting, and I would be able, I think, to learn whatever language I had to to write this on my own, but first I wanted to ask if this was possible to do.
Thanks very much,
Brian
Edited by: lordterrin on May 16, 2011 4:45 AM

Hi,
I think you didn't post your question to the right forum... you won't be able to solve your problem with any scripting language.
To solve your problem you'll certaily have to use the SAP Business Workflow and/or write some ABAP program to implement some user-exit or badis.
Regards

• Stereo Surround for Multi Channel Sounds Cards... Not Working

I have an Audidy 2 and utilize the Stereo Surround mode to listen to my music coming from all 5 of my speakers. I upgraded to iTunes 7 and noticed sound only from the left and right channels. I thought something had happened to the Sound Blaster setting, but it was still configured for 5.1 surround. I noticed all other sounds in Windows were coming in stereo surround... just not iTunes.
Prior to upgrading, version 6 allowed this functionality. It's nice to listen to the music in a large room coming from all speakers.
Has anyone else had this problem or can they duplicate it???

It didn't work

• Test Script for HR Off Cycle Process Model

Hi,
Does any one have the Test Script for Off cycle Process Model?
Regards,
Srini.

Do you have any conditional breakpoint between second and third step?
The red error is coming out of conditional breakpoint and it will work if you re-run the step. Generally, we put conditional breakpoint to make sure that we will start next process only after verfiying the result of the last step and thats why if you start manually it turns green.
You can delete conditional breakpoint if you dont want.
Arti

• No multi-channel audio from DVD Player or Quicktime?

I have the A52Codec 1.7.6 installed. The codec preferences are set to output multi-channel audio. I have my Audio MIDI setup speaker configuration setup for multi-channel audio and the speaker assignment tests are all perfect. VLC plays back files with AC-3 soundtracks in perfect 5.1 multi-channel sound. Final Cut plays multi-channel audio properly as well.
When I watch a DVD, it is decoded to stereo. The dialog on 5.1 always comes from the left and right speakers and never from the center channel. It doesn't matter whether I remove the A52Codec and try again the result is aways the same, 5.1 audio in Quicktime and DVD Payer gets decoded to stereo. It is not that extra channels are missing, if that were true I'd get no dialog at all.
What do I have to do to make the DVD and Quicktime multi-channel audio decode as multi-channel audio and not stereo.

I'm not sure if this will resolve your issue or not, but have you configured it using /Utilities/Audi MIDI Setup ?

• Script for Windows

Hi Experts,
We have Goldengate environment and replicating the data between on source to Many target environments , both source and target environments are Oracle only,  To monitor the process and exceptions we have used shell scripts on both the environments,
now we have new requirment for replicating the data between oracle to sql server , we have install goldengate on windows NT server for target environment , But in source we are using shell script for monitirong manger process and extract process , like if mgr or extract process is abended immediatly we will get the alert mail through mailx functionality, Now we need to use the same approach for windows sql serer as well , can any one please guide how to achive the monitoring requirment in windows environment as like unix/solaris, is there any option available in windows to writing the scritps like shell also sending the alert mails, Kindly suggest on this.
AT

I get the scheduler to run this batch file, dbcgen.bat
rem Set Correct Starting Directory
D:
cscript //NoLogo dbcgen.vbs > dbcrun.bat
dbcrun.bat
and the dbcgen.vbs does the rest
' Script to generate DBCRun.Bat file
' Result needs to be something like this
' D:\gw8\admin\UTILITY\DBCOPY\WIN32\dbcopy.exe /i 12-01-2010 /w n:\gw5po
c:\gw5back
Dim cDate
cSrcPath = "N:\GW5PO"
cTgtPath = "C:\GW5Back"
dDate = Now() - 1
'WScript.Echo dDate
cDay = cStr(Day(dDate))
if Len(cDay) = 1 then
cDay = "0" & cDay
end if
'WScript.Echo cDay
cMonth = cStr(Month(dDate))
if Len(cMonth) = 1 then
cMonth = "0" & cMonth
end if
'WScript.Echo cMonth
cYear = cStr(Year(dDate))
'WScript.Echo cYear
cDate = cMonth & "-" & cDay & "-" & cYear
'WScript.Echo cDate
WSCript.Echo cDBCPath & " /i " & cDate & " /w " & cSrcPath & " " & cTgtPath
set cDate = Nothing
You can add/alter the various startup flags to suit yourself
Cheers Dave
Dave Parkes [NSCS]
Occasionally resident at http://support-forums.novell.com/

• Multi-Channel Sound Cards

Hi,
I was wondering if flash player had support for multi-channel
sound cards. Everytime I play a .swf with sound i only get audio
out of two channels.

The audio interfaces that I use are an EMU 1820 and a Tascam FW-1884 firewire device. Both are fine for what I do (broadcast quality material). I believe the EMU gives better audio quality and is certainly more robust, but the Tascam, being Firewire, is more easily movable between machines. I also like to work with real faders and it integrates well enough with Audition to be usable. The EMU has the incredibly flexible virtual mixer, but I find it hard work keeping my brain up to speed with this.
I also have other cards either inside machines or usb, but these are all just 2 channel.
I'd be surprised if anyone was using Audition for logging, as the requirements are rather specialised. I'm way out of touch with this field now, but the requirements used to be that the recorder could be left to run continuously, and users on the network should be able to pull material off at random while the recording continued. Recording is the fairly easy bit, management is the problem.
I'd have thought any computer based system ought to be capable of high quality. There are one or two low-cost or free loggers, I believe, but I've no idea how useful they are.

• New logic user, need help with multi-channel inst and aux strips.

Greetings all,
So I just purchased a new Mac Pro 2.66 and Logic Pro 7 to run with it. I have been a long time Nuendo/Cubase user on the PC side of things but since I got the Mac I wanted a DAW that was supported fully for the apple platform.
Anyways, its a world of difference and I am very confused as I wrap my head around the learning curve, so in the meantime I have one important question maybe some one could help me with.
The question is regarding Aux channel stips for Multi channel instruments. In this scenario I am working with Battery 3, it took me a while to understand that I actually needed to create these aux channels just to have seperate outs in Battery which seems really wierd and overly time consuming.
As an example in Nuendo once you create the instance of Battery, the audio mixer automatically just creates the corresponding stereo and mono channels instantly. This obviously makes is a sinch to assign Batteries pads to seperate outs for eq/comps for seperate sounds.
Now the Battery manual doesnt even make a reference to Aux channels for assigning outs in Logic, I actually had to do a Google search to figure this out.
Anways, sorry for rambling...
Here is the main issue.... How can I quickly and easily create multiple Aux's? In the mixer there is really only enough room in there to add like 1 more Aux strip, if I want to add more than that I need to re-arrange the entire global mixer which seems like a crazy system, surely there must be a more convenient method for getting muti-channel audio instruments set up quicker.

Not sure what exactly your question is, especially since I don't use battery. But as far as creating aux tracks:
• go to the audio layer of the environment (not the track mixer window), find the two defalt aux tracks
• Highlight all tracks to the right of the aux tracks (these should be bus and output tracks), and drag to the right far enough to fit in a bunch of aux tracks; you might even want to drag the all underneath the aux tracks, if your screen accomodates
• use the key command shift-command-a multiples times to create several new "audio objects", and double click each one to expand
• highlight all the new objects and select options/clean up/ align objects (makes it look nicer)
• still highlighted, over in the parameters section (left side) select a channel, setting it to the highest number aux (at this point, probably "aux 3")
• now individual set the channel for each aux track – you'll see that now you have available "aux 4"; next time you set a successive track you'll see "aux 5" and so on
• once you've got things set up the way you want, save it as a template so you don't have to do this again later

• Multi channel midi recording in express

hello,
i do not know how to set up my stuff for multi channel (track) midi recording in express.
gear: motu micro lite midi interface, powerbook g4, yamaha elctronic drums dtxpress 2, edirol midi controller.
when i get this worked out i will have 3 other keyboards hooked up midi.
when i try now, my drums are bass or my edirol is drums
basic idea:
someone playing a bass line on the edirol while someone else is playing the midi yamaha drum kit.
also i would like to know if it is possible to keep my edirol connected usb running audio instruments or if i have to connect it midi to my micro lite.
i was told that it has something to do with setting up the environment.
i am midi ******** so please, if you can help, be simple.
thanks much anyone.
powerbook g4   Mac OS X (10.4.2)
powerbook g4   Mac OS X (10.4.2)
powerbook g4   Mac OS X (10.4.2)
powerbook g4   Mac OS X (10.4.2)

I'm not 100% sure about that but I think Logic Express don't allow simultaneous recording of more than one midi track. I think this is a Pro-only feature.

• Multi-channel audio? How ? (Dolby Digital, PCM etc.)

So,
Take 2 now support 5.1 channels audio out, at least for some HD rentals.
I am wondering if anyone has gotten that to work.
I have Apple TV connected via HDMI to my receiver (which can decode both the bitstream as well as linear PCM for multi-channel tracks).
However, I don't seem to get any multichannel, and the Dolby Digital toggle in Apple tunes makes no difference.
Has anyone gotten 5.1 to work, and if so, which which movie/tv show/trailer?
Thanks,
Dan

1. Not a great fan of detaching audio except in multicam clips. Generally I'd suggest using the expand audio components function to access the channels.
2. Yes. Switch off the auto tracks in the browser and only turn them back on for the clips you need in the project. With expanded audio components, if you turn the channels back on they will reappear in the timeline.
3. You use roles for this. I know time is tight for news, but taking a few moments to assign roles to the clips in the borwser, which you can do in globally, will allow you to export with separate tracks.

• Scripting help for a tedious process.

Ian Wood wrote a script that takes a list of version names from a Word.doc or plain text doc. and opens Aperture, searches the Library and then creates an album from those gathered images. This is great, for example if a Bride gives you a list of her favorite photos for the design of the final wedding book.
The script works well, however it looks at the whole Aperture library.
If you have versions with the same name it only picks one.
(You may have exactly the same version names scattered around your library because your camera cycles back to 0001 after it reaches 9999)
If someone out there knows how to re-write the script so that it only looks in a particular project as it picks the version names, then an otherwise tedious process would be simplified.
Any help would be appreciated.
The following is a copy of Ian's script.
This script is written by Ian Wood. No warranty is given or implied for the script's use.
Feel free to copy and adapt this script for your own use. Originally written in answer to a thread on the Aperture discussion forum.
Please visit http://www.aperture-assistant.com for more scripts and information about automation and Aperture.
set tfile to (choose file "Pick the text file")
set fref to (open for access tfile) -- now we read the file in
set tSize to (get eof tfile)
set tText to (read fref as string from 1 to tSize)
close access fref
log tText
set tList to every paragraph of tText -- turn the lines into a list
tell application "Aperture"
activate
tell library 1
set this_project to make new album with properties {name:"Results of file name list"} -- you can change this if you want the Album to have another name.
end tell
repeat with i from 1 to the count of the tList
set tName to item i of the tList
try
set tImgID to (first image version whose name is tName)
end try
try
duplicate tImgID to this_project
end try
else
log tName
end if
end repeat
end tell

Ian Wood wrote a script that takes a list of version names from a Word.doc or plain text doc. and opens Aperture, searches the Library and then creates an album from those gathered images. This is great, for example if a Bride gives you a list of her favorite photos for the design of the final wedding book.
The script works well, however it looks at the whole Aperture library.
If you have versions with the same name it only picks one.
(You may have exactly the same version names scattered around your library because your camera cycles back to 0001 after it reaches 9999)
If someone out there knows how to re-write the script so that it only looks in a particular project as it picks the version names, then an otherwise tedious process would be simplified.
Any help would be appreciated.
The following is a copy of Ian's script.
This script is written by Ian Wood. No warranty is given or implied for the script's use.
Feel free to copy and adapt this script for your own use. Originally written in answer to a thread on the Aperture discussion forum.
Please visit http://www.aperture-assistant.com for more scripts and information about automation and Aperture.
set tfile to (choose file "Pick the text file")
set fref to (open for access tfile) -- now we read the file in
set tSize to (get eof tfile)
set tText to (read fref as string from 1 to tSize)
close access fref
log tText
set tList to every paragraph of tText -- turn the lines into a list
tell application "Aperture"
activate
tell library 1
set this_project to make new album with properties {name:"Results of file name list"} -- you can change this if you want the Album to have another name.
end tell
repeat with i from 1 to the count of the tList
set tName to item i of the tList
try
set tImgID to (first image version whose name is tName)
end try
try
duplicate tImgID to this_project
end try
else
log tName
end if
end repeat
end tell

• Scripts for killing blocking oracle processes?

We are having a problem in that when a user disconnects improperly, the oracle processes on our Oracle Apps box don't die properly and rows remain locked. For other terminal based versions, the script to kill the process is pretty simple, but for the web-based, java interface, it's unclear how I would go about doing this. Does anyone have scripts for doing this that could run via cron? The applications are running on solaris 2.6.
Thanks,
Nathan Olla

Take a look at note 130709.1 on Metalink. It contains configuration info for httpds.conf - your Apache configuration file. You can use this to time-out sessions properly. Hope this helps.

Maybe you are looking for

• My iPod (5th Gen) won't turn on and my home button isn't working?

Hello! For the past two weeks my home button hasn't been working and since I'm too lazy to go to an apple store I just started using assistive touch instead. But ever since yesterday my iPod won't turn on which I know is a normal problem with as easy

• Deploy BC4J to 8i

Hi!! Hope to get help here.I developed BC4J appln in Jdeveloper3.1 and wld like to deploy it as Oracle 8i EJB session Bean .When I tried Deployment an error occured as follows- 'Generating EJBHome and EJBObject on the server... An exception occurred