Identifying single motor units from EMG data

I need to identify single motor units from EMG data and have been unable to find anything on the NI web site that could help. I have identified a third party program, Spike 2 from Cambridge Electronic Design (CED), that is able to do the job however I have already go a large investment in NI hardware and software and do not want to have to buy all the CED hardware. I was wondering if anyone knew if it were possible to control the spike 2 program from inside LabVIEW (in close to real time), or if there was a LabVIEW based solution that I have been unable to find.

Sorry for the confusion.
This post is regarding template matching/detection of events from a nosy analogue signal. It is a medical application, not a motor/servo application. The term �motor unit� refers to the action potentials found in electrical recordings taken from muscles (EMG). By identifying the occurrence of these events we can determine properties of the nerves controlling these muscles. However identifying these events is very difficult as the recorded signals are noisy and the shapes of these units change over time. Many researchers have attempted to design computer-based solutions to this problem but is has only been with recent improvements in computer power that a solely software based solution for real time pattern matching has been possibl
e. Although this application is specific to medical research (and electrical recordings of nervous system activity in particular) the number of research laboratories around the world attempting to perform such analysis is large enough that I though a LabVIEW base solution may exist.
Barring a LabVIEW based solution I was wondering if anyone knew if it were possible for the data to be acquired in LabVIEW then directed to Spike2 (the most common program used for this application) in almost real-time. I know I can record data in LabVIEW and save it as a text file then open it up in Spike2 but I do not know if I can stream the data into Spike2 online. Online processing of the data is necessary to determine the progress of the experiments.

Similar Messages

  • How to Issue Output for a Single Handling Unit from Shipment

    Hi,
    I would like to know how to issue an Output for a Single Handling Unit from Shipment, i mean i have attached an output type 'ZPN0' (Customised) to a Handling unit in the Tcode VT03N to a Handling Unit.
    VT03N>click on Handling unit icon> select a handling unit --> go to Extras --> Output --> give the Out put type (maintained)) -- > saved.
    Once i come back --> i did not find any option / icon to issue the output from VT03N for handling unit. We have an option to issue output for the Entire Shipment.
    Tried alternative by going to VT70, give the shipment no, and output type for handling unit. When executed, Getting a message "No Messages Found".
    let me know how to issue the output for a handling unit of the shipment. Only Handling Unit & not the entire shipment.
    Regards,
    Swapna

    Dear Swapna ,
    maintain out put type for handling units in V V 61

  • Output for a Single Handling Unit from Shipment

    Hi,
    I would like to know how to issue an Output for a Single Handling Unit from Shipment, i mean i have attached an output type 'ZPN0' (Customised) to a Handling unit in the Tcode VT03N to a Handling Unit.
    VT03N>click on Handling unit icon> select a handling unit --> go to Extras --> Output --> give the Out put type (maintained)) -- > saved.
    Once i come back --> i did not find any option / icon to issue the output from VT03N for handling unit. We have an option to issue output for the Entire Shipment.
    Tried alternative by going to VT70, give the shipment no, and output type for handling unit. When executed, Getting a message "No Messages Found".
    let me know how to issue the output for a handling unit of the shipment. Only Handling Unit & not the entire shipment.
    Regards,
    Swapna

    Hi,
    For VT70 transaction have entered the Print control and Output device.

  • Acquiring data from EMG (data socket?)

    Hi!
    I have to use the Porti TMSi to acquire an EMG signal, that I want to use to control a vibration motor with vibration frequency proportional to the muscular activation.
    My problem is that I don't know how to make the TMSi communicate with Labview and pass it the acquired samples.
    The TMSi has a software (PortiLab2) which has a feature called 'Sneezer'. Signal data that is connected to this block will be broadcasted to the LAN. Another operator called 'Snooper' (in the 'Data Sources' section) can be used to sniff the LAN for the signal that is broadcasted by a 'Sneezer'. 
    One of my colleagues has implemented a software in Visual Studio in order to acquire data through socket (I attached the files).
    I wonder if it is possible to do an operation like this with Labview.
    Thank you!!
    Attachments:
    Header.h ‏2 KB
    TMSiConn.cpp ‏3 KB

    Hi!
    We managed to do the data conversion (parsing the header and convert data in the proper format).
    I attach here the VI.
    The problem now is the slowness of these operations...we need to control a motor in real time with a signal proportional to the muscular activation but the delay is almost 2 seconds!
    We wonder if the problem is the UDP connection or something inside the Labview code (maybe it is not optimal and it takes too many time do the operations required).
    The delay is not only in the output of the DAQCard but also in the displaying of the data read from tha LAN port, immediately after the conversion.
    Is there something we can do to improve the performance of our code?
    Thank you!
    Serena
    Attachments:
    EMGreceiver+DAQ.vi ‏146 KB

  • Identifying Saturday and Sunday from calender dates

    Hi all,
    i have a table with all the date of year from 200 to till date.
    now i want to identify all those dates from this table which are saturdays and sundays,
    how can i do this?
    please advice...
    thanks.

    Depends on what the nls_territory parameter is set to:
    alter session set nls_territory='UNITED KINGDOM';
    select to_char(sysdate, 'd', 'nls_date_language=american') monday,
           to_char(sysdate -1, 'd', 'nls_date_language=american') sunday
    from dual;
    M S
    1 7
    alter session set nls_territory='AMERICA'
    select to_char(sysdate, 'd', 'nls_date_language=american') monday,
           to_char(sysdate -1, 'd', 'nls_date_language=american') sunday
    from dual;
    M S
    2 1Edited by: Boneist on 06-Jul-2009 12:01
    BluShadow is too fast for me!

  • Units from the additonal data tab of the material master

    HI Gurus,
    can anybody please tell me how we can pull the units from the units of measure tab of the additonal data data tab of the material master?
    Thanks
    Anusha

    Hello,
    Are you asking about the Table where you can see the entry for UOM in Material Master?
    If this is your question then answer is It is MARA1 & MARM where you can see the UOM.
    regards,
    Prashant Rathore.

  • I have several libraries in Aperture, (9 libraries, 45,000 pictures .. !!) there a way to unite them all in a single library to retain all data?

    I have several libraries in Aperture, (9 libraries, 45,000 pictures .. !!) there a way to unite them all in a single library to retain all data?

    If you have a drive that is large enough, you can open one library and import the other aperture libraries on after the other into your main library.
    Use the command "File > Import > Library".
    When prompted, if you want to "Add" or to "merge", select "Merge". This way, Aperture will try to avoid to import duplicates.
    Merging can take a long time and needs plenty of free storage, sometimes more than the combined sizes of the libraries to be merged. The additional storage will be released,when the merge is done. 

  • Data Extraction from Multiple data sources into a single Infoprovider

    Hi Experts,
    Can anyone send me links or examples on how to extract data from multiple data sources into 1 Cube/DSO.
    Can anyone send me example scenarios for extracting data from 2 data sources into a single Cube/DSO.
    Thanks
    Kumar

    Hi Ashok,
    Check the following link from SAP help. Ths is probably what you are looking for.
    [ Multiple data sources into single infoprovider|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
    Data from multiple data sources which are logically related and technicall have the same key can be combined into single record.
    For example, if you have Sales order item and sales order item status .
    These both have the same key - sales order and item and are logically related.
    The Sales order item - provides information on Sales order item - material , price, quantity, plant etc.
    The item status  - povides information on delivery status, billing status, rejection status....
    These are two different data sources 2LIS_!1_VAITM ad 2LIS_11_VASTI.
    In case you have few master data attributes coming from different systems ie tow data sources in different systems say completely defines your master data. Then you could use a DSO or infoobject to combine the records.
    If you want to see aggregated data you use a cube.
    ie say you want to analyzae the customer revenue on a particular material and a particular project.
    The project details would come from Project syatem and Sales details fom sales flow.
    The data is then combined in the DSO with key cutomer and sales area say.
    Then it is aggregated at cube level...by not using sales order in the cube model...so all sales order of the same customer would add while loading the cube.. to give direct customer spend values for your sales area at aggregated level.
    Hope this helps,
    Best regards,
    Sunmit.

  • Goods Issuing Many Materials From a Single Handling Unit

    Hi Experts!
    I have searched threads and asked various contacts how to do this but can't get anything beyond the basics of handling units that we have already implemented.
    I am using handling units to pack outbound deliveries and have managed to get to the point where the packaging material is goods issued, however when the product is packed we use (for example)
    - a box
    - a label
    - some sealing tape
    - some ink etc
    and I want to be able to goods issue all the items involved not just a single packing unit - does anyone know how to do this?
    (I have looked at multi level packing e.g. put a product in a box and 10 boxes onto a pallet, but this would only goods issue the box and the pallet)
    Thanks in advance!
    Simon.

    Hi,
    I am using packing instructions set up in POP1 and assigned to a customer via POF1 to pack a number of products into a box. The box (packing material) is inventory managed so when the delivery is created and a plant assigned to the handling units it creates an extra line on the delivery that can be post goods issued. We have auot packing set up on the delivery type I am using. This works fine.
    My question is that the above set up only post goods issues one of the items used in packing my finished products (in this case a cardboard box), I am  trying to find a way of goods issuing other packing materials at the same time such as packing placed with the product inside the box, the tape used to seal the box and the label that we will put on the side of the box.
    I think that it would be possible to use a process order and complete the activity in PP and use a Bill Of Materials, however I want to see if I can take advantage of the automatic packing functions.
    I hope that this makes sense.
    Regards,
    Simon.

  • Power unit from older MacBook Pro - using it with newer model

    I once had a MacBook Pro, one of the early version, bought somewhere in August 2006. Now I have the power unit that is left from it. I want to use it with my current MacBook Pro which is newer model, but not the one which is currently sold - it is NOT the unibody model, it looks exactly like the previous model, but with better spec, and the notable difference is that on the previous model the green diode near camera had a single hole, and the newer model has lots of tiny miniholes there, which makes it completely invisible unless the diode is lit.
    (unfortunately I have no idea how to identify those two models more correctly - model numbers or whatever)
    When I compare the power units - the one which I have with my current model, and the one which is left from the previous, the newer is a bit smaller, and the power output markings are a bit differently organised, not totally identical, but they show what I understand is same voltage/amperage.
    I'm still a bit cautious about using the power unit from the older model. Did anyone tried it, is it safe?

    Next time you can use Mactracker to identify your machines exactly:
    http://www.mactracker.ca/
    Go to >About this Mac>More Info and you will see the Model Name and Model Identifier.
    Good luck!

  • JS/PS CS3: identify single pixels sticking out

    In a bitmap, is it possible to identify single pixels sticking out from a shape? Let's say I have this black shape in a black-and-white bitmap:
       xxxxxxxx
       xxxxxxxx
       xxxxxxxx
       xxxxxxxx
            x
    an 8 by 4 rectangle with one pixel sticking out from the bottom. Question is, can I find such pixels using a script (JS) and make it white?
    Thanks,
    Peter

    Peter, I added the work around to the script. It appears to fix the problem. With my basic test files.
    #target photoshop
    app.bringToFront();
    while (app.documents.length) {
      app.activeDocument.close(SaveOptions.PROMPTTOSAVECHANGES);
    var defaultFolder = new Folder ('~/Desktop');
    var inputFolder = defaultFolder.selectDlg('Please select your Folder of Bitmap files…');
    var outputFolder = defaultFolder.selectDlg('Please Make/Select a Folder to save Cleaned up files to…');
    if (inputFolder != null && outputFolder != null) {
    var fileList = inputFolder.getFiles(fileFiltering);
    if (fileList.length > 0) {
    main(fileList);
    } else {
    alert('This Folder contained NO Photoshop Tiff files!');
    } else {
    alert('A Required folder was NOT chosen!!!');
    // Main Photoshop file processing
    function main(fileObjs) {
    with (app) {
    var whiteRef = new SolidColor();
    whiteRef.rgb.red = 255;
    whiteRef.rgb.green = 255;
    whiteRef.rgb.blue = 255;
    backgroundColor = whiteRef; // This will be used with resizeCanvas(+)
    var userDisplayDialogs = displayDialogs;
    var userRulerUnits = preferences.rulerUnits;
    displayDialogs = DialogModes.NO;
    preferences.rulerUnits = Units.PIXELS;
    for (var i = 0; i < fileObjs.length; i++) {
    if (fileList[i] instanceof File) {
    open(fileObjs[i]);
    var docRef = activeDocument;
    with (docRef) {
    var baseName = app.activeDocument.name.slice(0, -4);
    if (mode != DocumentMode.GRAYSCALE) changeMode(ChangeMode.GRAYSCALE);
    docRes = resolution;
    resizeCanvas(width + 4, height + 4, AnchorPosition.MIDDLECENTER);
    // Cleans single pixels
    artLayers[0].applyMaximum(1); // Adjust as required
    artLayers[0].applyMinimum(1); // Ditto
    artLayers[0].invert();
    artLayers[0].applyMaximum(1); // Ditto
    artLayers[0].applyMinimum(1); // Ditto
    artLayers[0].invert();
    resizeCanvas(width - 4, height - 4, AnchorPosition.MIDDLECENTER);
    var thisBitmap = bitmapOptions(docRes)
    changeMode(ChangeMode.BITMAP, thisBitmap);
    var newFilePath = new File(outputFolder + '/' + baseName + '.tif');
            SaveFileasTIFF(newFilePath, false, TIFFEncoding.TIFFLZW, false, false, false);
            close(SaveOptions.DONOTSAVECHANGES);
    displayDialogs = userDisplayDialogs;
    preferences.rulerUnits = userRulerUnits;
    function bitmapOptions(res) {
      bitOptions = new BitmapConversionOptions();
    //bitOptions.angle = 0;
    //bitOptions.frequency = 150;
    bitOptions.method = BitmapConversionType.HALFTHRESHOLD;
    //bitOptions.pattenName = '';
    bitOptions.resolution = res;
    bitOptions.shape = BitmapHalfToneType.SQUARE;
    return bitOptions;
    function SaveFileasTIFF(saveFile, aC, iC, la, sC, tr) {
      tiffSaveOptions = new TiffSaveOptions();
      tiffSaveOptions.alphaChannels = aC;
      tiffSaveOptions.byteOrder = ByteOrder.MACOS;
      tiffSaveOptions.embedColorProfile = true;
      tiffSaveOptions.imageCompression = iC;
      tiffSaveOptions.layers = la;
      tiffSaveOptions.spotColors = sC;
      tiffSaveOptions.transparency = tr;
      activeDocument.saveAs(saveFile, tiffSaveOptions, true, Extension.LOWERCASE);
    // Mac ONLY filtering (Photoshop Tiff's)
    function fileFiltering(fileObj) {
    if (fileObj.creator == '8BIM' && fileObj.type == 'TIFF') {
    return true;
    } else {
    return false;

  • Excluding a org unit from showing in the hierarchy

    (Nakisa OrgChart 4.1, Live)
    Hello again,
    I'm trying to exclude an org unit from showing in the org hierarchy. I was thinking that the 'Data filter' option in the org chart set up would serve this purpose.
    I tried several ways (id below is the actual ID of the org unit I'm trying to hide):
    ORGUNIT_ID <> 'id'
    ORGUNIT_ID != 'id'
    ORGUNIT_ID IS NOT  'id'
    I did the above with and without quotes, single or double.
    None of them seem to work. The data filter seems to be ambiguous at best. Will I have to hardcode this in the data element xml (or worse, in the function module) for this to work?
    Thanks,
    M.E.

    Hi Stephen,
    Yes this is what the org unit I want to exclude is called. I'm actually wondering when the filtering is supposed to happen. Is it at the extraction of the data in the FM? I took a look at the FM  /NAKISA/OC_OU_STRUCTURE and I could not see a filtering logic anywhere in the code. I saw some authority checks though, and I'm wondering if the following method would work:
    - in the SAP side, exclude the org unit from the area of responsibility of the RFC user (an RFC user is used in all the data connections)
    - modify the parameters of the /NAKISA/OC_OU_STRUCTURE FM so that an area of responsibility check is performed (parameter AOR_CHECK set to 'X') on the RFC user (parameter IM_UNAME set to the RFC User's uname).
    What do you think?
    Thanks
    M.E.

  • Two controllers controlling single motor

    I have a problem in connecting two controllers with a single motor
    I am using two sbRIOs from which I get a  pid output varying from 0volts to 5volts(between AO & AOGND of same board)
    I want to give this output to a fan whose speed is under control through a BNC  cable
    how can I switch the output from one controller to the other in order  to drive my motor without manually changing the terminals....

    Hi Stephen,
    Thanks ever so much for getting back to me about this. Sorry that it's taken me a little while to reply.
    Basically the idea of my project is to produce a particle detector capable of detecting the direction of a radiation source.  The aim is to mount a 'scintillator crystal' within a PVC container so that it can be rotated by the motor.  The scintillator is a material that produces light particles when exposed to radiation.  The theory is that as the crystal rotates the depth of the crystal, relative to the radiation source, will change.  This, in turn, will alter the quantity of light photons produced and this will be measured by a photomultiplier tube which will detect and count the light photons and convert them to a current.  My intention is to convert this signal to a digital output that can be returned to the computer and logged, ideally within Labview. 
    The data should be quick to recover so I don't need to leave a long delay between movements, neither do I need the crystal to move quickly.  I just need to  know it's position at any particular time.  I was hoping to initially reach a situation where the motor can be controlled.  This would allow me to complete the project and log the data manually if necessary, and then alter the program later to provide a data logging function. 
    Thanks again for all of your help
    George

  • Remove Characters from a Date

    What are some ways that I could remove the hyphens, semicolons, periods, and empty strings from a date (in a single expression)?
    If I have a date (returned from GETDATE()) as follows:
    2014-09-15 16:53:09.253
    I want to remove the non-numeric characters and return this:
    20140915165309253
    Can REPLACE be used to identify more than one character pattern to replace?
    Thank you for your help!
    cdun2

    Another way, don't remove at all, begin with just the requisite dateparts and datenames. Although either way works fine, this way gives you absolute control over how you render.
    In this example, the "from sys.messages" is not part of the answer, I just included it to recreate a test to compare speeds.  It ends up having the same speed/execution plan/actual CPU time used either way. 
    The "Right()" functions are required, because for example, if the time is 8:03, the "03" is presented as just "3", so you have to force it to render as "03" with the Right function.  The DatePart(month) is the
    only one returning an integer result, so that must be cast as Varchar, the DateName() functions return a string, although unfortunately with leading zeroes removed.
    Select Datename(year, SysDateTime())
    + Right('0' + Cast(DatePart(month, SysDateTime()) as varchar(2)) , 2)
    + Right('0' + DateName(day, SysDateTime()), 2)
    + Right('0' + DateName(hour, SysDateTime()), 2)
    + Right('0' + DateName(minute, SysDateTime()), 2)
    + Right('0' + DateName(second, SysDateTime()), 2)
    + Right('0' + DateName(ms, SysDateTime()), 3) , sysdatetime()
    from sys.messages sm1
    Select REPLACE(REPLACE(REPLACE(REPLACE(CONVERT(VARCHAR(30), GETDATE(), 121),'-',''),':',''), '.',''),' ',''), sysdatetime()_
    from sys.messages sm1

  • How do I pull just the year from a date?

    I'm trying to pull just the year from a date and cannot figure out how this can be done. I tried the SUBSTR fuction but its not acting how I would expect. What I'm wanting to do is write a condition that says Item Birth Year = Current Year minus 23 I have a calc that figures the age from the difference in the birthdate and current year but I'd really like to just write a condition based just one years. Can this be done?

    Hello
    SUBSTR will only work on a string. To extract portions of a date you need to use the TO_CHAR command.
    To get the year you would use this: TO_CHAR(the_date,'YYYY')
    TO_CHAR takes 2 switches, the date to be manipulated and the portion to be extracted, with the portion in single quotes.
    Once you get used to manipulating dates like this other common pieces are: DD - extracts the day of the month, MON extracts the 3 character code for the month.
    Thus you can use this: TO_CHAR(sysdate,'DD-MON-YYYY') and it will convert the current date, June 7th 2012 to 07-JUN-2012
    Hope this helps
    Best wishes
    Michael

Maybe you are looking for

  • SAP Client to the SAP Server: internal Error (-1102)[Message 131-183]

    Hi, We are using Windows 2008 Server R2, SQL 2008 Standard, SAP B1 8.81 PL08. When we trying to connect SAP Client to the SAP Server. There has internal Error (-1102) occurred. We can view the database on client, but we always get the same error mess

  • Problem inserting and querying XML data with a recursive XML schema

    Hello, I'm facing a problem with querying XML data that is valid against a recursive XML Schema. I have got a table category that stores data as binary XML using Oracle 11g Rel 2 on Windows XP. The XML Schema is the following: <?xml version="1.0" enc

  • Maximum number of  photos in iPhoto 5

    When I had my older G4 and older version of iPhoto (3.0 I think), scrolling and other functions would be extremely slow if my library go too big. So I split my iPhoto library into several smaller ones using iPhoto Library Manager. Now that I have a f

  • Graph Annotations - Major Bug !!!!!

    I am using annotations on a NiGraph control(2D, single plot chart). I update the X and Y coordinates of specific annotations using m_Graph.Annotations.Item(item).Caption.SetCoordinates(... , ...) this is done around 3 times per second. Each call to S

  • Import MS Excel in OA Framework

    We have a custom requirement to upload a Excel in to a custom portal. I have used "MessageFileUpload" item style in the page to select the Excel file from the local system. But is there any framework package available to read the Excel file? If not c