Connecting converted tool from VBAI to LabView

Hey all,
I'm really trying to connect to VI's together, one being a converted tool from VBAI and the other one, just a normal Labview coding.
The two VI's are attached with this message. Could anyone help me connect them together?
Kind regards
Xavier
Attachments:
GetImageExample.vi ‏31 KB
Craig's tool.vi ‏75 KB

Dear Nathan
I know I didn.t give much precision on that, but that's because I'm not so confortable with LabView, but I'll try and do my best.
So to start with, I am using a thermal camera provide by a company called LAND. LAND has developed a few SubVI so that the thermal camera can be used on LabView. This is represented by attachment 1.
Then, a few weeks ago, just for a trial, I have tried converting a tool from Vision Builder for Automated Inspection to LabView (no problems). After a little while, I manage to connect the new tool converted from Vision Builder (useless tool but just for trial; attachment 2) to the main SubVI, and data was coming out of all this (everything up until there was fine).
Then the next thing was to create the tool I wanted to use on Vision Builder, which didn't take long and I converted it to Labview. But finally, when it came to connecting the main SubVI (attachment 1) to the usefull tool from VBAI I wanted to use (attachment 3), I couldn't manage to find my way.
So this is what I am trying to do, that's to say, being able to use the tool developped in VBAI (attachment 3) to analyse the image I get from the main SubVI (attachment1) and get some data.
Any kind of help would be highly appreciated.
Thanks in advance
Xavier
Attachments:
Main SubVI.vi ‏32 KB
Main SubVI to first converted VBAI tool.vi ‏113 KB
Find Objects with ROI.vi ‏54 KB

Similar Messages

  • Migrated from VBAI to labview 8.2.

    I’m fairly new at these vision programs and need some advise.  I have migrated from VBAI to LabView 8.2.  However I can’t seem to get the LV program to work like VBAI program works.  The LV program gets stuck in a loop processing the same photo rather than the entire folder of 25.  The other problems are: It will not show the photo; it will fail all photos, and will not log results.
    I am running the LV 8.2, Vision Acquisition 8.2, and VBAI 3.0

    Hi Davis,
    I'm not experienced in VBAI and IMAQ, but in your code I couldn't find any function to load your JPG photos...
    There's only an 'IMAQ Create' in the initialize-sequence, which generates an empty image. So it seems you have to attach your own code here ;-)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Mac OS X Server 10.4 - connect admin tools from one network to another?

    Hi,
    This may seem quite strange, but I have to do some administration of a server one one network, while being within another one. It seems that if I am able to connect to the internet utside of the office network (e.g. on a public network using wireless), I can just fire upp the mac admin tools and do my work perfectly.
    However, if I try to do the same while connected to the company network (which is governed by a OS X Server), I get nowhere. Can't even get a connection.
    Is there a way to get around this?
    /Fredrik

    I've run the Server Admin tool over a VPN; from a Mac OS X client (with the tools installed) on a remote LAN to a firewall-based VPN end-point. Worked fine; this configuration can work.
    It's possible here that you're encountering subnet routing, as various of the VPN solutions need either send all traffic over the VPN (there's a setting for that), or the local and the target LANs need be in separate and unique subnets. (As is my wont, I typically configure and use an outboard firewall. Not a host-based firewall.)
    So this could be a firewall port or three that need be opened (as mentioned in in earlier reply), or this could be subnet routing.

  • Convert.To​Byte and logical masks, from VB to LabVIEW

    Hi guys,
    I have to write a VI communicating via RS232 with a microcontroller for a PWM application. A colleague has given me the GUI he has developpd in VB and I would like to integrate it into my LabVIEW programme by converting the VB code into Labview code.  Here's the code:
    Private Sub LoadButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles loadButton.Click
            Dim bufLen As Integer = 12      // Buffer length
            Dim freq As Integer = 0      // frequency
            Dim pWidth As Integer = 0      // pulse width
            Dim dac As Integer = 0       // Value used in oscillator setting for generating pulse frequency
            Dim addr As Integer = 0      // Address of the pulse width in the pulse generator.
            Dim rTime As Integer = 0      // duration of machining/pulse train in ms.
            Dim returnValue As Byte = 0      // A variable for storing the value returned by the 
                                                           //microcontroller after it receives some data
            Dim buffer(bufLen) As Byte       // creates an array of bytes with 12 cells => buffer size = 8 x12 = 96 bits
    // can you explain a bit please I know you're converting the entered values into byte and put them one by one in a specific order. This order is how the 
    //microcontroller expects them
                addr = (Floor((pWidth - Tinh) / Tinc)) // Formula from hardware, calculates address setting for pulse generator to set pulse width.
                buffer(0) = Convert.ToByte(Floor(3.322 * (Log10(freq / 1039)))) // Caluclates OCT value for use in setting oscillator for pulse freq.
                dac = (Round(2048 - ((2078 * (2 ^ (10 + buffer(0)))) / freq)))  // Calculates DAC value for use in setting oscillator for pulse freq.
                buffer(1) = Convert.ToByte((dac And &HF00) >> 8)                         //
    // &H is the vb.net to tell it its hex code, F00 gives the top 4 bits from a 12 bit value.
                buffer(2) = Convert.ToByte(dac And &HFF) // For values that are larger than 256 (8bits) the value needs to be split across 2 bytes (16 bits) this gets the //bottom 8 bits.  &H is the vb.net to tell it its Hex.
                buffer(3) = Convert.ToByte((addr And &HFF0000) >> 16) // This value may be so large it requires 3 bytes (24bits). This gets the top 8 bits.
                buffer(4) = Convert.ToByte((addr And &HFF00) >> 8) // This gets the middle 8 bits.
                buffer(5) = Convert.ToByte(addr And &HFF)// This gets the bottom 8 bits.
                buffer(6) = Convert.ToByte((rTime And &HFF0000) >> 16) //This value may also be 3 bytes long.
                buffer(7) = Convert.ToByte((rTime And &HFF00) >> 8)
                buffer(8) = Convert.ToByte(rTime And &HFF)
                buffer(9) = Convert.ToByte(2.56 * ocpBox.Value)  // The ocp pulse period is formed of 256 steps or counts, so if a percentage is requested, this formula gives the number of steps/counts required to set the pulse width
                buffer(10) = Convert.ToByte(tempBox.Value)
                If (tempCheck.Checked = True) Then
                    buffer(11) = 1
                Else
                    buffer(11) = 0
                End If
                freq = ((2 ^ buffer(0)) * (2078 / (2 - (dac / 1024))))
                pWidth = Tinh + ((((Convert.ToInt32(buffer(3))) << 16) Or ((Convert.ToInt32(buffer(4))) << 8) Or (Convert.ToInt32(buffer(5)))) * Tinc)
                ' Connect to device
                serialPort1.Write(1) // Sends the number 1. This tells the microcontroller we are about to start sending data. It should respond with a zero if it is ready 
                                             //and the connection is good.
    The line "serialPort1.Write(buffer, 0, bufLen)" sends the buffered data where the variables are: buffer =  the buffered data; 0 = the position in the buffer to start from; bufLen = the position in the buffer to stop sending data.
    What's the best way to deal with the Convert.ToBytes and the logical masks And ??
    Thanks in advance for your time and consideration,
    regards
    Alex
    Solved!
    Go to Solution.

    Try this
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • I can't connect to my PXI from within my LabView Project

    Please advise,
    I have been programming my PXI-8195 fine for weeks, but this morning I am receiving an error in connecting to the remote system from within my LabView Project.  MAX says it is 'connected-running' and I even successfully tested a DAQmx task.  I tried rebooting the PXI a couple of times as well as my host computer.
    Thanks in advance for any assistance.

    Hi Nik11,
    What error are you receiving in LabVIEW?  Also, what operating system are you using on the 8195, and are you using LabVIEW or LabVIEW RT?
    Regards,
    Adam W
    Applications Engineering

  • HT204382 how to convert movies from flip for use in final cut pro

    How do you convert movies from a Flip video camera for use in final cut pro?

    DVDs are in a socalled delivery format (mpeg2), which isn't meant and made for any processing as editing...
    in recommended order, choose one of the following tools/workarounds:
    DVDxDV (free trial, 25$, Pro: 90$)
    Apple mpeg2 plugin (19$) + Streamclip (free)
    VisualHub (23.32$)
    Drop2DV (free)
    Cinematize >60$
    Mpeg2Works >25$ + Apple plug-in
    Toast 6/7/8 allows converting to dv/insert dvd, hit apple-k
    connect a miniDV Camcorder with analogue input to a DVD-player and transfer disk to tape/use as converter
    http://danslagle.com/mac/iMovie/tips_tricks/6010.shtml
    http://danslagle.com/mac/iMovie/tips_tricks/6018.shtml
    http://karsten.schluter.googlepages.com/convertdvdstodvs
    (advice is for imports to iM... )
    none of these methods or tools override copy protection/DRM mechanisms.. advice on 'ripping' is a violation of the ToU of this board ..
    +be nice to copy rights ...+

  • Are there any tools from NI can generate the pass-through layer (IVI class driver) for IVI class specific driver?

    IVI class driver (layer) will provide interchangeable feature for a IVI class specific driver. It would work as a pass-through layer and finally make calls to the IVI class specific driver. Since there could be a lot of functions to be passed through. Are there any tools from NI (Labwindows/CVI or Labview) can do this ?
    Thanks a lot. 
    BTW: the IVI class specific driver interface is generated from Labwindows/CVI tools.

    Hi Chris,
    Yes, I did.  To support interchangability, from my understanding of the IVI specs, there should be another layer IVI-C class driver on top of this IVI class specific driver. As in the IVI‑3.1: Driver Architecture Specification:
    Although IVI‑C class drivers export inherent,
    base, and extension capabilities, they do not actually implement them. Except
    for a few inherent functions and attributes defined exclusively for class
    drivers, class driver functions and attributes provide a pass‑through layer to
    the IVI‑C specific driver. An IVI‑C specific driver is responsible for
    implementing the operations of functions and attributes and for communicating
    with the instrument. The IVI‑C specific instrument driver contains the
    information for controlling the instrument, including the command strings,
    parsing code, and valid ranges of each instrument setting"
    So where is this IVI-C class driver and how is it created and communicate with my class specific driver?
    Thanks a lot.
    Cheers,
    IVI‑3.1: Driver Architecture Specification

  • How to I convert data from oracle database into excel sheet

    how to I convert data from oracle database into excel sheet.
    I need to import columns and there datas from oracle database to microsoft excel sheet.
    Please let me know the different ways for doing this.
    Thanks.

    asktom.oracle.com has an excellent article on writing a PL/SQL procedure that dumps data to an Excel spreadsheet-- search for 'Excel' and it'll come up.
    You can also use your favorite connection protocol (ODBC, OLE DB, etc) to connect from Excel to Oracle and pull the data out that way.
    Justin

  • Using batch convert tool on my website

    Can anyone help me out with a few questions:
    1)  How can I use Batch Convert tool on my website where I will be able to process the files with an automated process?
    2)  How and from where can I get the API to embed on my website?
    3)  I want to automate the batch conversion process so that no human intervention is required. Can I do that?
    Appreciate the answers.

    amit.wadhwa wrote:
    Can anyone help me out with a few questions:
    1)  How can I use Batch Convert tool on my website where I will be able to process the files with an automated process?
    2)  How and from where can I get the API to embed on my website?
    3)  I want to automate the batch conversion process so that no human intervention is required. Can I do that?
    The batch processor in Audition is an internal tool, not an external one so no, you can't use it on your website because it's DAW, not a web development kit. There's no API available.

  • Convert timestamp from text file (hh:mm:ss) into seconds

    How can I import a column of time stamps from a text file of the form hh:mm:ss and convert it into seconds using LabView? For example, 13:30:30 into 48630.
    Also, using the "Read from Spreadsheet File VI" I can't seem to get the entire time stamp imported correctly. Only the value before the colon is read. For example, if the timestamp reads 13:30:30, only 13 is inputed into the array in LabView.
    FYI I'm using LabView 7. Thanks!

    Here's a LV 7 example. Just a Scan From String, a couple of Multiply functions and add the results. As far as your Read From Spreadsheet issue, by default, the function creates an array of SGLs. 13:30:30 is text and the functions needs to be modified to return an array of strings. There are instructions on the diagram on how to do this. When you've made the changes, save it as a new name and in a new location.
    Attachments:
    time_to_seconds.vi ‏17 KB

  • Unable to connect to DB from OBIEE 11G

    Hello experts
    I have successfully installed OBIEE 11G on my Linux machine.. On Windows machine I have installed the client tool. Both are version 11.1.1.7.0.
    I have my Tnsname.ora file saved in both Oracle_Home/network/Admin as well as OBIEE/Oracle_BI1/Network/Admin folder..
    Now my DB is on a different linux machine, so my TNSname file has the correct entry for that..
    I am able to connect to the DB from my OBIEE server machine through Putty by doing : sqlplus username/password@instance
    However, from OBIEE side, I am not able to update rowcounts nor viewing reports..
    From RPD side, I am getting errors: The connection has failed,
    From report:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65PState: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified at OCI call OCIServerAttach. [nQSError: 17014] Could not connect to Oracle database. (HY000)
    I have tried
    http://123obi.com/2011/03/error-the-connection-has-failed-in-obiee-11g/
    The problem persists.
    Let me know what should I do to resolve this issue..
    Thanks

    Hi,
    Lets try with these once
    First copy the TNSnames.ora and sqlnet.ora files from ur Database following location:C:\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN
    and paste these two files in ur Obiee installetion following two locations:
    D:\MWHOME\Oracle_BI1\network\admin
    D:\MWHOME\oracle_common\network\admin
    Hope if it helps you..
    Please mark......

  • Error connecting to Essbase from Analyzer 7.0

    Hi,We have just installed Analyzer 7.0.1 with Essbase 6.5.5. on Windows 2003 servers. Everything seem to be working fine except when I try to define a new Essbase connection in Administrator Tools, I get this error."[1033]Native:2001 Essbase Error;nested exception is:com.hyperion.apAPException:[1033]Native:2001 Essbase Error"I'm able to connect to Essbase from Excel-Addin, no problem.Any ideas?Thanks for your help.Peter

    I would try installing the Essbase 6.5.4.2 runtime on your Analyzer server. If this is the same server as Essbase don't worry as it shouldn't effect the operation of the server process. This certainly worked with Analyzer 7.0 and 6.5.1.Hope this helps.Paul Armitagewww.analitica.co.uk

  • Convert VIs from 7.0 to 6.0?

    I suspect the response to this post will a big resounding NO from everyone, but I'm hoping I'm wrong:
    I write vi's for a University, and some students (annoying) still use LV 6.0i. I have LV versions 6.0i, 7.0, 7.1 and 8.0 on my machine. I code in 7.1 usually, and have to convert the vi's to past versions for the students. Here's my problem: although I can easily convert 7.1 back to 7.0, then load LV 7.0 to convert it from 7.0 to 6.1, I have not got LV 6.1 so I cannot load it up to then convert it to 6.0i. I notice you can only go back one version in each release so without LV 6.1 I'm stuck. Is there an easier way to create a LV 6.0i compatible vi from LV 7.1?
    Thanks everyone,
    Riggy

    Riggy wrote:
    Is there an easier way to create a LV 6.0i compatible vi from LV 7.1?
    No, not really.
    If the VIs are not too complex, you can always ask here and somebody might be able to do the down-conversion for you.
    (If the VIs are very simple, just redo them from scratch. )
    LabVIEW Champion . Do more with less code and in less time .

  • Would some kind soul convert this from lv 5.1 to 8.0+?

    Hi Guys,
    I'm running LV8.5 and it says that i cannot convert this from 5.1. Could someone convert it for me and post it?
    http://www.lauwers.com/lv.htm
    It's the Labview Toolbox that i'm after.
    Thanks.
    Phil

    Why aren't you trying to use the LV 6.0 version?

  • Convert String from ASCII to ANSI

    Hi,
    a command line instruction via LabVIEW function "System Exec.vi" retrieves me a string in ASCII format. Is there a function to convert string from ASCII to ANSII format? I use LabVIEW 8.5 German Installation.
    Kind Regards
    Christian
    Test Engineering
    digades GmbH
    www.digades.com

    Hallo Christian,
    AFAIK there is no such in function in LabView...
    But you can:
    - use "Search and replace string" to search for ASCII chars and replace them by their corresponding ANSI char, do this in a loop for all chars to be replaced (acceptable speed for small strings...)
    - convert the string to an U8 array and use a lookup table to convert all bytes from ASCII to ANSI, convert back to string (may be faster for long strings...)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • My application doesn't open or create a .dat file after I made it an executable !

    I made an application that stores some data in a .dat file. It works fine until I make the VI an executable.  Even if my program didn't find the .dat in first time, it should create, but it isn't ! What I have to do for my VI use the .dat file in exe

  • Binary file appended instead of created

    I have two machines for data acquisition. The first computer (labview 8, 2.8GHz, 1GB ram) contains a pci-6133 and pci 6052e. I am using the 6133 card to acquire 8 analog inputs at 50kHz  and the 6052E to generate a trigger pulse.  On the second compu

  • What are Channel counts and how do I get rid of them

    Hi. I'm using a program called Processing in Linux and it has trouble reading some of my QuickTime files that I created on my mac. I've been trying to figure out what coses it, the only thing I could find is that when I open up "Get Info" there is so

  • Calling webdynpro application in standard POWL

    Hi Experts, I have a requirement  I need to call a webdynpro application from the POWL ALV list when I click on the one of the cell whihc contains the link, it triggers the Feeder_class->handle_action method, Here I am creating the URL , COuld you pl

  • XSQL und BEA Weblogic  ERROR:XSQL-013

    We develop an web-application using XSQL to generate XML, which is further transformed via XSL to HTML or PDF. As IDE we use JDeveloper 9.0.3.1. Running and debugging in JDeveloper works fine. We deploy the application as war-file on bea weblogic 7.2