The TCP 1 layer and Layer 2 Communication

Hello

I'm looking for possible ways to communicate on the layer 2 and layer OSI 1 (physical layer and layer of data binding).

I have a this equipment with host interface is ethernet, this device works on OSI layer 1 or Layer 2 or we can say that working on the MAC layer communication device.

Basically I want to exchage frames between the device and the host PC. If anyone has knowledge on this part please with me.

The wincap dll using we can communicate on layer 1 and Layer 2

Tags: NI Products

Similar Questions

  • Find a specific sublayer and pass to the top-level layer

    I have a lot of illustrator files which are organized by a model size. The layers are configured so that the top-level layer is always model. However the underlayment I need to pass to the next level could be called 42 border Pg or 30 border Pg or Pg 24 border.

    Y at - it a way for a script to search through the layers and if it finds '42 Pg border' or 'border Pg 30' or "24 Pg border" in the base layer model it it would move to the top level, but if he does not see an of these he does not give an error?

    I'm still new to scripting so the extent of my knowledge on this is to scan all the layers and unlock them. Then, find a specific layer name. This is the base layer and moving it to the next level that I'm not sure.

    Here is my current code:

    var doc = app.activeDocument;
    var allLayers = doc.layers;
    for (var i = allLayers.length-1; i >= 0; i--){
        allLayers[i].locked = false;
        if (allLayers[i].name == "42 Pg Border" || allLayers[i].name == "30 Pg Border" || allLayers[i].name == "24 Pg Border") {
            alert("I found the " + allLayers[i].name + " layer")
        } else {
            alert("Not the right layer")
        }
    }
    

    Any help would be greatly appreciated!

    I'm using CS4 on a PC running Windows 64 Bit with JavaScript

    This gives a shot.

    its still very early and my brain completely does not work yet.

    bring all the layers in the beginning (May) will ruin the stacking order much.

    var doc = app.activeDocument;
    var allLayers = doc.layers;       
    
    for (var i = allLayers.length-1; i >= 0; i--){
      allLayers[i].locked = false;
      deeper(allLayers[i]);
    }    
    
    function deeper(parent){
    var subLayers = parent.layers;
      if (subLayers.length > 0){
      for (var i = subLayers.length-1; i >= 0; i--){
      subLayers[i].locked = false;
      deeper(subLayers[i]);
      if ((subLayers[i].name).substr(-6) == "Border") {
         subLayers[i].move(allLayers[0],ElementPlacement.PLACEBEFORE);
      }
      }
      }
    }
    
  • How set the anchor point of the composition (no layer)

    Hi people,

    I have a composition very long and skinny.  In a far corner of the comp, I'm turning a layer on the x axis, but I want to turn backward in relationship to itself, and NOT with regard to the focus of the long and lean model.  I changed the anchor point of the layer itself to be the center of the layer, but it always tilted toward the center of the model:

    Screen Shot 2016-09-04 at 2.14.33 PM.png

    How can I change the anchor point of the comp itself?  I tried to change the position of 'anchor' in the grid 3 x 3 in the composition settings panel, but that seemed to have no effect.  Thank you!

    mbirame wrote:

    It makes sense, but it surprises me. If the point of leakage of a 3D object will always be in the center of the composition?

    No.... Just like in real life, point of view is controlled by the position of the camera, the angle of view is controlled by the focal length, and the center of the view is always on an infinite perpendicular line between the center of the plan of the film (point of interest). The human eye is not tilt shift, like the cameras was discovered and no not the camera AE (or no matter what camera I've ever seen in a 3D application, so you can not control the perspective by winning the film plane or by moving the center of the lens as you can do with a camera or a tilt shift lens.

    The vanishing point is where the parallel lines converge and depends on the angle of parallel lines to the camera.

    I hope that makes sense.

    Here's the thing about nesting more small compositions in a larger. If you put 3D layers in your nested compositions and condense the transformations, then the camera in the main computer will interact with the 3D layers in nested compositions. If you do not condense the transformations there will be no change in perspective as the camera moves into the main computer. If you do not condense the transformations and you make the 3D before comps will organize just flat cards in the main 3D model space.

    One last thing. Only the Active camera view has perspective. All custom views are orthogonal - no perspective. This

    It will take a minute, but you should be able to wrap your head around that. Here is a demonstration of model how global collapse of transformations. Feel free to play with it. Collapse Transformations.aep (Note: your browser may add an extension .txt to the app file - just delete it)

  • Script to make the list of layer names.

    I wonder if someone could help me make the simple script that take the layer names and the list of their share on the A4 in canvas.

    Now I just got the screenshot of the list of Illustrator and edit it through photoshop to print, but it is too small, because each file have a approximately 25-50 layers.

    Looks like this:

    layer-list.jpg

    I tried to edit the script of John Wundes, which makes the list of the nuances, but it seems difficult for my skills.

    /////////////////////////////////////////////////////////////////
    // Render Swatch Legend v1.1 -- CS, CS2, CS3, CS4, CS5
    //>=--------------------------------------
    //
    //  This script will generate a legend of rectangles for every swatch in the main swatches palette.
    //  You can configure spacing and value display by configuring the variables at the top
    //  of the script. 
    //   update: v1.1 now tests color brightness and renders a white label if the color is dark.
    //>=--------------------------------------
    // JS code (c) copyright: John Wundes ( [email protected] ) www.wundes.com
    // copyright full text here:  http://www.wundes.com/js4ai/copyright.txt
    //
    ////////////////////////////////////////////////////////////////// 
        doc = activeDocument,
        swatches = doc.swatches,
        cols = 4,
        displayAs = "CMYKColor",  //or "RGBColor"
        rectRef=null,
        textRectRef=null,
        textRef=null,
        rgbColor=null,
        w=150;
        h=100,
        h_pad = 10,
        v_pad = 10,
        t_h_pad = 10,
        t_v_pad = 10,
        x=null,
        y=null,
        black = new GrayColor(),
        white = new GrayColor()
        ;
    
    
        black.gray = 100;
        white.gray = 0;
    
    
    activeDocument.layers[0].locked= false;
    var newGroup = doc.groupItems.add();
    newGroup.name = "NewGroup";
    newGroup.move( doc, ElementPlacement.PLACEATBEGINNING );
    
    
    for(var c=0,len=swatches.length;c<len;c++)
    {
            var swatchGroup = doc.groupItems.add();
            swatchGroup.name = swatches[c].name;
           
            x= (w+h_pad)*(c% cols);
            y=(h+v_pad)*(Math.floor((c+.01)/cols))*-1 ;
            rectRef = doc.pathItems.rectangle(y,x, w,h);
            rgbColor = swatches[c].color;
            rectRef.fillColor = rgbColor;
            textRectRef =  doc.pathItems.rectangle(y- t_v_pad,x+ t_h_pad, w-(2*t_h_pad),h-(2*t_v_pad));
            textRef = doc.textFrames.areaText(textRectRef);
            textRef.contents = swatches[c].name+ "\r" + getColorValues(swatches[c].color) ;
            textRef.textRange.fillColor = is_dark(swatches[c].color)? white : black;
            //
            rectRef.move( swatchGroup, ElementPlacement.PLACEATBEGINNING );     
            textRef.move( swatchGroup, ElementPlacement.PLACEATBEGINNING );
            swatchGroup.move( newGroup, ElementPlacement.PLACEATEND );
    }
    
    
    function getColorValues(color)
    {
            if(color.typename)
            {
                switch(color.typename)
                {
                    case "CMYKColor":
                        if(displayAs == "CMYKColor"){
                            return ([Math.floor(color.cyan),Math.floor(color.magenta),Math.floor(color.yellow),Math.floor(color.black)]);}
                        else
                        {
                            color.typename="RGBColor";
                            return  [Math.floor(color.red),Math.floor(color.green),Math.floor(color.blue)] ;
                           
                        }
                    case "RGBColor":
                       
                       if(displayAs == "CMYKColor"){
                            return rgb2cmyk(Math.floor(color.red),Math.floor(color.green),Math.floor(color.blue));
                       }else
                        {
                            return  [Math.floor(color.red),Math.floor(color.green),Math.floor(color.blue)] ;
                        }
                    case "GrayColor":
                        if(displayAs == "CMYKColor"){
                            return rgb2cmyk(Math.floor(color.gray),Math.floor(color.gray),Math.floor(color.gray));
                        }else{
                            return [Math.floor(color.gray),Math.floor(color.gray),Math.floor(color.gray)];
                        }
                    case "SpotColor":
                        return getColorValues(color.spot.color);
                }    
            }
        return "Non Standard Color Type";
    }
    function rgb2cmyk (r,g,b) {
     var computedC = 0;
     var computedM = 0;
     var computedY = 0;
     var computedK = 0;
    
    
     //remove spaces from input RGB values, convert to int
     var r = parseInt( (''+r).replace(/\s/g,''),10 ); 
     var g = parseInt( (''+g).replace(/\s/g,''),10 ); 
     var b = parseInt( (''+b).replace(/\s/g,''),10 ); 
    
    
     if ( r==null || g==null || b==null ||
         isNaN(r) || isNaN(g)|| isNaN(b) )
     {
       alert ('Please enter numeric RGB values!');
       return;
     }
     if (r<0 || g<0 || b<0 || r>255 || g>255 || b>255) {
       alert ('RGB values must be in the range 0 to 255.');
       return;
     }
    
    
     // BLACK
     if (r==0 && g==0 && b==0) {
      computedK = 1;
      return [0,0,0,1];
     }
    
    
     computedC = 1 - (r/255);
     computedM = 1 - (g/255);
     computedY = 1 - (b/255);
    
    
     var minCMY = Math.min(computedC,
                  Math.min(computedM,computedY));
     computedC = (computedC - minCMY) / (1 - minCMY) ;
     computedM = (computedM - minCMY) / (1 - minCMY) ;
     computedY = (computedY - minCMY) / (1 - minCMY) ;
     computedK = minCMY;
    
    
     return [Math.floor(computedC*100),Math.floor(computedM*100),Math.floor(computedY*100),Math.floor(computedK*100)];
    }
    
    
    function is_dark(color){
           if(color.typename)
            {
                switch(color.typename)
                {
                    case "CMYKColor":
                        return (color.black>50 || (color.cyan>50 &&  color.magenta>50)) ? true : false;
                    case "RGBColor":
                        return (color.red<100  && color.green<100 ) ? true : false;
                    case "GrayColor":
                        return color.gray > 50 ? true : false;
                    case "SpotColor":
                        return is_dark(color.spot.color);
                    
                    return false;
                }
            }
    }
    

    arop16461101,

    something like that?

    var theLayers = app.activeDocument.layers;
    var str = new Array ();
    for (i = 0; i < theLayers.length; i++) {
        str.push (theLayers[i].name)
        }
    var tF = theLayers[0].textFrames.add();
    tF.contents = str.join ("\r");
    alert("new text frame with layerlist added on layer " + theLayers[0].name);
    

    Have fun

  • in the color fill layer is go gray instead of sellected color

    Hi, did anyone know what is happening with the color fill layer? an exclamation point appears over the top of the half, that is the new color and a block on the lower half, and when I click ok the color fill layer is always grey

    I suspect that you are in grayscale. Go to Image > Mode and change to RGB.

  • The module "Adobe layer Namer" does not appear in the extensions.

    Hi all.

    I use PS cc 2015.

    Well the module "Adobe layer Namer" appear to have correctly installed and appears on my Adobe add-on page, it does not appear under window > Extensions.

    Please notify.

    Thank you

    Dario.

    Did you try to remove and reinstall add on?

    Please disconnect from creative cloud app and then reconnect.

    Concerning

    Jitendra

  • CS4 Crash in the BW adjustment layer

    I use the black and white adjustment layer in CS4. After the conversion to black and white, I select the "cursor" tool/eye drops to be used directly on the image (sorry, I don't know the official name). As soon as I do that, the PS crashes. I can manually adjust the sliders; Sometimes it affects the image, sometimes not.

    Any ideas? Preferences of the trash?

    Thank you

    Debbie

    P.S., Macbook Pro, 10.8, suite CS4 Design.

    Hi Debbies,

    I suggest you to reset the Photoshop preferences as you mentioned that to adjust manually the sliders sometimes will not work.

    Using Photoshop | Preferences

    Please let us know if it helps.

    Concerning

    Sarika

  • Is it possible to merge the parameters of adjustment to the underlying timeline layer?

    I just finished an edict of 10 min with different adjustment layers that contain different color nuances that are applied to the underlying clips. The customer wants to make a trailer for 2-3 minutes longer this edition. My question is: can I merge sort, the parameters of adjustment to the underlying clips layer? I speak not nesting. I still need my cuts so I can just shorten the video all keep the associated color shades. Otherwise, I'll have to copy and paste this one timeline, and adjust layers adjustment accordingly. Hope that makes sense. I have looked everywhere for this issue and can't find it anywhere. Sure that's not possible. Thank you. Hope there is a solution.

    -Samia

    Screen Shot 2015-09-29 at 10.56.12 AM.png

    For each adjustment layer, you can copy and paste the attributes on the underlying clips at once.

  • How do 'Video on layer' to the new adjustment layer IT as default.

    How do 'Video on layer' to the new adjustment layer IT as default.

    Thank you

    What version of photoshop are you using?

    In recent versions, you can go to window > adjustments and click on the Clip to layer and this should be the default value after that.

  • Is there a way to get the comment of layer?

    Hello world.

    I'm having a problem.

    I can't find the API to get the comment of layer.

    You could teach me please?

    Hmmm... It "seems to be no API c for that."

    You can always do so through AEGP_ExecuteScript() and retrieve the

    result back to part c.

    funny. I didn't know there would be a api for this...

  • AECC BUG? Photoshop groups is no longer the import with layer styles?

    Hello.

    I noticed something small.  But important to me.

    Import from a psd into After Effects works beautifully.  But in previous versions, when you import a psd model group resulting retains the layer styles.  This happens is no longer for me in CC.

    Everyone there this problem?

    Is this by design?

    Is this a bug?

    He will be back?

    Thanks for looking,

    -Josh

    After Effects has never read the layer on a group styles in a PSD file. Application of layer groups styles is a new feature in Photoshop CS6. After Effects CS6 and CC are not last updated to read the layer styles applied to groups.

    IOW, we just never wrote the code to make it work. I suspect that you were using a different method (for example, workaround below) to provide for several layers of Photoshop layer styles in After Effects.

    You can work around this limitation by transforming your group in a smart object layer. Right-click on the group in the layers panel, and then choose Convert to smart object. You will now see the styles of layer on the associated layers in AE, but styles will be editable and PSD layers will be merged unfolded, not a nested model.

    Please submit a feature request for all the features (like reading the layer on the groups styles, or editable on the smart objects layer styles, or to import dynamic objects as nested compositions) that you would like to have added to After Effects:

    http://www.Adobe.com/go/wish

  • New ideas or suggestions for the flattening of the effects of layer without changing the appearance

    Hi all

    I did a lot of research of ideas on how to make my simpler workflow. I meet regularly with a problem with the layer effects when they are flattened and have been unable to find the right solutions, but I was wondering if any new development came with the new versions of Photoshop that I'm somehow overlooking?

    My main problem is that when I flatten layers in sections or groups (i.e. flatten only 2 layers or more together in a larger composition but not the entire compostion), layer with often methods of fusion flatten strangely. I note in particular that with shadows that I often use one color other than black, generally a shade very dark color applied to the element, the shadow is bunk. For me, it gives a much more realistic and natural look. When I flatten a layer I notice it seems to multiply it mode is stripped shadow FX unless they are flattened with nackground element, so if I used a dark blue, for example, once flattened shadow is now a shade of blue separate which appears to be in normal blending mode. I can put this drop shadow layer to multiply to restore it, but then I have to separate the element shadow of drop on its own layer of the body of the other flattened content otherwise she also well multipoy mode inherits of course, which always leaves me with a layer unwanted to deal with.

    My monetary solutions vary to hide all other layers and visible fusion, which works for some things, but not the problem of shadow drop above, I will keep as things that just don't work on their own layer separate, like the shadow and just let them be if I can. In cases where this is not an option, I even hide all other layers and model the portion of the DSP which has flattened to a separate TIFF or PNG and re-import the PSD. This will sometimes work around the problem and do everything interact as you wish. It's a matter of confectioners, even if it means mental acrobatics everytime to design a workaround solution that I can use for my purposes.

    I need to do often is because I work for a company of web development as a designer. Once the design is sometimes I'm going to cut and prepare it for the web (not a problem when I am doing this because I can leave as a PSD). When the other members of the team as a web developer need access to graphic files if they use Fireworks which means I need a PNG image in layers so they can rip with the software they know while maintaining transparency if necessary.

    I know that some will say just to use Fireworks then but this isn't a desirable for me because I find it very restrictive fireworks on the progress of Fx and graphic manipulation. I am agree that Fireworks can be very capable and can do very nice things when you are thinking about the design of the whole site in general, but it can usually do the fx tip and manipulation that I like to use for parts of 'eye candy' of the site, especially when you use mutiple Fx on a layer with their own blending modes. I think it's more complicated to build a general site in Fireworks and import items of Phoroshop. Follow-up to good design and loading constantly the background images of space reserved for photoshop for reference is not for me!

    I have a pretty decent understanding of functioning of the flattening of the layer and how the merger of modes function (like the fact that you can't have mutiple modes on a single layer, so many problems with blend modes Fx layer fusion). I'm with CS5.5 Design premium and hope that there was some progress in working with this kind of thing. I know that if I could flatten the layer shadow down with the layer she rides that would solve the question well but this is rarely possible on Web sites where you have fluid areas who need to change the size and the image with the shadow element is not always in the same place on the bottom of the site.

    Would be great if, since you have the possibility to apply the individual layer blending modes, if Photoshop could have a setting to somehow flatten the layer effects and layer in it is no self clean process and then place the layer flattened within the PSD as if you imported a transparent image as a TIFF or PNG. That's essentially what I do on the extreme side of tihngs manually if necessary. It would be great if there was a way to automate this type of functionality.

    Anyone know of any new or good method to deal with this sort of thing? Sorry for the long post, I tried to be as detailed as possible, I know, it is sometimes easy to misinterpret what someone asking this type of question. Thank you all for taking the time to read/answer!

    To answer your specific question, do not have a background.  Adobe has established rules for manipulating combinations of layer if there is no pixel backround of first, and you may find yourself quite reasonable with your transparent throughout the image pixels.  If you save an image in PNG format, for example, when a browser renders the image that it will perform its own process to "overlay" and pixels transparent (or partially transparent) won't do not (or only partially change) the colors of the pixels behind the PNG.

    -Christmas

  • How to make a vector in a shaper of transparency on a layer rather than in the form of layer?

    I'm working on a drawing that somehow, I created a layer-all blue, which has what looks like a vector mask

    on it, but the vector mask, rather than shape layer, creating transparency in the layer.

    And I don't know how to reproduce this effect!

    Whenever I create a vector mask, it shapes the layer.

    If I take this vector search mask to this layer and try to copy it to another layer - it shapes the layer!

    If I copy him on the original layer - it shapes the original layer...

    So there is something on the vector mask that explains the shape of the layer is all 'outside' of the vector.

    How in hell!  The "swap" button isn't available when you go in "masks" and look at the vector masks.

    So, how I recreate this type of transparency mask?  It drives me crazy, because there is - as I want, but I can't

    reproduce it!  I tried dup'ing mixture on the layer settings - but they don't seem to have an effect.

    Ideas?

    With the active shape layer, select the path Selection tool, select

    the path in the document by clicking somewhere in the path

    or by dragging around the way access and then try clicking on the different shape

    boxes of box in the tool options bar.

    MTSTUNER

  • Change the observer for layer quality

    After working nearly a year after effects 4, I have suddenly poor quality in the viewer of layer. I must have changed something, inadverently. How can I change the quality at full gback? This isn't the composition preview window, which is fine.

    Ingvar

    Wow. After Effects 4. I don't have access to this version to test.

    Oh, wait a second. Do you mean CS4?

    If so, one thing to check is the Resolution/Down example of menu in the Composition Panel. This setting determines the quality in the layer panel and the Composition Panel.

  • Trace a path of shape rather than the ordinary path layer?

    Hello people! So I created a design on Photoshop CS4 using the pen tool. I used the shape layer option. As I used the pen tool and set the anchor and adjusted points all handles, my intuition tells me that I can get back my drawing of the regular shape to paths option layer because they are so similar, no? Once my shape layer becomes a regular path, I want to caress.

    I don't want to start my drawing everywhere, redo the anchor of all points and handles using the path option - I hope you understand what I mean!

    I appreciate any input you guys have to offer!

    Once you make the shape layer, go to the

    paths Panel and save the path, then make a new layer and stroke.

    Or you could shoot as many paths, no shape layer and then save your workpath

    go in the tracks Panel.

    MTSTUNER

Maybe you are looking for