NI-xNET CAN interface Queued/Sin​gle Point/Stre​am

Hi guys, I want to write a known frame on the Bus 1 time an directly after want to read a frame with a known Identifier. But only that frame, so no other received frames in that time.
What is the best way or only way?

You should post your question to this board.

Similar Messages

  • NI-xNET CAN interface Queued/Single Point/Stream

    Hi
    guys, I want to write a known frame on the Bus 1 time an directly after
    want to read a frame with a known Identifier. But only that frame, so
    no other received frames in that time.
    What is the best way or only way?
    Solved!
    Go to Solution.

    Example: Single Point In Session with Termination Set ON
    Attachments:
    CAN Signal Input Single Point with Termination.vi ‏93 KB

  • XNET CAN frame queue overrun kills Read VI

    Hello, I am trying to read CAN frames via XNET. My problem seems to be connected to the queue of my Input session: If the queue gets bombed with random CAN messages from somewhere, the session property "Number of Values Pending" increases rapidly. That's ok, because my program calls XNET Flush before it starts using the bus itself. Otherwise my program would read the old queue content first and the expected reply frames later. This behaviour is ok and expected.
    But after I bombed the bus a little bit more so that the queue gets filled to maximal queue size (seems to be predefined as 1000), the Input session read operation will always timeout (tested with 1 second and more) and return an empty frame array. In this case the error wire is s to -1074384886 (timeout). The session always reports tranceiver state "Normal". Even the XNET Flush operation does not help, although it seems to empty the queue properly.
    summary: hitting the queue size limit with incoming CAN frames results in dead read operations.

    Hello pgraebel,
    In the screenshot you posted, NI-XNET will wait 0.1seconds for 1 frame to be present in the queue.  If there is less than 1 fram available, the VI will timeout.  That being said, I would guess that the timeout happens if you ask for many frames (close to the buffer limit), but the timeout is too small.  If you are trying to read 1000 frames, you may need to wait longer than 1 second for the frames to go on the bus.  That really depends on your bus timing/frame timing/etc.
    I made a small example to show you a little more how the buffers can be used in XNET.  You can set the buffer size and look at the unused spaces in both the read and write queue.  Let me know if it helps.
    O. Proulx
    National Instruments
    www.ni.com/support
    Attachments:
    CAN Frame Input Queued.vi ‏37 KB

  • I am using XNET CAN on a PXI system. When I modify the can database I get the error "the interface has already been opened.."

    I have tried both building the XNET session from project explorer and by building a signal list in the VI.
    Any suggestions? Thanks in Advance.

    Thanks for the reply. I don't think I have any interface open. But to be sure, I rebooted everything - same result.
    Is there some step in the project config that I am failing to do? In the PXI systems I had before XNET, I had to setup some CAN configuration stuff in MAX to get it to work, but I don't see that option anymore with XNET.... 
    I have been sucessful in running XNET CAN VIs reading and writing the data from my database, but I stumble every time I add a signal or rename the database. 
    I made a simplified VI to illustrate, using a previously working database I now get the empty name message.(screen capture attached)
    This is connected to a working CAN link, and I can see these signals in MAX properly.  
    Thanks in advance for your assistance!
    Attachments:
    vi_issue1.jpg ‏136 KB

  • Can I generate sine and square waves with NI PCI-MIO-16XE-50 card??

    Can I generate sine and square waves with NI PCI-MIO-16XE-50 card??
    How Do I generate those signals?

    Hello;
    You certainly can do that. The way to go about that is to use one of the Analog Output channels your board have available.
    If you are using Labview to program the board, you can find good examples at Search Examples->I/O Interfaces->Data Acquisition->Analog Output->Multiple Point (buffered) Analog Output.
    If you are using other Software language to program the board, you can fing examples at C:\Program Files\National Instruments\NI-DAQ\example\VisualC\AO.
    Hope this helps.
    Filipe

  • Error -1074384751 in XNET Create Session (Signal Output Single-point)

    Hello all,
    I have a selected number of signals from a database, and I am trying to create XNET Signal Output session from these signals of database.
    However, I get this error when I run this on my RT pc:
    Error -1074384751 occurred at XNET Create Session (Signal Output Single-point).vi:4
    Possible reason(s):
    NI-XNET:  (Hex 0xBFF63091) For Signal Output sessions, the multiplexer signals used in the session must be specified explicitly in the signal list.
    Can anyone please explain why this error can be coming?
    Thanks
    FraggerFox
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"

    It seems the Diag frames must be sent from a Frame Output Queued session. Therefore i replaced the function "XNET Create Session (Frame Output Single-Point)" with "XNET Create Session (Frame Output Queued)" and it seems to work...

  • Can FTP-access to field point log file interrupt the running program?

    Can FTP-access to field point log file interrupt the running program?
    We have a problem where our factory process control program on a Field Pointer suddenly stops the process. We are running the development system on a PC, wich deploys the program on the Field point, with user interface on the PC. Quite often the process stops for no apparent reason. I'm not sure right now if the control program on the Field Point is still running or if it stops. We use FTP from a distant PC (over VPN) directly to the Field Point to check if the process is running, by looking for date and size of log files produced during running process. I've never opened och copied any log file during process run, because this I'm sure this would cause problems for new log entries to be written. But can the mere looking at the log folder via XP-pros ftp-functionality cause the Field Point to have problems writing data to a log file?
    I'm not sure how windows XP pro handles "my network places" when it comes to FTP, it look that it keeps some kind of local copy of the folders, or at least the files opened.
    Next version of the program will have only basic functionality on the Field Point, leaving logging etc. to another program on the PC, but right now we are stuck with this system.
    Ola A

    It turned out that the problem lies in the harware of the production machine, it was not a labiew-program problem at all!
    Ola

  • How to use NI CAN feature for extracting DBC information without a CAN Interface?

    Hi,
    I'm looking for some tricks in order to extract DBC Information using the NI CAN without a CAN interface...
    Basically I have some DBC files and I would to analyze them to get hierarchy Messages and Channels (and their related information, offset, scale, etc.).
    http://www.ni.com/white-paper/4294/en/
    The function CAN Get Names is usefull and allow me depending on the mode to get a list of the Channels and Messages described in the DBC file. However, I'm encountering one major issue and none of the least, I cannot use the function the CAN Get Property... As it required a connector based on Task that I cannot provide since I dont have any real and physical CAN interface, for now. Therefore I cannot have any information about the channels neither about the messages...
    Does anybody can give me a hand to fix that matter?
    Solved!
    Go to Solution.

    Nelval wrote:
    It seems that no matter the virtual port I am using, it does not work. Could you have a look at my sample.vi, I know it's poorly wired, especially since I'm more in .NET things than NI from my occupation ^^'. I also provided a dummy DBC file to simulate a very basic input.
    And by the way is there any way then to get the Byte Array / Bit Array corresponding to a certain message (and how to set the signal values required to get the message)?
    Your code isn't that bad, relativly easy to follow.  In any case the problem had nothing to do with the CAN port being used.  If you would probe the error wires around you would see that coming out of the CAN Init Start stated that the channel name didn't exist.  Looking at how you had it wired you took the messages (or frames) and put them into the channels terminal, when I assume you wanted the channels.  Then looking at your tree you were again trying to get the ID of a channel, but giving it the message name.  I also added reading the Start Bit, Number of Bits, and Byte Order for all the channels read.
    If you were to do this with XNET there would be completelly different functions, but the same operations can be done.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    DBC Extraction Hooovahh Edit.vi ‏29 KB

  • How do I set an x-net can interface to listen-onl​y in Veristand?

    How can I set an X-NET CAN interface to listen-only mode, i.e. to not send any acknowledgements, in Veristand 2012?
    I can't find "Listen Only" as an option under Targets->..->Hardware->NI-XNET->CAN->CAN1->CAN Port Settings.
    Thanks,
    Ken

    Hi Ken,
    I did some checking with some of my colleagues to make sure, but it sounds like you will have to create a custom device that does not send ACK messages on the bus.  The X-Net Bus Monitor does in fact send out ACK messages when it is monitoring the bus, so the only way to stop this from happening is to create your own method.  The documentation below outlines the process for creating a custom device, but we do not have guidelines for performing the specific task you are trying to accomplish.  Additionally, you could check around on our forums to see if anyone has implemented something similar.  
    Building Custom Devices for NI VeriStand
    NI VeriStand Custom Device Developer’s Guide
    | Zach J. | Applications Engineer | National Instruments |

  • Labview misses a read when using Ni USB 8473 can interface

    I was wondering if anybody here has had experience with this problem... I already talked to a Labview tech but i have not received an answer yet...
    This is my problem..
    I have a program that  when a button is pressed, it initializes a can interface to CAN0 for example, then it writes... then it waits about 100mills and then it reads... My computer is connected to a simulator through the USB 8473 interface (I have the problem when I connect it to the hardware I am going to use), and everytime I write, this simulator sends a response... The problem is that sometimes I don't see a response... I have made sure that the simulator responds so I know it is responding... I have changed the waiting time before the read from 1 mills to 100 mills to 1 second, and still with the same result... 
    The way I have fixed this problem is by reading multiple times (3 times)... so every time I send a request, i wait 100 mills... then I read once, wait 25 mills, then read again, wait, then read again....
    So, I wanted to know if anybody here has had to do this in order to get around this problem...???
    The reason why I was asking this is because I also have another application that has to monitor my hardware by sending requests every 100 milliseconds... so I have two loops, once that writes requests every 100 mills... and another that reads the responses every 20 mills... but sometimes it looks like eventhough i read this many times, I still miss some frames, which are caught later but still not good enough...
    I have posted a different thread about the above problem...
    If you have questions just ask please...
    Thanks

    Yes, by Labview tech i meant NI Support... sorry about that...
    I am still waiting for them on this subject...
    I'll attach a simplified version of my code (the only difference between this code and the original is that i parse all the data that i get...)
    I am attaching these if a couple replys... 
    Run the receive and respond (simulator) then run the CAN_PROBLEM vi... click on the OK button to write then read... you can tell it missed the message when the Frames to Read field is 0...
     how are you sure that you device is sending a response?
    Very sure... 100%... the original simulator lets me know when it sends the response...
    Can you run bus monitor on another port, ie another USB-CAN device?
    I did that, and the other USB-CAN gets it... the program I am running on the other computer is called CANyliser... I think that program waits until there is something in the queue (which I am not doing with mine)... I am just reading after I have wrote teh message (reading after about 100 mills I wrote)... So I am assuming that's plenty of time... i have increased this waiting time to 1 sec and still get the same behaviour...
    Attachments:
    CAN_PROBLEM.vi ‏16 KB
    ReceiveAndRespond.vi ‏17 KB
    CAN INIT.vi ‏23 KB

  • Can I display a Power Point presentation in full screen on an HP Pavilion g

    I have a working Power Point presentation with an imbedded video, whic means I can not use Power Point "Show". Can I display a Power Point presentation in full screen on an HP Pavilion g? If so, how do I do it?

    Hi,
    On any machine, please try:
      Click the "Options" tab on the PowerPoint toolbar,
      then select "Play Full Screen" from the "Movie Options" group.
      The "Options" tab is located directly underneath the "Movie Tools" button.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How can I use existing anchor point as a new one?

    Can anyone help?
    I'm tracing over a drawing, and I'm trying to use an existing anchor point as an anchor point for another curve. So, from c, I want to click and drag on anchor point b to make a new curve. If I click where b is, then I just delete b. Can I make b my initial anchor point so that I can use it to complete my tooth? When I get to the next teeth Ill have to do the same thing. Has anyone any ideas?

    > Each tooth should be a closed path.
    Why?
    > If I click where b is, then I just delete b.
    Ugh, turn off Auto Add/Delete Anchor Point and watch your rage levels instantly decrease. You can then put your final point anywhere you want, including smack dab on top of B.

  • I have always paid for apps with a credit card and now need to use an app store card but I can't get past the point where it keeps wanting my credit card updated.  And can't used the app card number.  Any advice???

    I have always paid for apps with a credit card and now need to use an app store card but I can't get past the point where it keeps wanting my credit card updated.  And can't used the app card number.  Any advice???

    I do NOT like using my credit card if I don't have to, and I went out of my way to go buy an Apple gift card, which I successfully redeemed into my Apple account. However, when I use the Apple "Cards" app, it will not let me use anything other than my credit card. I tried purchasing a card, hopefulling it would come out of my Apple store balance, but no such luck -- it came out of my credit card.
    Apple is becoming more like Microsoft every day.

  • How can I periodicaly get data from a CAN interface that works in "Transmit by response" mode??

    Hello Again!
    I am a very new user of LabView, and last week I got the order to implement a Comunication with  a CAN interface.
    I am trying to get Information from a CAN interface, that works as a "slave", as it is said in the very short handbook. This means it only responds, when it is asked to.
    As i want to get the 20 different datas periodicaly it would be fine to do this in a kind of loop. This means:
    -tell the interface to send data1
    -read data 1
    -tell the interface to send  data 2
    Are there any examples or ideas, how to create similar loops? 
    As I am absolutely no expert in computing, it would be nice if you answer with very little technical terms...
    Thanks RT

    Hi RT,
    Try the attached example, which writes a remote frame to your slave and reads the response. It is doing this 20 times in a for loop and a specified timing.
    Hope that helps.
    DirkW
    Attachments:
    CAN Receive Periodic using Remote.vi ‏97 KB

  • I can no longer see my pointer and pull down windows pop up on everything!!! HELP

    I can no longer see my pointer and when I go to say "applications" a pop up or pull down menu open up...a tiny noe with words. Before a window with icons would open up and I liked that. Its also happening with the internet. instead of having apointer I see nothing and a pull down menu appears. I can't shoose anything because there is no pointer. What setting is this and how do I change it back? I want a normal pointer where I click on link and they open new links then I can type where I click too.

    dunno....could be a gamble...you might have Simple Finder turned on, or accessibilty (for those with vision problems, etc). I think pressing Command+Shift+F8 (that's fn+f8 key) ought to turn it off. If you're really stuck
    command+Shift+3 or command+Shift+4 will let you take a screenshot of your desktop which you might be able to post here. Also, check your views setting (Command+J key) which will let you display icons and stuff)
    maybe you hit that by accident
    good luck
    John B

Maybe you are looking for

  • HT201263 My ipod touch is locked in recovery mode and I need help

    The ipod is locked in recovery mode. Everytime I plug it into the computer iTunes pops up and says it has detected ipod in recovery mode and it must be restored before using it with itunes. After I go throught he extracting software and then it locks

  • Flash problems in IE

    So i have developed a flash website works great in firefox and safari but doesnt work in internet explorer just wondering where im messing up. ive embeded the .swf file into an .html file using this code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 S

  • Not working my facetime?

    my facetime is not working

  • About  lunix and tomcat  identity of the conversion

    我在大型机 lunix系统下 开了个有一定权限的账户 在账户下 有 tomcat 6.0 并且部署了WEB项目 主要是功能是 通过网络可以直接投递任务到大型机 并且执行返回任务结果。 但是当注册普通用户投递的任务 在lunix下进程里面都是以我的 USER 来跑的(这个USER后 命令是java ), 而且查看任务情况 qstat 也是用我的用户名 不知道tomcat或是jboss能不能 转换下权限 把名字改成 每次登陆投递任务的人的名字 I lunix mainframe systems to

  • Block users from Home Hub 3 wi-fi without them kno...

    Is there any way on the homehub 3 to block users on the wifi without it giving them a notification? When you use the parental lock down between certain times when the user opens a web page it says they've been locked down by the hub but I don't want