How to interface ADAM 4060 in Labview 7.0 ?

I got difficulties in interfacing ADAM 4060 with Labview 7.0. I have tested the device using Advantech ADAM Utility software and it working properly. So, its not hardware error or failure.
However, when I want to interface it using Labview, I couldn't make it work. Labview didnot communicate with ADAM 4060. I've try using User Libraries >Advantech DA&A > Advanve > SlowDIO > DioWritePortDword.vi, DioWritePortWord.vi and also standard srandard library, COMWrite.vi
http://docs.google.com/View?docID=0Aak_OiJCAY8kZGd2dmpiMl80NmRxNmJrc2Y2&revision=_latest
Am I using the right function? FYI, I'm Labview newby.
Can anyone please help me? Thank you in avdance.
one-kay
Solved!
Go to Solution.

Hi chelvis7,
Are you using the same set of VIs from the manufacturer as one-kay? Were you able to communicate with the device using the method discussed in the link posted by David?
If you are using an NI 485 to USB adapter (such as the NI USB-485), what version of the following software are you using (can be found by opening Measurement and Automation Explorer and expanding the Software section on the left):
LabVIEW
NI-VISA
NI-Serial
Finally what is the error message and error code that you are receiving when attempting communication?
Milan

Similar Messages

  • How do I run 4000 series ADAM Modules in LabView

    I am trying to operate up to 4 ADAM modules (2 x 4024, 1 x 4012 and 1 x 4060) through LabView 6i running on Windows XP.
    I have tried to download and use a copy of the Advantech 32-bit LabVIEW driver from a foreign, non advantech website but when installed the VI's are not accessable on the functions pallet as discribed in the accompanying literature. I am able to talk to the modules using the ADAM utility software (Version 1.53). I am also able to access the modules on Advantech Device Manager though I am not able to OP correctly using the test function.
    I am fairly new to Labview and would appreciate a step by step procedure as to where/how I should access the correct drivers and how to install them and to ac
    cess the ADAM modules. I belive that once I can get the correct VI's loaded and working I will be able to go from there. Thanks

    Attached is a VI that generates the string needed to set all relays of the ADAM 4060 using one command...
    Follow the same pattern (i.e. header format etc.) when you implement the rest of the needed commands.
    MTO
    Attachments:
    A4060_SetAll.vi ‏22 KB

  • LabVIEW St. 3.1Win: how to interface to Centronics

    I'm a novice with LV
    I made a simple ADC via centronics (ADC08831+LM35) and
    I'd to test it using Labview.
    I tried to use Serial Port Read VI
    setting up port number to 10 (LPT1?)
    with no success
    Anyone can help me?
    I haven't any DAQ card.
    Thanl You

    Hallo, Delta_Force,
    Du meintest am 15.11.00 zum Thema Re: LabVIEW St. 3.1Win: how to interface to Centronics:
    >> Reading from the LP port is tricky. How is the port configured (in
    >> the CMOS setup): SPP, EPP or ECP?
    > SPP: it's an old 486
    >> Do you know how to switch "base+0" from output to input?
    > No I don't
    From Vernon Buergs Interrupt list (port list):
    --------P-P03BC03BF--------------------------
    PORT 03BC-03BF - PARALLEL PRINTER PORT (MDA's LPT1)
    Range: PORT 0278h, PORT 0378h, or PORT 03BCh
    SeeAlso: MEM 0040h:0008h
    03BC -W data port
    03BC R- bidirectional port: input from connector
    unidirectional port: last value written to port
    03BD R- status port (see #P0658)
    03BE RW control port (see #P0659)
    Bitfields for parallel interface status port:
    Bit(s) Description (Table P0658)
    7 busy
    6 NOT acknowledge (approx. 5us low pulse)
    5 out of paper
    4 printer is selected
    3 *no* error
    2 IRQ has *not* occurred
    (PS/2) printer returned -ACK
    1-0 reserved
    Note: if bit 2 is clear (i.e. an interrupt has occurred), it is set again on
    reading the status register
    SeeAlso: #P0659
    Bitfields for parallel interface control port:
    Bit(s) Description (Table P0659)
    7-6 reserved
    7 (see PORT 037Bh bit 7)
    5 (PS/2) enable bidirectional port
    (also requires enabling via PORT 0102h)
    4 enable IRQ (via -ACK)
    3 select printer (SLCT IN line)
    2 =0 initialize printer (-RESET line)
    1 automatic line feed
    0 strobe (must be set for minimum of 5 microseconds)
    SeeAlso: #P0658
    --------V-P03BF------------------------------
    PORT 03BF - Hercules configuration switch register
    Note: can also be found on EGA and VGA clones in Hercules emulation
    03BF -W configuration switch register (see #P0660)
    03BF -W (ET4000) Hercules compatibility register (see #P0661)
    03BF RW (Genoa SuperEGA) miscellaneous register
    Note: only available in MDA, HGC, and CGA emulation; should be
    compatible with Hercules configuration register, but may contain
    additional features
    Bitfields for Hercules configuration switch register:
    Bit(s) Description (Table P0660)
    7-2 reserved
    1 =0 disables upper 32K of graphics mode buffer
    =1 enables upper 32K of graphics mode buffer
    0 =0 prevents graphics mode
    =1 allows graphics mode
    SeeAlso: #P0661
    He describes Port 03bch, Port 0378h ("LPT1") and 0278h ("LPT2") act in
    the same way.
    On a SPP port you cannot read from (base+0), you can only use some of
    the status lines from (base+1).
    Viele Gruesse!
    Helmut

  • How to pass a pointer in labview library call function by using dll programmed in Labwindows​?

    Hi,
    I'm trying to interface a camera with Labview.  However, the camera can only be programmed by C, so I'm using Labwindow CVI.
    I need to pass a camera handle from one function to another, eg. from a opencamera function to setparameter function.  
    /* Load the Qcam driver and Open the First Camera */
    void DLLEXPORT LoadDriverAndOpenCamera()
    QCam_CamListItem cameraList[10];
    unsigned long cameraListLength=sizeof(cameraList)/sizeof(cameraL​ist[0]);
    //load the driver
    QCam_LoadDriver();
    //get a list of the cameras
    QCam_ListCameras(cameraList,&cameraListLength);
    //listLength is now the number of cameras available
    QCam_Handle hCam;
    //Open the first camera in the list
    QCam_OpenCamera(cameraList[0].cameraId, &hCam);
    Apparently, caemraId is an unsigned long (unsigned 32-bit in Labview 2012 32-bit? ) and QCam_Handle is defined as void*, so it's a pointer that points to an unsigned 32-bit.
    When I only use C for programming, I can pass hCam variable to other functions as long as it's declared as global variable.  Ex, the next function can be void SetParameter(QCam_Handle hCam).  However, here I'm trying to make a dll by Labwindows/CVI and then call LoadDriverAndOpenCamera() function through library call in Labview.  
    My question is:  How can I pass hCam to other functions in the same dll?  Do I have to add paramter to the function? For example:
    void DLLEXPORT LoadDriverAndOpenCamera(unsigned long cameraId, QCam_Handle* cameraHandle)
    And then add two lines:
    cameraId=cameraList[0].cameraId;
    cameraHandle=hCam;
    into the function?  Then I can pass cameraHandle out?  However, hCam will still have void* type.
    Even if that's the case, how can I set up library call node on Labview?  In the arg parameter set up, I don't see pointers?  It seems I cannot set up an output node to be a pointer that points to a unsigned long.
    Thank you very much for your help!
    Best,
    Charles
    Solved!
    Go to Solution.

    Hello Charles, 
    I noticed you posted a similar question here. do you have any further questions about using the call library function node? 
    Haley N
    Applications Engineer
    National Instruments

  • How to call another program from LabVIEW?

    Hi!
    Is there anyone that can answer my question? I have found a similar thread where the user needed to call labVIEW from some program but I want to do the opposite.
    I made a program in labVIEW that communicates via COM-ports (serial communication) with the processor I use at the job (Ubicom´s IP2022).
    Now I want to add more funcionality to this program. I want to be able to program re-program IP2022 through this LabVIEW application.
    The programming is done via an Ethernet-dongle. I start a program called IP2kProg, I write the ip-address of the dongle and the program-file (.elf) downloads at this address. But how can I do this from
    LabVIEW, do I need to open IP2kProg or can I send some values to it via LabViEW?
    Ant suggestions?
    Thanks, Amir

    Amir,
    There are couple of options:
    1.  If your IP2kProg program has a command-line interface, you can use LabVIEW's System Exec.vi and send the commands and parameters to it. 
    2.  If the IP2kProg has an API / exported functions, you can call them from LabVIEW using the Call Library Function Node. 
    Hope this gives you some ideas. 
    -Khalid

  • 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

  • Interface between paravision and labview

    Hi,
    Does any one here who can help or give some idea how to make an interface between paravision and labview software???I need to acquire captured MRI image from paravision and store it to Labview.
    I would appreciate for any kind of assistance.
    Kind Regards,
    Jasim

    Hi Jasim,
    Could I get a little more information about how you are importing the MRI image into LabVIEW?
    1) How are you getting the MRI image into LabVIEW?
    2) What image format will the image be in?
    3) What will you be doing to the image once it is in LabVIEW?
    Best Regards,
    Bill
    Bill E. | Applications Engineer | National Instruments

  • Interfacing Beckhoff EK1100 with LabVIEW without using any other hardware

    Hello All,
    I'm new to Beckhoff & I have EK1100 with EL2809 & EL3054. I want to interface with EK1100 with LabVIEW with PXI or cRio or any other hardware.
    Is there anyone who can explain how?
    I'm using the following sofwares & drivers.
    LabVIEW2012
    EtherCAT Acquisition Driver
    EtherCAT Acquisition Library for LabVIEW
    TwinCAT ADS Library v3.0.3
    Please suggest at the earliest.
    Regards'
    Love Diwan |+91-9810013576

    cross post
    Jesse Dennis
    Design Engineer
    Erdos Miller

  • How to load .wav files in LabView and vi for TDM,FDM,QP​SK,ASK

    Hello
    I am doing my project in LabVIEW that is VIRTUAL TELEPHONE COMMUNICATION SYSTEM
    AND APPLICATION OF LABVIEW IN ADVANCE COMMUNICATION TECHNIQUES.I have implemented every block till date but for the rest part of my project that is advance communication techniques i need vi for QPSK,TDM,FDM,ASK and I just wanted to know how to load .wav file in LabVIEW
    Please assist me for this
    Attachments:
    Telephone communication process.docx ‏25 KB

    Hi Dilpreet,
    reading wav files is easy using the functions from the sounds palette...
    For your other tasks you could use a seperate toolkit or do some programming on your own!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I have a dll file, i want to send messages from this to the device ,how can i do it in labview

    Hi,
    I am a new user of labview.
    I got Vector Card, DUT, DC Power supply and .dll file. Hoe can i connect dll file and hoe to senf the information to the device,
     i want to send/receive a message to that device . and measure temperature , humidity of the device. is any one can help?
    i have a .dll file, i want to send messages from this file to the testing device ,how can i do it in labview?

    Dear Sandy,
    How are your DUT, Vector Card and your PC connected?
    What vector card is this?
    There are a huge amount of Knowledge base articles that you can access from www.ni.com.  Simply go to the website and do a search on dll, etc.
    There are also a lot of example problems shipped with LabVIEW that will be very helpful for you to learn from and to modify to meet your needs.  Go to File»Find Example ....
    There are LabVIEW classes taught locally as well that are very helpful.  If you're interested I can arrange for you to receive an email with info about it.
    Sincerely,
    Sammy Z.  

  • How to make load simulator using labview 2010

    i want to ask how to make load simulator using labview? 
    Solved!
    Go to Solution.

    what have you tried so far? and exactly what is it your tying to do?
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

  • How to make PWM signals In Labview 7.1

    How to make PWM signals In Labview 7.1, Could someone give me .vi for examples. Thank you.

    There is a shipping example that shows PWM if you have installed
    NI-DAQmx.  You can open the example through Help >> Find
    Examples >> Hardware Input and Output >> DAQmx >>
    Control >> General PWM-Counter Output VI.
    Good luck!
    Micaela N
    National Instruments

  • How to load DLL library on Labview?

    Hi
    I have an application that is working well in Visual C++ 2012. I would like to load the dll library on labview and to execute the code on labview. I have only the DLL file, the working application and the help file. Is it possible to realise this task on labview using Call Library Function Node.
    I have par example the following code in .cpp file:
    void CMTBClientUsingCOMDlg:nBnClickedConnect()
    // TODO: Add your control notification handler code here
    try
    // login to MTB, using english language
    m_MTBConnection->Login(("en"), &m_ID);
    // get MTB root (forcing an internal QueryInterface() on IMTBRoot!)
    m_Root = (IUnknown*)(m_MTBConnection->GetRoot((BSTR)m_ID));
    // ask root to return the number of devices
    int count = m_Root->GetDeviceCount();
    // list all devices
    for (int i=0; i < count; i++)
    _bstr_t name = ((IMTBIdentPtr)m_Root->GetDevice(i))->GetName();
    m_ComboDevices.AddString(name);
    if( m_ComboDevices.GetCount() > 0)
    m_ComboDevices.SetCurSel(0);
    OnCbnSelchangeDevices();
    m_BtnConnect.EnableWindow(false);
    m_BtnDisconnect.EnableWindow(true);
    catch(_com_error e)
    // connection close
    OnBnClickedDisconnect();
    DisplayError(&e);
    How to execute this code on labview?
    Best regards

    Hi
    I have attached the help file describing the dll library (MTBApi.dll). My working program made on Visual C++ Dot Net is very big and therefore I can’t attach it.
    In my header file I import at the beginning the dll library on this way:
     #import "MTBApi.tlb" named_guids
    using namespace MTBApi;
    Than I have a class:
    class CMTBClientUsingCOMDlg : public CDialogEx
    public:
    CMTBClientUsingCOMDlg(CWnd* pParent = NULL); // standard constructor
    ~CMTBClientUsingCOMDlg(); // standard destructor
    enum { IDD = IDD_MTBCLIENTUSINGCOM_DIALOG };
    protected:
    virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
    protected:
    HICON m_hIcon;
    IMTBConnectionPtr m_MTBConnection;
    IMTBRootPtr m_Root; 
    CComBSTR m_ID; 
    IMTBChangerPtr m_Changer; 
    IMTBDevicePtr m_Device;
    DECLARE_MESSAGE_MAP()
    public:
    afx_msg void OnBnClickedConnect();
    CButton m_BtnConnect;
    In my .cpp file I have:
    CMTBClientUsingCOMDlg::CMTBClientUsingCOMDlg(CWnd* pParent /*=NULL*/)
    : CDialogEx(CMTBClientUsingCOMDlg::IDD, pParent)
    m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
    CoInitialize(NULL);
    try
    // create an instance of the connection class which can connect to the server
    m_MTBConnection = IMTBConnectionPtr(CLSID_MTBConnection);
    catch(_com_error e)
    CMTBClientUsingCOMDlg::~CMTBClientUsingCOMDlg()
    void CMTBClientUsingCOMDlg:isplayError(_com_error* e)
    void CMTBClientUsingCOMDlg:oDataExchange(CDataExchange* pDX)
    CDialogEx:oDataExchange(pDX);
    DDX_Control(pDX, IDC_CONNECT, m_BtnConnect);
    BEGIN_MESSAGE_MAP(CMTBClientUsingCOMDlg, CDialogEx)
    ON_BN_CLICKED(IDC_CONNECT, &CMTBClientUsingCOMDlg:nBnClickedConnect)
    END_MESSAGE_MAP()
    BOOL CMTBClientUsingCOMDlg:nInitDialog()
    CDialogEx:nInitDialog();
    void CMTBClientUsingCOMDlg:nPaint()
    void CMTBClientUsingCOMDlg:nBnClickedConnect()
    try
    // login to MTB, using english language
    m_MTBConnection->Login(("en"), &m_ID);
    // get MTB root (forcing an internal QueryInterface() on IMTBRoot!)
    m_Root = (IUnknown*)(m_MTBConnection->GetRoot((BSTR)m_ID));
    // ask root to return the number of devices
    int count = m_Root->GetDeviceCount();
    // list all devices
    for (int i=0; i < count; i++)
    _bstr_t name = ((IMTBIdentPtr)m_Root->GetDevice(i))->GetName();
    catch(_com_error e)
    // connection close
    My question is how to start this code in labview. How to write the function in labview, par example this function:
    m_MTBConnection->Login(("en"), &m_ID);
    Best regards
    Attachments:
    MTBApi.zip ‏1935 KB

  • How to interface with ROWID column in DB2?

    I'm using DB2 version 7.1.
    I have a column in a table called ROWID, and the Data Type is ROWID. However, I don't know how to interface with it in Java. For example, for CHAR and VARCHAR, I use the String class. For SMALLINT, I use int, etc. But what do I use for ROWID? It's not in the java.sql.Types list. The DB2 manual says it is stored as a VARCHAR(17), but I didn't just want to assume I could use String.
    Any thoughts?

    try getObject() and see what kind of object you get:
    ResultSet rs = statement.executeQuery("...");
    while(rs.next()) {
      Object o = rs.getObject(1); // the rowid column
      System.out.println(o + " class: " + o.getClass().getName());
    }

  • How to connect adam-4521 with lookout

    helow can any one help me ?? how to connect adam-4520(acquistion module) to lookout 6.1 , iwant to read  card by card reader & probe senser  into lookout program
    thanks

    helow can any one help me ?? how to connect adam-4520(acquistion module) to lookout 6.1 , iwant to read  card by card reader & probe senser  into lookout program
    thanks

Maybe you are looking for

  • Where can i get the position numbers and postion text' ot pernr's

    now i am getting position number from pa0001.., so if want to take that position text  where can i get that informaiton .. i mean which table having that positoin and their text.. can  anybody tel me... Moderator message: please search for available

  • Restarted and received a blinking file folder with question mark image.

    I left my computer sitting while I was working on homework long enough for the screen saver to come on (I'm not sure exactly how long it was). Earlier in the day, I had to force quit safari and then later it unexpectedly quit several times. While my

  • How to Remove Edit permissions to a group/user when an list item is approved.

    Hi, We have a requirement of removing the edit permissions on custom list item when a item is approved, this I have to implement using OOB feature or customization and designer, but no code should be involved. Can anyone please suggest me to implemen

  • BP Relationship Number Ranges

    Hi, What is the use of BP relationship number ranges in t.code BUB9? where is it used? Appreciate your inputs. Thanks SK

  • IMovie importing problem

    My boyfriend and I both have iMovie 11. He has a Mac Book Pro - I have an iMac...nearly twice the computer. He can import my MOV files from a UBS drive into iMovie and I can not. When I open the USB to import the files to my computer -- the files are