Question of interface Vector Xl xlLinsetSlave()

Hi, I am developing a flash flash file for vector xl driver hex tool. I wrote a
hardware configuration for vector file driver xl using the interfaces provided by the vector. my setup is very much like in the example provided by the vector. but when I transmitting a data through interface xlLinSetSlave . I always get a response from the material after sending data. I'm not understand after sending assistance xlLinSetSlave data interface, it is not always striking to the hardware interruption. as you can see in the code, the LINSendMasterReq interface used to send data to the application and within the interface, I call two xlLinSendRequest interfaces to define the query master and linSetSlave to set slave to transmit and receive the data.please take a look:

#include "Device.h".
#include 'QString '.

XLstatus Device::LINSendMasterReq(unsigned char *data, int linID)
{
XLstatus xlStatus = XL_ERROR;
char tmp [100];

Send the request of master xlStatus = xlLinSendRequest (m_xlPortHandle, m_xlChannelMask [MASTER], linID (unsigned char), 0);

Configure the only channel of the slave (LIN ID + 1) xlStatus = linSetSlave (linID + 1, data);
Return xlStatus;
}

XLstatus Device::linSetSlave(int linID, unsigned char *databyte)
{
XLstatus xlStatus = XL_ERROR;
char tmp [100];
XLevent xlEvent;

unsigned char [8] data;

for (int i = 0; i)<>
{
data [i] = databyte [i];
}
xlStatus = xlLinSetSlave (m_xlPortHandle, m_xlChannelMask [SLAVE], (unsigned char) 0x3C, data, DEFAULT_LIN_DLC, XL_LIN_CHECKSUM_CLASSIC);
Sleep (timeval);
xlStatus = xlLinSendRequest (m_xlPortHandle, m_xlChannelMask [MASTER],(unsigned char) 0x3D, 0);

Return xlStatus;
}

Maybe it's the wrong forum? I don't see any LabVIEW. Is it perhaps LabWindows/CVI?

Tags: NI Software

Similar Questions

  • a question with interface Runnable?

    Hi all, I have a question with the Runnable interface.

    public void TestFunction(Rnnable rn){  rn.run();}
    
    //create a Runnable objectRunnable new_runnable = new Runable()
    {
      public voi run()  {     //do some thing...  }};
    
    //Call TestFunctionpublic void main(..){   //do some thing...   TestFuntion(new_runnable); /*Will this call make new_runnable run on separate thread? */   //do some thing...}
    
    
    

    My goal is to create a TestFunction with the setting is another function to perform, and I want to run on the same thread.

    If I use passable is a parameter, it will be Runnable.run () run on separate thread or the same thread by Thread that calls TestFunction()?

    Thank you very much!

    Yes, it runs on the same thread because you call the run method directly if you want it to run on its own thread you need to run Application.invalokeLater (runnable) or UiApplication.invokeLater (runnable) or pass to a thread object Thread (runnable) m:System.NET.HttpListener.start (new).

  • A few questions simple interface

    Hello.

    I've been using Edge for a few months now. some of it is incredible. the game of and stop at functions in particular.

    He has problems for sure however.

    While I worked, I copied a few interface issues.

    1. in the library, how can I see anything actually what? I see not miniature or a way to click on the symbols or png.

    2. is there a place to see all of the code I'm working with the project? I have code dispersed across a my keyframes and it would be great if there was 1 place that he had consolidated.

    3. in the choice of colors of text is it possible to eye drop pixels on the scene?

    4. can you take a picture of the poster from the inside of a symbol, or should it be what happens on the main stage? If not, can I exported images off the premises of the time line? I want screenshots of what is going in my subelements.

    5. is there a way for the symbols to be automatically names? If she'd keep just the png for the symbol and the layer name, I would be set. but as it is I'll have to make a lot of seizure and it becomes tasking and inelegant.

    6. from the assets, can I right click on an any png and make a symbol? or do I have to let the drag on the stage first and then make a symbol.

    Serious bugs:

    1. I had the scene puts don't not updated when new items are added to it. Edge had to be restarted.

    2. I had the publication settings dialog box get locked up on me several times. Edge would always work behind the dialog box, but the tricks of publication would not go far.

    That's it for now. Thank you

    John

    Hi, John.

    We are actively working on the next version of edge animate, so all these comments is excellent.  Let me answer some of your questions:

    1. we have a few icons to see what kind of assets are in the library, for example images icons when the line image, icon symbol if the element is a symbol.  However, it is impossible for you to introspect them now, but you can see an asset in his directory by right-clicking on it.

    2. Yes.  You can use the code Panel to view all the code in the form of the tree, and if you really want to see all the code, there is a button in the upper right corner that says "full code".  You can also view all events on a symbol or scene by clicking on these lines in the code pane.

    3. we do not have a function of drops eye in 1.0.x if it isn't certainly an element in our list of feature requests

    4. No, it's a snapshot of what is happening on the main stage at this precise moment.  You can get images from various places in the timeline - you can take pictures of posters of the main timeline by moving the playhead in the timeline panel, and then capture the image of the poster of the step properties panel.

    5 symbols will be named automatically, but not based on a custom symbol prefix, if that's what you're asking.

    6. not at the moment, none; you will need to do something before creating a symbol.

    About your bugs, can you please post some examples of files that reproduce the problem?  Then we can in it.

    Thank you

    -Elaine

  • Tecra A3 - question projector interface

    The first time I used the A3 for a Power Point show, I'm no RED on the screen. My host checked my PP in her notebook - worked well. Later, I checked the A3 with my other flat screen - worked well. So it must be a problem of cable or interface.

    Any suggestions?

    Hello

    As far as I know that this problem could occur if the overlay option is not supported on 2 screens.
    Try to disable the overlay in the graphic properties.

    The second possibility is to put the projector as a primary device. But I m not 100% sure if this is possible.
    Check it out

  • Cisco ASA VPN tunnel question - DMZ interface

    I am trying to build a tunnel to a customer with NAT and I'm able to get 3 of the 4 networks to communicate. The 1 that is not responding is a DMZ network. Excerpts from config below. What am I doing wrong with the 10.0.87.0/24 network? The error in the log is "routing cannot locate the next hop.

    interface Ethernet0/1
    Speed 100
    half duplex
    nameif inside
    security-level 100
    the IP 10.0.0.1 255.255.255.0
    OSPF cost 10
    send RIP 1 version
    !
    interface Ethernet0/2
    nameif DMZ
    security-level 4
    IP 172.16.1.1 255.255.255.0
    OSPF cost 10

    network object obj - 172.16.1.0
    subnet 172.16.1.0 255.255.255.0

    object network comm - 10.240.0.0
    10.240.0.0 subnet 255.255.0.0
    network object obj - 10.0.12.0
    10.0.12.0 subnet 255.255.255.0
    network object obj - 10.0.14.0
    10.0.14.0 subnet 255.255.255.0
    network of the DNI-NAT1 object
    10.0.84.0 subnet 255.255.255.0
    network of the DNI-NAT2 object
    10.0.85.0 subnet 255.255.255.0
    network of the DNI-VIH3 object
    10.0.86.0 subnet 255.255.255.0
    network of the DNI-NAT4 object
    10.0.87.0 subnet 255.255.255.0

    the DNI_NAT object-group network
    network-object DNI-NAT1
    network-object DNI-NAT2
    network-object ID-VIH3
    network-object NAT4 DNI

    DNI_VPN_NAT1 to access ip 10.0.0.0 scope list allow 255.255.255.0 object comm - 10.240.0.0
    Access extensive list ip 10.0.12.0 DNI_VPN_NAT2 allow 255.255.255.0 object comm - 10.240.0.0
    Access extensive list ip 10.0.14.0 DNI_VPN_NAT3 allow 255.255.255.0 object comm - 10.240.0.0
    Access extensive list ip 172.16.1.0 DNI_VPN_NAT4 allow 255.255.255.0 object comm - 10.240.0.0
    access-list extended DNI-VPN-traffic permit ip object-group, object DNI_NAT comm - 10.240.0.0

    NAT (inside, outside) source static obj - 10.0.12.0 DNI-NAT2 destination static comm - 10.240.0.0 comm - net 10.240.0.0 to net non-proxy-arp
    NAT (inside, outside) source static obj - 10.0.14.0 DNI-VIH3 destination static comm - 10.240.0.0 comm - net 10.240.0.0 to net non-proxy-arp
    NAT (inside, outside) source static obj - 172.16.1.0 DNI-NAT4 destination static comm - 10.240.0.0 comm - net 10.240.0.0 to net non-proxy-arp

    Hello

    I see that the issue here is the declaration of NAT:

    NAT (inside, outside) source static obj - 172.16.1.0 DNI-NAT4 destination static comm - 10.240.0.0 comm - net 10.240.0.0 to net non-proxy-arp

    The correct statement would be:

    NAT (DMZ, external) source static obj - 172.16.1.0 DNI-NAT4 destination static comm - 10.240.0.0 comm - net 10.240.0.0 to net non-proxy-arp

    Go ahead and do a tracer of packages:

    Packet-trace entry DMZ 172.16.1.15 tcp 443 detailed 10.240.X.X

    Thus, you will see the exempt NAT works now.

    I would like to know how it works!

    Please don't forget to rate and score as correct the helpful post!

    Kind regards

    David Castro,

  • Question simple interface ODI

    Hello

    ODI 11.1.1.3
    Oracle databases

    I created a simple interface
    target mapping from source to the columns in the table.
    the lkm is oracle to oracle (databaselink)

    When I run the interface, I get error

    "ODI-1228: SrcSet0 of the task (loading) fails on the connection target ORACLE ORACLE_TGT_schema.
    "Caused by: java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges".


    This error takes place at step 4.

    The generated code is the failure

    create synonym ODI_WREPO. C$ _0CTA_IMP_DEV_PLA
    for ED_STORAGE. C$_0CTA_IMP_DEV_PLA@T_ED_READER. EUDRA.ORG

    When I do a simple select

    Select * from ED_STORAGE. C$_0CTA_IMP_DEV_PLA@T_ED_READER. EUDRA.ORG (via my repo user odi_wrepo work),
    This method works.

    Also the user odi_wrepo has been granted 'create any synonym' and "remove any what synonym"

    I also tried with grant 'create public synonym' and ' drop public synonym '.


    What should I do?

    It's my first interface.

    Thank you
    s

    you run this code in Toad/sqldeveloper

    create synonym ODI_WREPO. C$ _0CTA_IMP_DEV_PLA
    for ED_STORAGE. C$_0CTA_IMP_DEV_PLA@T_ED_READER. EUDRA.ORG

    Can you create?

    Thank you

  • Question effectiveness interface

    I use an interface to load a CSV file in our database, it combines two tables of two different schemas, which is fixed to the staging area. I noticed that the table in the schema of non staged has been charged in its entirety in an array of C$ in the staging, database that takes forever because it has 3.9 million lines.

    Is it possible to configure the interface so that it joins the tables without the copy?

    Craig,

    1.) both of your drawings seem to be configured under different topology data servers. This makes ODI think that they belong to different databases and therefore it under the hood copies the data in C$.
    Configure the two schemas in the same database server, and you will see that the table $ ca goes.

    (2.) to the CSV file, I hope you use the LKM at Oracle (SQLLDR) file to load temporary tables (assuming that your Oracle technology).

  • Question about interfaces

    I hsve a setp where some classes inherit from a base (events, more common math) class. All derived classes implement the same set of methods.

    Another part of the program wants to instantiate one of these classes.

    So far I was creating empty functions in the base class and by substituting the. An interface may improve on it?

    I tried to list the common functions in an interface and use it as a data type, but that wouldn't let me use the functions that already inherits from the base class, to the specific event dispatcher. I add to the interface?

    Looks like your current configuration is essentially an abstract class. It's a perfectly legitimate technique of OO, do not feel bad about it. Looks like you might want an implementation in your base class, such as basic math; It's something you can't be in an interface, as they cannot guarantee that a function exists, they may not contain all the features - you will need to re-implement what anyone who implements the interface anyway. In addition, if you want to ensure certain other legacies (as of the event dispatcher, which is a class not a flash interface), it is a job best suited for an abstract class.

    The interfaces are how you would multiple inheritance. For this reason, using a reference of type of interface would be a) that worry about the existence of functions and fields, regardless of the implementation and b) don't have access to what suits him and not be encumbered with other features beyond what is defined in the interface. Depending on the scope and complexity of your project, these may or may not be important things.

    If you want to use an interface when even (since the creation of empty functions and substituting them typically would be this way) you can create features in your interface that "expose" something that is supposed to exist in the class, but can be reflected in the interface (like your example of event dispatcher). You can create your own "dispatchEvent" in the interface, which calls the real dispatchEvent in its implementation. It's probably a bad idea, though, as he could get out to fast enough hand you need to do this a lot. Only do that if you really need multiple inheritance, or maybe if you're hacking something together.

    Long story short, you can stick with what you have and use the base class as you would for the interface

  • 1045 Questions AS3 interface

    Hello

    I recently decided to take a look at AS3, and I was trying to see what kind of changes that I had to do with my code to make it compatible AS3. I made the changes to import flash.display.MovieClip class. As I crossed this circular pattern (compilation, flash tells me what is the problem, I fix it...) has an area has me confused.

    I get the following error: "1045: Interface newI was not found."

    What I am doing wrong? Interfaces are allowed with AS3 code?

    Thank you

    Kelly


    Ahhh ha! Man, I hate the little things! Elizabeth, thank you for your help. I changed the interface to include the package wrapper, but I also discovered that it was because I did not declare something to be public (class decloration)

    Thanks again,

    Kelly

  • How to interface a simple way using LabVIEW 2009 simulink model and SIT?

    Hello

    I finally found a way to use a template simulink with LabVIEW and the Toolbox to SIT, but I'm not satisfied.

    If you have any suggestions, the link of resource that I missed, please do not hesitate to answer

    Note that I do not know much about simulink, so that is my question seems stupid, let me know what

    Software configuration

    OS: Windows (not an RT target)

    LabVIEW 2009

    SIT 2009

    question 1: interfacing the model DLL (mapping considerations) with a driver VI

    We have created a model of DLL by using the 'Workshop in real time' tab in simulink.

    In LabVIEW, launch us the tool 'SIT connection manager' and try to use the DLL with a driver VI by mapping the e/s model for screw/lights orders.

    The fact is that I fail to connect to my controls/indicators VI/o model because they do not appear in the mapping dialog box.

    The simulink single objects that I managed to map are "constant" and "test points" while I need to edit the template simulink itself (example below)

    Are in e/s model, not considered as part of the parameters of the model? (this could make sense because the mapping says in fact that it operates on "model parameters")

    Is it possible to link the IO model VI commands/lights?

    Note:

    -the "configure HW i/o mapping" dialog box allows me to map model e/s with e/s HW...

    -The examples also use these "constant" and "test points".

    2nd question: use of direct screw SIT

    I tried to use the DLL directly with the screws SIT (code example below)

    This kind of code works well on another project (target of 8.0/RT LV) but not on the current project (LV 2009/Windows)

    The second stage of the model never ends:

    -0-index of the loop works as expected (model doing its job).

    -index of the loop 1 starts normally, but execution is stuck in the 'SIT scheduler.vi.

    Then I have no choice that to kill LabVIEW ("Reset screws" windows appear if I try to stop/close them).

    Is there a reason that I do not see what explains this behavior?

    Thanks for reading.

    Any help appreciated.

    Kind regards

    Hello

    I spent some time analyzing the VI driver as you suggested.

    Here are my findings.

    Question 1: the SIT connection manager does not pass to the model SW controls/indicators. Only, it allows the user map HW AIs/AOs.

    The only solution I found (to have a SW - for example a shared variable - object that is mapped to an input/output model) is to customize the VI driver that is scripted by the SIT Connection Manager ("_Baserate Loop.vi" in the flat sequence structure named "read code")

    Question 2: after spending some time in the VI driver, it seems that the VI to call right is not 'SIT scheduler.vi' but 'If SIT take model no time' (which uses the other as a Subvi)

    My conclusions are correct? If I use the API in the wrong way, please let me know.

    Kind regards

  • Void interface creative cloud (mac osx 10.10.3)

    So I had a problem with my computer and I had to reinstall the operating system and restore my files from an external drive.

    Everything was working fine until today when I tried to open illustrator, its closure as open after 1 min and it wouldn't let do me anything.

    I tried to open the creative cloud and nothing would happen.

    So, I uninstalled all adobe with appzapper applications and also removed the hidden files.

    Re-installed cloud creative and all that I can see is a totally blank, different questions blank interface interface:

    Screen Shot 2015-04-25 at 14.29.51.png

    I would like to ask your help to fix this error,

    feel free to leave a comment you think relevant, or any other detail, can I have forgotten to mention the request

    Thank you very much.

    Once I enabled the root user, I was able to install everything smoothly, I guess that when I migrated the definition files has not been copied, problem solved.

    If someone else finds this thread and has the same mistake just follow this guide: activation and using the user 'root' on OS X - Apple support

    Restart your mac and reinstall the creative cloud

    Thank you

  • An inconsistency has been detected in your Interface.

    Hello

    I have some interfaces that extracts an Oracle system to a staging of Oracle database (and ultimately to Essbase). I use the LKM SQL for SQL.

    The question:
    The interface throws the following exception when opened after changing the context:
    Inconsistency detected
    An inconsistency has been detected in your Interface.  This is probably due to changes in your topology. Please re - save your interface.

    In addition, the LKM becomes LKM Oracle for Oracle (DBLINK).

    Is there something I am doing wrong?

    See you soon

    Probably you created the interface to record and then went to the topology change the context... Besides ODI give this warning. You must open the interface once more and to re-record. LKM Oracle to oracle (DBLINK) is the default value KM for this pair of technology... That is why it is back to the default KM. You can change it to your favorite KM.

    Thank you
    Fati

  • What is the best, fastest way to learn DW?

    I have a set of tutorials of CD by the gurus of HowTo.

    These seem to be my choice:

    (1) start with the first CD and painstakingly take notes, laboriously through each CD, until I reach the end of this last.

    Then, I rely on my notes while doing a project, that are likely much more easy and efficient to use, as I, myself the author of their

    (2) learn the basics only at the beginning, (which I think I...), then, when I get to a sticking point, count on the other (or both) you people on this site.

    site HowTo gurus, searching for an answer.

    I can:

    1) set up the root folder on my desktop.

    (2) create a new page, or select a model (which is probably how I'll start).

    (3) insert images, text.

    (4) create links, either locally or remotely.

    (5) create styles

    (6) Insert Flash movies in my site.

    (7) if I followed as well as the editing interface, providing information obtained from my ISP for the basic and Advanced tab, I think I can even publish and upload my site.

    However,.

    (1) I need a good image editor.  I have Freehand and Fireworks (MX2004).

    a. one of these would do?  Which would be best to create static images?

    b. really, what is the differenc between Freehand and Fireworks?

    Forgive my long entry, but I really need this project moving along.

    Thanks for your help.

    A raster image is not inferior to a vector image.  The difference is that vector images are made by mathematical formulas and curves are curves while the rasterized images are in square pixels.  The reason that there are vector images is for elements such as a logo that will be printed on anything from a Web site to a sheet of paper to a billboard.  Think of a vector image as an original, which can be transformed into whatever size you want.  But when you decide the size, you cut a raster image for your project.  Raster images are smaller and vector formats are not read by browsers are the 2 main reasons why they are not used.

    And just to answer a question early possible, vector images can easily turn into raster images.  But the opposite is not an easy process.  And the only effective way to accomplish such a feat is to use the function trace to Adobe Illustrator CS3 or later.

  • Workstation HP Z240 Tower: can I install Windows 7 from scratch?

    Greetings!

    The operating system on my computer is actually win 10 Pro demoted to Win 7 Pro. I want to know if I can install from scratch Windows 7 in my computer using the Windows 7 disc with the computer.

    I was told, the operating system is Windows 10 but it uses an interface of Windows 7. I don't understand the need for this complication. If you can just install Windows 7, so why use an interface? Maybe this computer only works with Windows 10?

    What are you trying to do, as you say that you are already using Windows 7?

    I do not understand your question about "interface."

    The GUI (graphical user Interface) for Windows 10 incorporates most of the features of the GUI for Windows 7 and also of the GUI Windows 8/8.1.

    See: http://www8.hp.com/ca/en/products/workstations/product-detail.html?oid=8354563#! = form tab

    Your computer was preinstalled with:

    Windows 7 Professional 64 (available through 10 Pro 64 Windows downgrade rights)

    and also comes with a license and support for Windows 10 Pro software.

    My recommendation: given that Microsoft will stop supporting Windows 7 in January 2020 - a short period of absence - install Windows 10 to get security-updates for your computer now and after January 2020.

    Suggestion: if you have a "spare" disk drive, disconnect your current hard drive, connect the 'spare' and try to use this support for Windows 7 to install Windows.  That should answer your question about "can I install...". ».

  • Compact rio

    Hello. I am a new user of Labview and I have a question for interfacing with FPGA. I have a 2 and a compactrio or 9237 which has a couple of pressure sensors connected to it. At the beginning I wanted to just make sure that my sensors work well so I tried to take their readings and comparing it with the calibration data. The problem is reading that I take does not change to alll according to the attached chart. Also, I have attached a few pictures of my program. I would appreciate if someone tell me what I'm doing wrong according to the attachments.

    Thank you.

    The way you wrote the code won't give you what you are looking for.

    • You run the FPGA code without delay, which means the FPGA with a frequency of 40 MHz clock runs the code much faster that your pressure sensor starting to respond.
    • You run the code just to acquire 20K samples that can be useful
    • Try running the code at all times with a delay of 100 micro seconds (10 kHz) and just use Code FPGA controls and indicators to read data in the RT/HOST.

Maybe you are looking for