Using CAN hardware with 2 VI

I want to use my CAN hardware with 2 VI. Each VI will send and recieve CAN frames to CAN network. I must run once Cconfig and Copen VIs and  use Copen outs (ObjHandle out and Error out) in this 2 VI. How is Data communication among 2 VI? 

Well, only one reference to the device can be opened at once, so each VI will need to use this reference.  Calling read/write from 2 different VIs using the same handle/reference may not be very good. 
I would suggest building a lower layer VI that handles the CAN communication.  For example, if you read temperature using ID 1 for uC 1 and ID 2 for uC2, your lower level VI can handle the CAN communication and just set 2 global variables temp1 and temp2.  A higher level VI could just read the global variable temp1 and ignore temp2 (and also ignore CAN communication).  So, a lower level CAN communication VI that sets and read global variables.  Higher level VIs (controlled by users) that set and read globals.
You could also purchase another USB-CAN and connect each device to a single micro-controller...but that's more expensive and sort of defeats the purpose of having a bus...
O. Proulx
National Instruments
www.ni.com/support

Similar Messages

  • Using legacy hardware with my Intel iMac -- HP Scanjet 6100c

    I've found myself the owner of a gently used HP Scanjet 6100c. This is a 7-8 year old scanner, but it was a top-flight model back then. I suspect it's still as good or better than many consumer-grade scanners I might buy new. I'm looking forward to setting it up.
    You can probably guess what comes next: it's got a SCSI interface. There's a 25-pin connector and a big, fat SCSI-2 connector. There's also a round, nickel-sized port labeled "ADF/ACC." No clue what that does.
    So, the question...is there a way for me to hook this beastie up to my iMac? Or will I be left with no option but connecting it to my lonely Ubuntu box in the basement?

    Without a SCSI card there's really no way to connect the scanner to the Mac. It would be easier and cheaper to get a new USB-based scanner. You would also need software to use the scanner that's compatible with Intel Macs. This could also prove a problem given the scanner's age.
    BTW, you'll need driver software for the Linux machine as well in order to use the scanner.

  • Using Aardvark Hardware with Logic Pro 7

    Hello, I was wondering if anyone still uses their Aardvark hardware interfaces with Logic. I used to for OS9 but when I switched to OSX I found that Aardvark had disappeared from the game. I went online witht the intentions of downloading their Driver (for the USB3 to be particular) when I had found that they went out of business. I do know that they had one for OSX but I of course never downloaded it because I didn't yet need it. I sure could use that driver! Anyway, how is everyone's hardware holding up with the latest version of Logic?

    I have been looking evvverrywhere for the driver. Every internet search engine turned out nothing useful. You would be my hero if you could possibly email me the driver (the driver that was offered for free from the aardvark website before the company vanished). =)
    This hiccup has hindered my audio recording with Logic! Thanks!

  • How can I use the hardware compare feature of the 6551 card to trigger scripts

    I can dynamically and seamlessly generate different waveforms by triggering different scriptTriggers that drive one or more of the 4 PFI lines. However, I need to evaluate a channel at a specific location or locations set by a script marker in real-time and generate a different waveform stored in on-board memory based on the result of the evaluation. I have attempted to use the hardware compare feature without any success. I am trying to dynamically respond to an I2C device based on the ACKs or NACK response of the device under test. Can the 6551 card accomplish this? Has anyone successfully tested an I2C or SMBus communication stream with 6551 card?

    Hello,
    I can understand why hardware compare did not work out for you application.  Hardware compare uses a signal that was generated to make a digital pattern and then waits a few clock cycles before acquiring the signal that needs to be compared to the digital pattern. 
    I would look into using a script trigger to evaluate the channel value, where the script structure controls when it is evaluated.  Please note that script triggers will need to be cleared after they are detected for reasserting.  Some script syntax actually clear the script trigger and then use a wait until script trigger structure.  Please refer to the HS DIO Help for documentation on Common Scripting Use Cases. 
    Please provide us with further details about your application.  The more information, the better!  I was not too clear on what you where wanting to evaluate and where is it coming from. 
    I would also like to mention that National Instruments has a NI USB 8451 which is capable of I2C communication.
    NI USB 8451
    Samantha
    National Instruments
    Applications Engineer

  • How can I use the NI PXI-6508 with Lab View 7? what are the first steps to get started??How can I use the channels with lab view 7????

    I have a 8 slot PXI system with 2 NI PXI 6508 and 1 DMM 4070 in it. I want to get started with programming the digital I/O cards (6508)! How can I use this cards with LabView 7?what is the best way to get started, or where can I get examples showing how to use the several channels?
    Thanks!
    Philipp

    Philipp,
    The best way to get started is to decide if you want to use traditional NI-DAQ or NI-DAQmx. Recently we released NI-DAQ 7.1 which provides NI-DAQmx support for the PXI-6508. In my opinion, NI-DAQmx is more efficient and much easier to use.
    To get started with examples, simply launch LabVIEW and go to Help>>Find Examples. Then expand Hardware Input and Output>>DAQmx and select the appropriate digital group for your application. This should help get you started.
    Please repost if you need addition assistance. Good luck with your application!

  • Can we demodulate the signal recieved at DAQ card without using any hardware interface(by only using labview)?

    Hi all,
    Can we demodulate the signal recieved at DAQ card without using any hardware interface(by only using labview)? if yes then how? please give brief idea.
    Regards,
    Amit

    There is probably a way to do it, but it it may be easier to use an X-series board for the job.   They support a new counter capability for count reset on a digital edge without needing to be configured in encoder position mode.  I am not sure exactly how that feature's been implemented however, so maybe it won't make things easier after all.
    The plan based on the hoped-for behavior: 
    1. Configure an X-series counter for pulse generation based on "ticks" of your clock channel.
    2. Set both initial delay and low time to the critical # of ticks.
    3. Configure for count reset on a digital edge (if possible in pulse generation mode)
    4. Configure the count reset value to be the critical # (or possibly 1 less, if possible in pulse generation mode)
    5. If you want the output to remain high indefinitely, configure the counter task to use its own output as a
    pause trigger, and pause while high.
    The way pulse generation works is to preload a # of "low time" ticks into the count register.  Then every source edge will decrement the count.  When the count reaches terminal count (0), the counter's output is toggled (or can be configured to pulse).  The register is then loaded with the # of "high time" ticks and the process continues.
    You would be perpetually interrupting the count-down process as long as you got your triggers in time.  The count would keep getting reset to the # of low counts, keep decrementing toward 0 without reaching it, and so on.  If ever you did reach 0, the output state would toggle high, then the high state would prevent subsequent clock signals from decrementing the count.
    You can conceivably do a similar thing with a 6601, but I'm pretty sure you'd need 2 counters working together to get it working.
    -Kevin P

  • Can vector CANoe software can be used to integrate with NI XNET?

    Can vector CANoe software can be used to integrate with NI XNET hardware?, Is there drivers available for NI XNET PXI card to communicate and talk to Vector CANoe software?. Please help. This would help us reduce creating the Database using LAbVIEW.
    _Ventakesswaran

    CANoe is essentially made to integrate Vector hardware, so you can't directly use NI-XNET interfaces into your CANoe system. There are still a few ways to communication between LabVIEW (or CVI) and CANoe if you need to share data. It includes :
    - Using the ActiveX server of CANoe in LabVIEW. It allows LabVIEW to automate most tasks in CANoe and notably write/read data.
    - Writing a server/client code based on TCP or UDP to send and receive data. In LabVIEW, it just uses the primitives in the Data Communication palette. In CANoe, the communication can be handled by some code written in a CAPL node.
    The first way is slower, but does not require to write code in CANoe. There are also a few examples going around the web :
    - https://decibel.ni.com/content/docs/DOC-16844
    Regards
    --Eric
    Eric M. - Application Engineering Specialist
    Certified LabVIEW Architect
    Certified LabWindows™/CVI Developer

  • Can i use old machines with PXE to boot VDI Operating Systems using Windows Server?

    Hi,
    I would like to know if it is posible to create an architecture with Windows Server 2012 R2 configuring VDIs and use these VDIs with my old hardware. I would like to boot my old machines using PXE directly from the VDI images so i dont need to install any
    operatig system in my old hardware.
    The situtation i have,  is a computer room we use for trainings. I have all these machines with Windows XP and 2Gb RAM and i dont want to replace all machines at the moment. I was thinking to use VDIs to solve this situation.
    The reason for booting up using PXE is that i dont want users to start up computers in Windows XP and then run RDP to start up the VDI. I would like a solution where users should not be able to do anything and machines boot up directly to
    the VDI environment. 
    I would appreciate any suggestions to my requirements based in your experience.
    Many thanks and kind regards
    Julian

    Hi Julianesco,
    I have not heard of people PXE booting to a VDI deployment, normally something like a thin terminal or wise terminal is used to boot to a basic RDP connector.
    You can use Windows Thin PC
    http://www.microsoft.com/en-gb/windows/enterprise/products-and-technologies/virtualization/thinpc.aspx
    or I have seen a few options like this as a cut down client to make use of old hardware.
    http://ryanmangansitblog.com/2013/03/18/creating-a-windows-thinpc-thin-client/
    Kind Regards
    Michael Coutanche
    Blog:   
    Twitter:   LinkedIn:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Can I use a DAQ with my CCD?

    I have a multifunction DAQ card and LabView 6.1. I would like to capture images using a CCD camera and am hoping that all I need is software, is this available? Do I need a new card and if so which one?

    If your camera is analog, you can use you multifunction DAQ card to read in the analog signal. You will have to monitor the signal for the H-Sync and the V-Sync pulses and then convert the meaningful analog picture signal into digital values. For more information on the analog video signal please reference the following document:
    Anatomy of a Video Signal
    If the camera is digital, you will not be able to read in the signal with the multifunction DAQ board. The multifunction DAQ boards can perform static digital input and output (software timed). For reading in a digital signal you will need a hardware timed digital acquistion. Our
    DAQ boards in the 653x family can be used for hardware timed digital input and output. In this situation, you would use the pixel clock of the camera to time the acqusition of the 653x device.
    If the camera is analog you should consider purchasing one of National Instruments framegrabber boards for you acquistion. These boards are designed specifically for this purpose. (NI 1409 or NI 1411)
    If the camera is digital, I would suggest visiting our online camera advisor to see if your camera is compatible with our digital framegrabbers (NI 1422, NI 1424, NI 1428)
    Industrial Camera Advisor
    Will Denman
    Application Engineering
    National Instruments

  • [pavilion g7-2116sr] How can I use amd driver with only integrated graphic?

     Radeon hd 7670m is disabled coz it's broken. Amd driver don't work. Windows use vgasave driver. How can i use amd driver with radeon hd7660g?
    P.S.  Sorry, my english isn't good(

    Hi @Leys 
    I see you are stilll unsuccessful installing the drivers as you get the blue screen.
    Here is a link to Computer Does not Start (Windows 7, Vista, XP) that may help.
    Here is a link to Testing for Hardware Failures (Windows 7, Vista) to determine if your graphic card is defective.
    If the graphic card fails, here is a link to the HP Pavilion g7 Notebook PC Maintenance and Service Guide. Please note page 9 or chapter 1 page 9 for a list of recommended replacement graphic cards.
    If the graphic card passes you may wish to consider doing a restore back to a known good time or a full recovery back to factory.
    Using Microsoft System Restore (Windows 7)
    Performing an HP system recovery (Windows 7)
    During the recovery process there is an option to backup your personal files to prevent data loss.  If you have not done one yet I suggest you do one now.
    Restoring Files that were Backed Up Using HP Recovery Manager (Windows 7)
    At any time you may wish to contact HP support for assistance.
    Please call our technical support at 800 474 6836. If you live outside the US/Canada Region, please click the link below to get a support number for your region.
    World Wide Phone Support
    Good Luck!
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    No, nothing will prevent the computer from going to sleep when you close its display except third-party hacks that are designed to do exactly that. I strongly advise against using any of those, as they may interfere with successful entry into clamshell mode (and they carry other downside risks as well). Just wait until the computer is asleep (with its sleep light pulsing), then press any key on the keyboard. It sounds as though your setup is working as it's designed to do.

  • I have a iphone 5 and I can login with my apple id to purchase music. However, when I try to login into icloud using the very same username and password that I use in the apple store it does not work to enter icloud, so what what gives???

    I have a iphone 5 and I can login with my apple id to purchase music. However, when I try to login into icloud using the very same username and password that I use in the apple store it does not work to enter icloud, so what what gives???

    I could do that, however when I select the icloud button (or whatever the heck it is) I am asked to enter the apple id and password. So if you are suppose to create another one for icloud you'd think it would give you the option at this point which would be logical.

  • How can I restore my data from iCal? I didn't make any backup, but I use  time machine with an external HD. I deleted iCal when I deleted my gmail account. I have tried to restore, but I can only restore the iCal software and not the data.

    How can I restore my data from iCal? I didn't make any backup, but I use  time machine with an external HD. I deleted iCal when I deleted my gmail account. I have tried to restore, but I can only restore the iCal software and not the data.

    So what is your question?
    If you forgot your encryption password:
    Warning: Make sure it's a password you will remember or write it down for safekeeping. If you encrypt an iPhone backup in iTunes and forget your password, you can't restore from backup and your data will be unrecoverable.
    If you can't remember the password and want to start again, you must perform a full software restore and chooseset up as a new device when iTunes prompts you to select the backup from which to restore.
    The above comes from here:
    http://support.apple.com/kb/HT4946

  • How can i copy files from one external hard disk to another using macbook pro with retina display

    How can i copy files from one external hard drive to another using macbook pro with retina display?

    That's odd - if you open Disk Utility (Applications->Utilities) and select the disk(s), how are they formatted? If you're only going to be used with your Mac, they should be formatted as "Mac OS Extended (Journaled)".
    Clinton

Maybe you are looking for

  • Logical database in SAP-ISU system

    Hello, Does any1 knows the LDB available in SAP ISU system. I am searching for LDB (or table join) which containes tables like FKKVKP, EVER, EANL , EVBS & ADRC. Regards, Abhijeet

  • Session management and java Web Service

    Hi , Can I have two web services one based on Session bean and other on Simple java class, packaged into single ear file? Does NetWeaver supports web service session management/tracking? How can I get an handle to HttpRequest in my Web Service? Any h

  • My MacBook Pro Shuts Down 5 Minutes After I Unplug It, Whats WRONG!?!?

    Recently, whenever my Macbook Pro is ever unplugged it shuts down in less than five minutes. It works absolutely fine when the power source is plugged into the wall. Do you think i have a faulty battery? Are there other Possibilities? I have searched

  • Itunes not loading correctly

    Loading the latest version of iTunes has resulted in an absolute disaster. HP Pavillion. Microsoft Windows 7 Home Premium Edition (64-bit), Norton Anti-Virus Since I upgraded to iTunes 11.0.1.12 it has been an unmitigated disaster. I have an iPad, an

  • WSAD 5.1 DB2 Datasource creation help

    I'm new to WSAD 5.1. I'm using DB2 database. I would like to know how to create datasource and use it in my jsp application. Please help me out. Is there any resource is available through which I can go through. Thanks in advance. Regards, Sudheer