Modifying CAN Signal Output Waveform.vi

I have been working with the CAN Signal Output Waveform.vi trying to get data from my analogue input moduel (NI 9205) onto a CAN bus via my NI 9862.
I started off by working with the example VI; CAN Signal Output Waveform.vi (attached at the bottom of this post) and that worked fine, I could clearly see the data coming over the CAN bus into my analysis tool in real-time. To modify the vi I removed the Signal Generation components and added DAQmx Read blocks (again attached at the bottom of this post). When viewing the Waveform Chart window the changes I make to the input is reflected in the Waveform Chart window in real-time; however the data on the CAN bus is delayed by around 1 - 2 seconds. I am using the same XNET database in each setup so that isn't causing the issue.
The NI modules are housed inside a cDAQ-9178.
Thanks.
Richard
Attachments:
CAN Signal Output Waveform._4vi.vi ‏26 KB
2 channel analogue.vi ‏26 KB

Sorry, I meant do you have any other VIs that operate after this VI?
I think you answered my question though, you are just running this VI alone, right? If this is the only subVI that's being run then when it stops, the LabVIEW environment stops as well, which means your DAQmx tasks are no longer running. You need to make an application structure that allows for LabVIEW to continue running after this VI is called. Use this subVI in your initialization step and then have a user interface of some sort that continues operation. You can't just run this subVI and expect all of the DAQmx tasks and operations to continue if LabVIEW isn't running.

Similar Messages

  • Why is it that when I saved the waveform of my acquired signal into a wav file, the output waveform of my saved file turn out to be different from my input signal?

    Hi all,
    I am currently doing a heart sound analyzer project. I acquired signal using NI USB 6008 continuosly. My program is able to saved the acquired signal into a wave file. But when I browse open the saved file, the output waveform did not look the same as the acquired input signal and also the sound of the heartbeat captured cannot be heard from the loud speaker though I have saved the file as a wav file. I am not sure if the method i use to save the acquired data as a wav file is correct.  I have attach the print screen of the differences of the output I have notice and the program I have created. I would be glad if anyone here is able to troubleshoot my program.
    Thanks. 
    Attachments:
    heart sound analyzer.zip ‏257 KB

    Hi Brett Burger,
    Thanks for your reply. For your information, I have set the sampling rate as 10000 as for the sound format, I have set the bits per sample as 16 bit, the rate as 11025 and the sound quality as mono. I tried using your method by changing the sampling rate as 8K but still my program encounter the same problem.
    I wish to also create a button that is able to generate a preformatted report that contains VI documentation, data the VI returns, and report properties, such as the author, company, and number of pages only when I click on the button.  I have created this in my program, but I am not sure why is it not working. Can you help troubleshoot my program. Or do you have any samples to provide me. Hope to hear from you soon.
    Many thanks.
    Regards,
    min
    Attachments:
    Heart Sounds1.vi ‏971 KB

  • How can i save the values of output waveform in array ?

    hi
    how can i save the values of  output waveform in array ?

     how can i save the values of  output waveform in array ?
    the program is attachment bellow
    Attachments:
    closed loop transfer fn+fuzzy.vi ‏28 KB

  • VGA signal output type mDP-VGA adapter

    Howdy.
    Working on a way to plug our new mini (early 09) into a crusty ol' analogue tv, whose best quality input is up to 576p component. Tv manual say to plug component source (either YPbPr, YCbCr or Y B-Y R-Y) into the component input on the tv (Y Pb Pr).
    My understanding of signal types is limited, and I am looking at a VGA to component converter as my first preference option since svideo and composite are so crusty.
    Can anyone be really specific on the exact type of signal output from the miniDP-VGA adapter? As far as I know, most computers output a vga signal referred to as RGB, which SOME tvs can read via component in. Can anyone tell me if this RGB equates to any of the above signals (such that i could simply use a vga-component cable that I already possess), or if i will definitely need to get a converter box? I have plugged my older mac mini into the tv (using dvi-vga adapter supplied and then vga-component cable i purchased form some dodgy online ebayer) and had no luck.
    can anyone tell me the potential ramifications of messing around with this stuff? Can inputting incorrect signals damage any of my hardware?
    does anyone have any brilliant ideas on how to run an early 2009 mac mini into a tv via component? At this stage it is going to cost me around $200 for a decent converter box , and being a younger generation I want a solution ASAP and would prefer not to wait weeks for shipping from the States.
    It seems as though the new minis only do dvi-d, while my older one has dvi-i - this is why the dvi-video adapter is not compatible with the early 09 models. i have spoken to apple tech support several times but it seems as though they are getting their dvi types mixed up and don't understand my predicament fully, as their suggestions are not possible with dvi-d. Is there such a thing as a DVI-d to DVI-I adapter? Would it make any difference?
    Any clarification people have to offer on this one would be greatly appreciated.

    A few comments; first off, you can't damage a TV with wrong signal types, although some old TVs can be damaged from wrong timings. That's going to depend a lot on the TV's age whether it has a more modern, multi-sync type chassis or not.
    The Mini DVI output on the new mini is DVI-I. That is how it is able to support the Mini DVI to VGA Adapter that Apple sells for the new mini. But you are right it no longer supports the Mini DVI to Video Adapter. But that is an issue with drivers and has nothing to do with the mini having a DVI-I output or not. But it is definitely Mini DVI-I.
    So to connect a component converter box, you could use either the Mini DisplayPort or the Mini DVI output of the mini. I would tend to recommend the Mini DVI as being somewhat more standard. However, a Mac really wants to see something called a plug-and-display driver, which is also known as EDID, whenever it is connected to a display. So try and see if you can find a component video converter having a VGA input that has an EDID loaded into it or else the Mac will not be happy and it could all be money down the drain that would have better been spent on a new TV.
    Hopefully you will get some more specific information from someone else. Good luck.

  • 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...

  • Using Multiplexe​d CAN signals with XNET

    Hello all,
    In one of my applications, I am deploying a CAN database file(.dbc) to RT system, and extracting signals through the cluster of .dbc file. Now once I have the list of all signals inside the database file, there would be some signals which would be multiplexed (If imported in MAX, you can see "Mode" for such signals). Now when I try to create a XNET Signal Output Single Point session out of selected signals, I get the following error:
    Error -1074384751 occurred at an unidentified location
    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 help me on how I can overcome this error? I am able to successfully create a session out of a non-multiplexed signal and write it to can bus, but the above problem I am facing is particularly for multiplexed signals.
    Regards,
    FraggerFox!
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"

    Hello all,
    Thank you so much for support as always.
    Yesterday I solved this issue..  Its explained in XNET User Manual..
    Sorry for late reply.
    Munna

  • Signals vs waveforms

    Is there anywhere some information which relates to the advantages and disadvantages of using Signals or Waveforms? Are they essentially the same? Waveforms seem not appropriate for non-uniform X/Y-Data (variable aquisition rate). Does the same hold true for Signals? What is the most multipurpose way to represent non-uniform X/Y-Data? It all seems quite confusing and there seems no place where this is really elaborated.
    Thanks in advance for you help to a newbie!

    As far as my experience goes (I prefere the raw data of arrays, as most data in my apps are of xy-type), ddt is related to Express VIs.
    So when prototyping with Express VIs, the DDT is really nice in terms of programming speed. But once the coding starts, using 'traditional'/'real' VIs all these conversions from/to DDT start polluting the Diagram. A DDT might be of different data types (similar to variant data), and polymorphic VIs (and controls) adapt to these. From that comes the advantage during prototyping, as you still can easily change the actual data type.
    Waveforms as said before contain timing information. They are ok if you're only interested in a signal vs. time data (evenly spaced time!). But when I wanted to do more than just wire them to a graph, things quickly messed up. Such things as Waveform subset never worked the way I expected them to work (mainly a thing with the timestamp and absolute vs. relative), so they wasted more time than donated for the coding.
    One thing thats performed better with Waveforms than arrays is to display ditigtal data, as the nice digital graph won't work with boolean arrays.
    Arrays are the most clear, strict data type of all these. That's why I would do all real coding with these only.
    Short:
    * DDT for prototyping
    * Waveform if signal vs. time is all
    * Arrays for everything
    Holds true for LV 7.1, don't know about the newer versions.
    And also, I guess some fresh trained programmers will outperform me with DDT or waveforms where they are useful.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • How can i add waveform datasaving functions to 2 channels oscillosco​pe demo

    How can I add waveform datasaving options to my .vi for example Oscar Gomez Fuentes 2channel oscilloscope demo, So that i can later on read the data and print graph.
    Mikko

    Look at the example Export Waveforms to Spreadsheet File Example.vi that ships with LabView 6 or 7. For your purposes, look at the first two file operations, Write Waveforms to File.vi and Read Waveform from File.vi. You can wire the output of Read Waveform from File.vi directly to a waveform graph. For your application, you don't actually need to call Export Waveforms to Spreadsheet File.vi (unless you're planning on using Excel to manipulate the data).

  • Z77A-G43 No Signal Output is this right?

    Hi All
    I have a problem with a Z77A-G43 motherboard it has BOIS version V1 only and i need to update to version 2.3 to support my i5 Ivy bridge set CPU a have a few questions.
    Q1. My question is this with my Ivy CPU installed should the motherboard turn on and allow me to access the BOIS so I can flash by USB/CD? or will the motherboard not allow me to enter the BOIS.
    Q2. With no signal output will burning the BOIS file and flashing tool to a CD and booting the system will this auto flash the BOIS when i turn on the motherboard?
    Q3. Is there a list of Supported CPU's for the Version v1 BOIS for this board so I can install an older CPU that is supported so i can flash the BOIS?
    Hope someone can help here Thx.

    Quote
    What do we need to do to make the system post?
    Recommend to start a new thread and make a signature of all your systems components.
    >> Posting Guide <<

  • No signal output on monitor after installin hyperx memory

    I bought 2 512 pc3200 cl2 184 kingston hyperX (KHX3200AK2/1GR)
    My mobo is msi k8n neo nvidia nforce 3 250gb chipset board
    I have cpu 3400+ amd
    I took out my 1gb of 2700 ddr333 to install my new ram ddr400 3200 hyperX kingston and when I turn on my computer, i get no signal in my monitor, i checked the cables, and what it does it goes black and then back to sayin no signal output on the monitor

    Replace monitor cable with a good one.  If machine still won't boot then...
    Follow Bejon's instructions carefully (remembering to remove power cord and waiting 3 minutes before opening case to reset cmos, then closing case after you have reset cmos as described in the user manual, and reattaching power cord after case is reclosed).  Once you can boot (with one stick of ram in slot closest to the cpu if you cannot boot with 2 sticks) hit "del" key to enter bios, select "optimized defaults", enter "cell menu", set dram/memory voltage to 2.75 (or higher if manufacturerer of HYPER X memory recommends more power - don't worry about flashing red warning, memory can handle it), then use "F10" and "yes" to save settings in bios.  Good luck.

  • How can I output text in a browser window in JAVA?

    How can I output text in a browser window in JAVA?

    "response.getWriter().print()" is the most common method when using servlets

  • How can I output up to 7 tracks simultaneously?

    Hello esteemed GB community.
    I have to create a little effect for an upcoming party. For this I need to output the following:
    - at least 4 separate audio channels (stereo front and stereo rear)
    - one mono combination of these four tracks (to drive a Light organ gizmo - makes the light flicker with the audio)
    - and finally one separate track on which I will put pulses to trigger a relay for a fog machine.
    Setting up these tracks in GB should be fairly straigth forward (although my GB experience is very limited I've done a fair amount of audio mixing in FCP - which I imagine is similar) but my question is, how can I output all these tracks so I can feed them to their respective recipients? This means to two stereo setups for audio (or would it be easier to do 5.1 Dolby - $$$ ?) and then to the light organ and to the relay trigger for the fogger.
    I did a search for multitrack but most answers I found dealt mainly with input, not output. I imagine this will require some kinid of an external box, right?
    Budget for this box is very limited, hopefully less than $200. Quality does not have to be very high although a good bass response will be important for the effect.
    Thank you very much for any help.
    Bo

    Thanks for your help, HT. Would Logic be a better choice than ProTools LE for this? (I know next to nothing about them I must confess...)
    I was just thinking, in the worst case scenario, I could just create the 6 audio tracks in GB, then output three stereo mp3 files (stereo front, stereo rear, 2 control tracks), dump each on a separate cheap mp3 player and get a controller that can remote start all of them at the same time...
    Does anyone know of such a cheap mp3 player that can be remote started via a wire connection to a relay? Is there another forum that deals with this kind of issue?
    Thanks again.
    Bo

  • How can i output the max average?

    How can i output the max of the average?
    i have this queries...
    <cfquery datasource="Intranet" name="GroupStars">
            SELECT execoffice_status, employeedept, COUNT(*) as 'totalstars'
            FROM CSEReduxResponses
            WHERE execoffice_status = 1
            GROUP BY execoffice_status, employeedept
        </cfquery>
        <cfquery dbtype="query" name="GetTotalStars">
            SELECT *
            FROM GroupStars, GetDepartments
            WHERE GroupStars.employeedept = GetDepartments.csedept_id
        </cfquery>
    <cfif GetTotalStars.RecordCount gt 0>
        <cfquery datasource="PhoneList" name="GetAllData">
            SELECT dept.csedept_id, COUNT(*) as 'totalcount'
            FROM employee, dept
            WHERE employee.dept_id = dept.dept_id
                AND employee.emp_status = 1
                AND dept.csedept_id is not null
            GROUP BY dept.csedept_id
        </cfquery>
        <cfquery dbtype="query" name="GetDepartmentTotalEmployeesCount">
            SELECT *
            FROM GetAllData, GetDepartments
            WHERE GetAllData.csedept_id = GetDepartments.csedept_id
        </cfquery>
    <cfquery name="joinQuery" dbtype="query" >
    SELECT *
    FROM GetTotalStars
    WHERE GetTotalStars.csedept_id = -1
    </cfquery>
    <cfset QueryAddRow(joinQuery)>
    <cfquery name="GetUnion" dbtype="query" >
    SELECT *
    FROM GetDepartmentTotalEmployeesCount, GetTotalStars
    WHERE GetDepartmentTotalEmployeesCount.csedept_id = GetTotalStars.csedept_id
    UNION
    SELECT GetDepartmentTotalEmployeesCount.*, joinQuery.*
    FROM GetDepartmentTotalEmployeesCount, joinQuery
    WHERE GetDepartmentTotalEmployeesCount.csedept_id NOT IN (#ValueList(GetTotalStars.csedept_id)#)
    </cfquery>
    <cfquery datasource="Intranet" name="GroupStarsGiven">
        SELECT execoffice_status, submitterdept, COUNT(*) as 'totalstarsgiven'
        FROM CSEReduxResponses
        WHERE execoffice_status = 1
        GROUP BY execoffice_status, submitterdept
    </cfquery>
    <cfquery dbtype="query" name="GetTotalStarsGiven">
        SELECT *
        FROM GroupStarsGiven, GetDepartments
        WHERE GroupStarsGiven.submitterdept = GetDepartments.csedept_id
    </cfquery>
    <cfquery name="joinQuery2" dbtype="query" >
    SELECT *
    FROM GetTotalStarsGiven
    WHERE GetTotalStarsGiven.csedept_id = -1
    </cfquery>
    <cfset QueryAddRow(joinQuery2)>
    <cfquery name="GetUnion2" dbtype="query" >
    SELECT *
    FROM GetUnion, GetTotalStarsGiven
    WHERE GetUnion.csedept_id = GetTotalStarsGiven.csedept_id
    UNION
    SELECT GetUnion.*, joinQuery2.*
    FROM GetUnion, joinQuery2
    WHERE GetUnion.csedept_id NOT IN (#ValueList(GetTotalStarsGiven.csedept_id)#)
    ORDER BY csedept_name ASC
    </cfquery>
    and this part is where i calculate the average, but i only get the average for each department, and from here i want to get the max of the average. how can i do that?
    <td><div align="right"><cfif totalstars eq ''>&ndash;<cfelse><cfset avgstars = totalstars / totalcount>#DecimalFormat(avgstars)#</cfif></div></td>
    thanks for your help

    1) What is it doing instead?
    2) Can you repost your code, but use code tags? If you repaste your formated code and place the tag &#91;code&#93; on top of your block of code and then paste &#91;/code&#93; on the bottom of your block, your posted code will retain its formating and be readable.
    Good luck

  • How can I output RCA video?

    How can I output RCA video from the headphone jack of my macbook pro? Is there any software to do this?

    I can't broadcast with the built in iSight webcam... how would I zoom in or zoom out? or how would I pan? I've seem people doing it walking with their laptops but that's not an option for me... there's nothing wrong with my USB ports but that's neither an option to stream video because as far as I know through USB you can't connect video in apple operating systems ..you can for sure plug any video cam or photo camera through usb but as a drive to transfer data not as a live video camera...  is by firewire an old interface developed by apple that you can connect all sorts of cameras to apple computers... unfortunately my new sony HDR-AX2000 camcorder doesn't have firewire output...
    thanx

  • Grub can't output to display

    ok, so I  dual boot debian and arch and today I dist-upgraded to wheezy only to find arch gone from the boot menu. I workaround this by chrooting into arch and install grub there, and now and typing from arch. however, on boot after the bios flashes I get this message: can not output to this display. now, hitting enter boot arch, but a. I am completly blind in the grub menu and b. I have no of telling if debian is in the boot menu other then trail and error, which I havn't tried yet because thats really a different issue. any ideas on what might be causing the problem? which arch boots everything is fine from there, this is just a grub issue

    even with arch mounted and os-prober installed debian fails to see arch (i've filed a bug report with debian) arch os-prober sees debian, but like I said, no video so I can't really tell what the menu looks like until I found that problem. anyway, heres /grub/default. I may try updating grubs menu again and see what happens
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet"
    GRUB_CMDLINE_LINUX=""
    # Preload both GPT and MBR modules so that they are not missed
    GRUB_PRELOAD_MODULES="part_gpt part_msdos"
    # Uncomment to enable Hidden Menu, and optionally hide the timeout count
    #GRUB_HIDDEN_TIMEOUT=5
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    # Uncomment to use basic console
    GRUB_TERMINAL_INPUT=console
    # Uncomment to disable graphical terminal
    #GRUB_TERMINAL_OUTPUT=console
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE=auto
    # Uncomment to allow the kernel use the same resolution used by grub
    GRUB_GFXPAYLOAD_LINUX=keep
    # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
    # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
    #GRUB_DISABLE_LINUX_UUID=true
    # Uncomment to disable generation of recovery mode menu entries
    GRUB_DISABLE_RECOVERY=true
    # Uncomment and set to the desired menu colors. Used by normal and wallpaper
    # modes only. Entries specified as foreground/background.
    #GRUB_COLOR_NORMAL="light-blue/black"
    #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    # Uncomment one of them for the gfx desired, a image background or a gfxtheme
    #GRUB_BACKGROUND="/path/to/wallpaper"
    #GRUB_THEME="/path/to/gfxtheme"
    # Uncomment to get a beep at GRUB start
    #GRUB_INIT_TUNE="480 440 1"
    #GRUB_SAVEDEFAULT="true"

Maybe you are looking for