Using a (tcl) script as source of data for VI

hi,
novice here, under a deadline.
we would like to display data coming from running a shell script. the data is a stream of lines, each with a datapoint as a floating point number.
bash$ ./my.tcl
12.5
15.2
18.3
17.2
14.3
the first tutorial, with a waveform graph and a stop button is what the display should look like (we'll enhance it later).
for input, though, instead of getting a simulated sine signal, we would like to read the output of the my.tcl script.
we found one example, but it calls wish (the tcl interpreter), once and it ends. we need to read a stream continuously.
all this under labview 8.5 for linux (under centos 4, if that matters).
we want to get the basics going. so that is the basic question.
later, once the basics are working, we would like to split what comes out of the script in channels.
the script will spit this out, e.g.:
port0: 10.2
port0: 11.3
port1: 11.2
port0: 13.4
port1: 15.2
you get the idea. multiple channels will be bundled in the standard output and they will need to be demultiplexed. they may come in in bursts (e.g. three readings at a time from port 0, two from port one, ...etc.).
we have some amount of control as to what the output of the script looks like.
we just got started two days ago with labview, and it's cool. however, connecting it to read from the external world in the way that it exists now is what we have not been able to do yet.
any help will be deeply appreciated, as we adopted this solution after dumping the atteempt to use tcl as the front end view, since we would like to do more sophisticated things down the road and labview is great for that.
thanks in advance!
carlos

You need to do that with pipes.
There is some code to do that (OGPipes) but it was never finished (as far as
I know). I recently used it, but it has only support windows. Not much
helpful for you...
What I get from the Linux resources on the web, pipes are a lot easier to
implement then under windows. I might need to do this in a few weeks myself,
but don't have a Linux machine at the moment. Making a library wrapper in C
is probably the easiest way, altough you should be able to call the Linux
libraries for pipes directly from LabVIEW.
Regards,
Wiebe.

Similar Messages

  • Source of data for custom tables in Oracle Apps

    Hi,
    Is there any way to find the source of data for the Custom tables. The source can be either any function, procedure, package or a trigger or any other process. The reason why I need to know about it is because we have some custom tables that are used by some custom Reports. Sometimes those reports comes out blank because the data in these custom tables is blank. So I need to know which processes are populating data in these custom tables. Any help would be really appreciated !!
    Thanks,
    KM

    Is there any way to find the source of data for the Custom tables. The source can be either any function, procedure, package or a trigger or any other process. The reason why I need to know about it is because we have some custom tables that are used by some custom Reports. Sometimes those reports comes out blank because the data in these custom tables is blank. So I need to know which processes are populating data in these custom tables. Any help would be really appreciated !!I do not think there is a direct way to find out the source of the data unless your custom processes are documented.
    You may enable AutditTrail (search the forum for links/docs) and see if this would help.
    Thanks,
    Hussein

  • Source of data for Z fields

    Dear Gurus,
    What is the source of data for Z custom fields ?
    Do we need to create any tables for these fields in the source system ?
    Do we call it as enhancement when we add a Z field or populate an existing field (Unused) in the standard data source or user defined (Generic) ?
    Can we add Z field to any standard and user defined data sources ?
    Points will be taken care.
    Regards
    Mohan

    Hi,
    What is the source of data for Z custom fields ?
    ---> Any standard field or Custom field from the source system.
    Do we need to create any tables for these fields in the source system ?
    ---> Not required.
    Do we call it as enhancement when we add a Z field or populate an existing field
    (Unused) in the standard data source or user defined (Generic) ?
    ---> Whenever you add a standard SAP field or Z field that is not in the Delivered version of the Datasopurce, then we call it as enhancement.
    Can we add Z field to any standard and user defined data sources ?
    --->  Yes, you can.
    Regards,
    Balaji V

  • Router Crashs when using EEM(TCL script)

    I wrote a TCL script to deal with my  dual-link router, but the script running for some time will case the router crash.Could you help me for this?
    Is there some problem with my script ?Thank you!
    Routers :CISCO2821
    IOS vesion:12.4(15)T8

    This looks like CSCsv52332.  This bug is fixed in 12.4(15)T10.

  • Error in  page which is using file system DC as source of data .

    Hi All,
    I have created file system connection using create content repository connection .
    I have exposed this file system as a data control.
    Form this data control i have creatd a jspx page by dragging and dropping .
    I am getting following exceptions while trying to run this page .
    Starting WLS with line:
    <Exception>
    java.lang.NoClassDefFoundError: and
    Caused by: java.lang.ClassNotFoundException: and
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: and. Program will exit.
    Exception in thread "main" Process exited.
    </Exception>
    please help me to get this issue resolved .
    Thanks,
    Arun.

    From your stack trace, it sounds like you are trying to run a Java class and it has no main() i.e. public static void main(String args[]). Maybe check that you've actually created a Fusion application and there's a Web Content directory or faces servlet present? (I'm guessing here) Running the .jspx without the context will probably just give you that error message because there's no main().
    Cappa

  • Can't see payload for the ws that is source of data for an omniportlet

    Hi,
    I have created a simple omniportlet and want to be able to retrieve information from a web service. In the "Source" step of the Omniportlet definition wizard, I specify the wsdl for the web service. I am able to see the method on the web service but I am not able to see the payload for the method. Here are the urls that give you the necessary details. The first url is for a concrete wsdl that I specify as the data source. Clicking on Show Methods, shows me the methods but doesn't show me the payload.
    http://139.185.45.130/AIAComponents/CompositeServices/AIADemoCustomerEBS.wsdl
    This second url will show you that there is infact a payload for this service.
    http://139.185.45.130/event/AIADemo/AIADemoCustomerEBS
    Ideas on what could be wrong? I have no problems using the weather service specified in the web center tutorial.
    Thanks,
    Munazza

    Please, can someone help me?
    I'm not the only one having this problem:
    http://forums.toucharcade.com/showthread.php?t=4670
    http://getsatisfaction.com/apple/topics/itunes_application_store_lying
    Unfortunately, no answers there.

  • BW as a source of data for a third party reporting tool

    Hello Gurus,
         We have reports developed on a Java application where the data comes in from Cognos-Oracle database and the question is how to get the data from SAP BW instead.Is there a way we can pull in the data from SAP BW queries without using ABAP code or any coding as such or any simple way.
    Please help me out with this and you will be well rewarded.
    Nikki

    check out the answer at ABAP forum
    BAPI/RFC - Function module code explanation-VERY URGENT!!!!!
    Regards
    Raja

  • Using a file as a source of images for a slideshow in CS6

    I was wondering if someone might be able to help me create a slideshow that uses a file to pull images from rather than calling on an individual image source code. As it is right now, I have a basic working jquery slideshow. What I am wanting to get to though is instead of having the numerous <img source=..../> code I could instead have the slideshow automatically pull images out of a designated file. Then, to add images, I could just import the pictures into the designated file. I am very new to using Dreamweaver and any sort of coding in general, so I do not even know if this is possible or worthwhile. Any help will be greatly appreciated!

    You can't pull files from files.  But you can certainly pull files from a designated folder or directory on your server.  This example below uses PHP code with the jQuery Fancybox Viewer.
    Alt-Web :: PHP & Fancybox Photo Gallery
    Nancy O.

  • BAPI commit without using Wait? need to get the data for created order

    I am using BAPI to create or change sales order and by using 'BAPI_TRANSACTION_COMMIT' updating the database.
    Immediately after that there is some requirement to fetch VBAP with the created order number, but there is no data found.
    If i use call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                   wait          =  'X'.
    then i am able to fetch data from VBAP, but its impacting the performance. Is there any alternative way to get data without fetching or without using wait.
    Can i use ABAP memory or SAP memory to get the details?
    Please help...........

    Hi Tapas379,
    Yes technically you can:
    set data before commit
    DATA memory_id(20) TYPE c.
      CONCATENATE 'VBAP_01_' sy-uname INTO memory_id.
      DELETE FROM DATABASE indx(as) ID memory_id.
      EXPORT vbap_tab = vbap_tab "<-input
        TO DATABASE indx(as)
        CLIENT sy-mandt
        ID memory_id.
    Get data from anywhere after setting it.
      data memory_id(20) type c.
      concatenate 'VBAP_01_' sy-uname into memory_id.
      import vbap_tab = vbap_tab " ->output
        from database indx(as)
        client sy-mandt
        id memory_id.
      delete from database indx(as) id memory_id.
    Thanks,
    Duy

  • Use imported attribute to reference different meta data for export

    our HR system only provides the three letter country code and i would like to export to AD the two letter country code and the spelled out country name. 
    maybe someone can provide the best way to do this. some questions i have had around trying to solve this are
    can you have a connector space object joined to multiple metaverse objects? a one to many relationship?
    could i create a new object_type country and have the person reference the country metaverse object? 
    i'm trying to avoid adding more code, let me know if there is a way to configure what i am trying to do either in the sync engine or the fim portal.
    Thank You!
    edit: if it is helpful i have no problem importing the ISO-3166 data from a source like http://opengeocode.org/download/countrynames.txt into
    fim.

    You could project country objects into the MV from your file, but personally I would just create a new SQL table based on the country code file then join it to the HR table (assuming this is a DB feed - if not import your HR file into a SQL table
    first via SSIS). Then the countryName will be an attribute on the incoming person from HR. Something like
    create view vwImportNew
    SELECT tblHR.employeeID, tblHR.firstName, tblHR.lastName, tblCountryCode.countryCode, tblCountryCode.countryName
    from tblHR
    INNER JOIN tblCountryCode
    ON tblHR.countryCode = tblCountryCode.countryCode
    Then repoint your HR MA at vwImportNew and refresh the schema and the countryName will appear as an attribute ready for import flow
    Cheers,
    Dave

  • Scripting the capture process in Vivado 2015.1 ILA using the tcl

    Hello,
    I'm wondering how can I use the TCL script in order to automate the capturing process. 
    The way that it works so far is that I have to change the condition manually through the GUI, start trigrring, waiting for it to upload the waveform (I really would like to bypass this step!) and then downloading the captured data in .csv file. I've tried the attached script to automate two captures, it didn't work though :( I got same results for test0.csv and test1.csv
    any ideas?!
    set_property TRIGGER_COMPARE_VALUE eq5'u1 [get_hw_probes state_reg__0 -of_objects [get_hw_ilas hw_ila_1]]
    wait_on_hw_ila hw_ila_1
    run_hw_ila hw_ila_1
    wait_on_hw_ila hw_ila_1
    write_hw_ila_data -csv_file d:/pss/test0.csv [current_hw_ila_data]
    set_property TRIGGER_COMPARE_VALUE eq5'u10 [get_hw_probes state_reg__0 -of_objects [get_hw_ilas hw_ila_1]]
    wait_on_hw_ila hw_ila_1
    run_hw_ila hw_ila_1
    wait_on_hw_ila -timeout 0 hw_ila_1
    write_hw_ila_data -csv_file d:/pss/test1.csv [current_hw_ila_data]
     

    Hello Pratham,
    I have tried that before. it works perfectly saving one shot of the ILA. However if you just copy and past, it will fail for the 2nd captured data. (it will save the same thing).
    What I'm particularly looking is saving more than one sample, let's say I would like to automate for 1000 captures.
    The problem that I've encountered follows as this:
    When you try to capture more than one sample, it doesn't stop the trigger and when it does it will save the same thing. in order to stop it it needs to upload the waveform (which is really time consuming and I don't need the tool to upload it in order to captuer the .csv data!) so it will slow down the capturing process.
    In ChipScope it was very easy to do that! there was an option called repetitive trigger on. and it was easily capturing down repeatedly with log1, log2, ... and so forth. I'm looking for that!

  • Cannot generate IP using TCL script

    I'm trying to pull in a customized PCIe block from a .xci file using my TCL script with Vivado 2015.2 on Ubuntu 12.04.  I then want to generate all the IP output products and run through the entire design flow (to eventually generate a bitfile).  When I try to call create_fileset on my PCIe IP, I get the following error:
    ERROR: [Vivado 12-3563] The Nested sub-design '/home/coreyolson/workspace/build/EX850_GUPS/EX850_GUPS.srcs/sources_1/ip/pcie3_ultrascale_0/ip_0/pcie3_ultrascale_0_gt.xci' can only be generated by its parent sub-design.
    I'm attaching my vivado log file, which hopefully will provide some insight into the problem...

    I'm not well versed in TCL, It seems the prob in the SIP sessions. Can u enable PRACK on the Dial peer and the SIP profile associated SIP trunk and chk. U can enable by folowing the below steps.
    CUBE
    dial-peer level:
                                  dial-peer voice XXXX voip
                  voice-class sip rel1xx require 100rel
    CUCM
                   Device -> Device settings -> Sip profile -> Trunk Specific Configuration
                                  SIP Rel1XX Options Required Field : Send Prack if 1xx contains SDP
    Thx
    M

  • TCL scripting

    st1\:*{behavior:url(#ieooui) }
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman";
    mso-ansi-language:#0400;
    mso-fareast-language:#0400;
    mso-bidi-language:#0400;}
    Network Scenario:
    We have a Client-Server enterprise network, and nature of servers is to broadcast some stats/info to all the clients.
    We are using two 6509-E at core with HSRP to provide the redundancy for servers. I have attached the network layout (not the real one) with some description with this thread. On both switches we have configured “ip helper-addresses” to forward the broadcast to multiple destinations(different VLANs). Every thing is working fine with respect to HSRP.
    Problem:
    Under normal circumstances, both ACTIVE and STANDBY hsrp switches generates broadcast which causing duplication of every broadcast packet and Client end receiving every packet twice. Cisco already claimed that standby switch will forward the broadcast. As an alternate TAC has advised to use the TCL script as a work around which we attempted to however no success at the end.
    Please let me know if some one can help me in modifying TCL script.
    ::cisco::eem::event_register_syslog occurs 1 pattern .*STANDBY.*STATECHANGE.* maxrun 90
    # EEM policy used to detect an HSRP state change. Once change is detected, analize the
    # type of change and modify the configuration about helper address.
    # The script looks for the DHCP server ip address in dhcp_server environment variable
    # and adds or removes the command 'ip helper-address dhcp_server' to the interface on
    # which HSRP status has changed.
    # April 2006, Cisco Europe & Emerging TME Team
    # Copyright (c) 2006 by cisco Systems, Inc.
    # All rights reserved.
    ### The script uses the following environment variables:
    #   $dhcp_server - ip address of the DCHP server in four octect dotted notation
    # 1. check if all the env variables we need exist and if not abort
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    if {![info exists dhcp_server]} {
        set result "EEM Policy Error: variable dhcp_server has not been set"
        error $result $errorInfo
    # 2. Local procedure for CLI show commands
    # Pass a list of cli commands and it returns a list of outputs
    proc CLICmdProc {cmds} {
        if [catch {cli_open} result] {
            error $result $errorInfo
        } else {
            array set cli1 $result
        if [catch {cli_exec $cli1(fd) "enable"} result] {
            error $result $errorInfo
        foreach a_cmd $cmds {
            if [catch {cli_exec $cli1(fd) $a_cmd} result] {
                error $result $errorInfo
            } else {
                lappend cmd_output $result
        if [catch {cli_close $cli1(fd) $cli1(tty_id)} result] {
            error $result $errorInfo
        return $cmd_output
    # 3. Local procedure for CLI configuration commands
    # Pass a list of cli commands
    proc CLICfgProc {cmds} {
        if [catch {cli_open} result] {
            error $result $errorInfo
        } else {
            array set cli1 $result
        if [catch {cli_exec $cli1(fd) "enable"} result] {
            error $result $errorInfo
        if [catch {cli_exec $cli1(fd) "config terminal"} result] {
            error $result $errorInfo
        foreach a_cmd $cmds {
            if [catch {cli_exec $cli1(fd) $a_cmd} result] {
                error $result $errorInfo
            } else {
                set cmd_output $result
        if [catch {cli_exec $cli1(fd) "end"} result] {
            error $result $errorInfo
        if [catch {cli_exec $cli1(fd) "write mem"} result] {
            error $result $errorInfo
        if [catch {cli_close $cli1(fd) $cli1(tty_id)} result] {
            error $result $errorInfo
    # 4. query the information of latest triggered eem event
    array set arr_einfo [event_reqinfo]
    if {$_cerrno != 0} {
        set result [format "component=%s; subsys err=%s; posix err=%s;\n%s" \
            $_cerr_sub_num $_cerr_sub_err $_cerr_posix_err $_cerr_str]
        error $result
    set msg $arr_einfo(msg)
    # 5. we save the interface which triggered the event in interface
    regexp {(Vlan[0-9]{1,4}).*-> ([A-Z,a-z]*$)} $msg result interface action
    if {$action == "Active"} {
                  lappend clicmd "interface $interface"
                  lappend clicmd "ip helper-address $dhcp_server"
    if {$action != "Active"} {
                  lappend clicmd "interface $interface"
                  lappend clicmd "no ip helper-address $dhcp_server"
    set cliout [CLICfgProc $clicmd]
    action_syslog msg "Updating the configuration of interface $interface"

    Try this version.  You will need to first set an environment variable, dhcp_servers to be a comma separated list of IP addresses (i.e. the helper addresses) to configure/unconfigure.  For example:
    event manager environment dhcp_servers 192.168.10.255,192.168.12.255,192.168.14.255

  • Using Answers result set as source for BIP

    Hi, I'm running into a strange issue that I think is related to a configuration problem. I'm trying to use an OBIEE Answers result set as the source of data for a BI Publisher report. On the data model I choose Oracle BI Answers, but then when I click on the icon to select the answers result set - a blank window opens. It doesn't show either the USERS or SHARED directories for me to start drilling to find the answers result.
    Here's some details:
    1. BI Publisher security is set to use OBIEE server security. This appears to work properly, if I instead choose to write SQL directly against the OBIEE server, everything is working fine.
    2. I am able to integrate BIP reports onto OBIEE dashboards with no issues, so the integration is at least working in that direction
    3. I see this problem in DEV and STAGE, but it works fine in PRODUCTION
    Obviously some sort of config issue, but I'd like to point our server admin group in the right direction. Any idea what could be hosed up?
    Thanks!
    Scott

    Hi ,
    Check the settings in
    Admin>Oracle BI Presentation Services is configured or not..
    Thanks,
    Ananth

  • Export all dimension using a report scripts

    Does anybody has an idea on how to Export the dimensions from Essbase through a report script? Because i will use this to load the dimensions in odi.
    any idea is highly appreciated.
    Thanks in advance.
    Hanson

    If you look at my blog, I talk about the <preview function. it brings back them members with zeros as the values. It's much quicker than actually returning the data.
    There is a problem in general with your premise of using a report script to do this. For ODI, you will want the dimensions in a parent child format. The report script will not do that for you. I would suggest you look at the outline extractor housed on applied olap's web site. www.appliedolap.com it's free and you can run it in a batch mode.
    I think you should also look at John Goodwin's blog http://john-goodwin.blogspot.com/ he has a series of articles on ODI. you whould be able to extract the dimensionality from a cube and load it into another cube directly from ODI

Maybe you are looking for

  • Problem with displaying Greek in form

    Hello everyone. I have set up oracle form 10.1 in oracle linux (similar to red hat 4). I can run the form builder (frmbld command) but when I try to write Greek (for example in the label of a button) I write strange boxes instead of Greek letters. My

  • Make to order process

    hi all, please tell me the below scenarios I have to produce finished goods -shirt raw material1 - fabrics raw material 2 - accessories i have maitained BOm for the shirt. the scenario is from the sales order - i have to do availability check and the

  • Contacts notes still have extra characters

    No device I have a pre that's 2 yrs old.  I have been reading that the extra characters  < br / >  issue is known; in fact 2 other posts from 2010 were closed.  I still have this problem; I added a contact 10 minutes ago and notes still added extra c

  • Remove ability to "create personal view" in CRM 2011 on premise.

    CRM 2011 on premise.  I am trying to remove a users ability to create a personal view.  I would like to remove that option from the pulldown.  TIA

  • Manage Server Pool - import ISO Files

    I can´t select the created ServerPool on VM Manager Homepage while importing an ISO Image - Select from Server Pool (Discover and register) The dropdown menu does not offer the server pool, even the serverpools tab is showing the pool and the status