Interface AFG3102C with LabVIEW 2 channel mode

Hello guys, I got  this  device AFG3102C ( dual- channel signal  generator)  connected  to Labview with  drivers and Vi's  from exemple,  but Ithis  VI can't  set   both  channel's  output on. When i set  channel 1 and I send data to be changed to  device, the other  channel  is  set  automaticaly off, and reverse. How can i solve this? This is my VI.
Regards!
Attachments:
generator_semnal.vi ‏24 KB

I can't say for sure because you didn't Include the actual driver VIs, but my suspicion is that the problem lies in how you are using the drivers.  In both cases when you go to write to a channel the first thing you do is initialize the box -- which probably turns off the outputs...
Mike...
PS: Look into event driven programming, it will significantly simplify your code...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • Interfacing Zigbee with Labview VIA RS232

    Hello all! I have a question that might be pretty simple. I am currently a student and am just getting into LabView for a senior project that I have to do with a team. We've run into a bit of a problem though. We can't get the Zigbee that is plugged into the RS232 board to be seen by MAX, and since we can't get it to show up in MAX I have a feeling we're not going to be able to get it into the VI.
    Does anyone know how to get the information that's coming in via the Zigbee to be placed into a blank VI?
    Thanks in advance!  

    I'm sorry for taking so long to get back to you on this but my team kind of gave up on this project for a little and have come back to it only to find that we've hit the same roadblock and can't figure this out at all.
    Let me try and explain what our project is doing so that hopefully it'll be easier for you to help me. We're going to be pulling brain waves off of a person those waves are going to be stuffed into an ATD that is built into the MC9S12 microcontroller. From there the output of the microcontroller is going to go into pin two on the Zigbee. All of this is completely devoid of a computer. Then on the laptop's side we're going to have a Zigbee plugged in to the RS232 chip and it's going to be picking this data up. I'm trying to get this data into LabView and then display the brain waves onto a waveform graph. The main issue right now is getting the digital data into LabView somehow. I mean the Zigbee is plugged in via USB (on the RS232), but I don't know what I need to use to get it into my program.
    I've checked the resources on the Learning Center and perhaps I'm just blind but I cannot find anything on there that pertains to my question and none of the online courses I've seen have anything on VISA programming with the Zigbee module if that's actually what I need to do.
    Furthermore, after we figure out how to get the Zigbee into LabView my team is going to have to figure out how to split the three signals that are being broadcasted to be split and sampled at different times.
    Got a feeling my team and I might have bit off way more we can chew right about now. :/ 

  • Can you interface MATLAB with Labview??

    Can Labview activate m-files on MATLAB (while the MATLAB is running obviously) and can the two programs exchange data?
    if so how is this done??
    Thanks for everything!

    I encourage you to search NI's Developer Zone for "MATLAB" - there are numerous resources available, including some threads in these forums.
    On Windows, LabVIEW offers the MATLAB script node. It works much like the LabVIEW Formula Node, except that you paste an m-script into the node. LabVIEW passes the script to MATLAB through MATLAB's ActiveX interface. MATLAB does the processing, and gives the results back to LabVIEW. You can then use the results in your VI.
    Steven H.

  • Interfacing robot with labview with SBRIO 9631

    i am working on a project of AUTOMATED GUIDED VEHICLE (PEOPLE MOVER)... i  need help regarding programming the vehicle for its autonomous operation on a pre planned path, which we have decided based on the  application... we have to control two DC motors, one servo for steering, and there should be obstacle avoidance .. if any obstacle there the vehicle should stop until the path is cleared , and it has to stop in the respective pre planned stations,which is at certain distances , for certain time delay  (say 10 sec- to drop the peple in those stations) . based on the people's input who's travelling on the vehicle, we have to stop the vehicle in the stations .. we have to get input from the user onborad , by providing physical key pads.
    in our college we have sbrio 9631, can we use this for programming ... and if so how to start the work.. ? it would be great if anyone helps to start this project...

    Duplicate post.

  • Arduino interface with labview: not able to upload lvifa base file

    guys, you have to really help me out on this one i have been at it for days. i am new to this so please help me out. i have an arduino uno with atmega8 on it and i m trying to interface it with labview but everytime i tried to upload the lvifa base file it shows and error, and it reads "XYZ is not declared in this scope".
    AFMotor.cpp: In function 'void initPWM1(uint8_t)':
    AFMotor.cpp:87: error: 'TCCR2A' was not declared in this scope
    AFMotor.cpp:87: error: 'COM2A1' was not declared in this scope
    AFMotor.cpp:88: error: 'TCCR2B' was not declared in this scope
    AFMotor.cpp:89: error: 'OCR2A' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM1(uint8_t)':
    AFMotor.cpp:108: error: 'OCR2A' was not declared in this scope
    AFMotor.cpp: In function 'void initPWM2(uint8_t)':
    AFMotor.cpp:124: error: 'TCCR2A' was not declared in this scope
    AFMotor.cpp:124: error: 'COM2B1' was not declared in this scope
    AFMotor.cpp:125: error: 'TCCR2B' was not declared in this scope
    AFMotor.cpp:126: error: 'OCR2B' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM2(uint8_t)':
    AFMotor.cpp:146: error: 'OCR2B' was not declared in this scope
    AFMotor.cpp: In function 'void initPWM3(uint8_t)':
    AFMotor.cpp:162: error: 'TCCR0A' was not declared in this scope
    AFMotor.cpp:162: error: 'COM0A1' was not declared in this scope
    AFMotor.cpp:162: error: 'WGM00' was not declared in this scope
    AFMotor.cpp:162: error: 'WGM01' was not declared in this scope
    AFMotor.cpp:164: error: 'OCR0A' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM3(uint8_t)':
    AFMotor.cpp:184: error: 'OCR0A' was not declared in this scope
    AFMotor.cpp: In function 'void initPWM4(uint8_t)':
    AFMotor.cpp:202: error: 'TCCR0A' was not declared in this scope
    AFMotor.cpp:202: error: 'COM0B1' was not declared in this scope
    AFMotor.cpp:202: error: 'WGM00' was not declared in this scope
    AFMotor.cpp:202: error: 'WGM01' was not declared in this scope
    AFMotor.cpp:204: error: 'OCR0B' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM4(uint8_t)':
    AFMotor.cpp:224: error: 'OCR0B' was not declared in this scope
    I tried different arduino IDE versions as well, it not working out.
    Thanks!

    https://decibel.ni.com/content/groups/labview-interface-for-arduino?view=discussions

  • Webcam interface with labview

    Hello all,
    I need to interface webcam with labview 2011,
    My requirement is as follows,
    1. Capture the image read by webcam using labview.
    2. Store it in local harddisk
    3. Compare it with standard image stored in PC and decide whether read image is OK or not.
    I am completely new to IMAQ and went through forum also. Can you tell me what are the steps to do this, how to getting started. What software I need to install for this,link and which webcam is good for this.
    Thanks
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet

    1. If you are using a webcam, ensure that the camera is compatible with DirectShow, and that the camera driver is installed and functioning.
    2. You will need to install the Vision Acquisition Software. The software features the activation-based NI-IMAQdx driver for acquiring from DirectShow-compliant devices. A license for this software is included with all NI vision hardware and all NI vision software licenses, and is also sold separately for applications that do not require image processing or specialized hardware.
    3. I am not sure how you are 'comparing' the acquired image with the image that is stored in the harddisk. But, if you want do machine vision & image processing, then you will need the Vision Development Module. In general, VDM functions are to be used for post processing images. Some example functions are: pattern matching, particle analysis, edge detection, thresholding, histograms, and optical character recognition. This module includes the VAS that was described earlier.
    4. There are lots of examples that are shipped with the software to help you understand and achieve what you are trying to do.
    Here is a good article that describes the different vision software provided by NI:
    What is the Difference Between Vision Software VDM, VBAI, and VAS?
    NI Vision Software Comparison
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Is LabVIEW in evaluation mode more slowly?

    Hello,
    I tried my LabVIEW 8.2 program on a PC with LabVIEW in evaluation mode. I was surprised how slowly the program was. After activation from LabVIEW the program runs much quicker. I will often install LabVIEW by customers in evaluation mode during the implementation phase.
    So it's important for me to know if LabVIEW is in evaluation mode noticeable more slowly than after activation.
    Thanks for answers
    Thomas Bartels

    I have not noticed any speed differences between licensed and evaluation modes.
    R

  • How can I access CAPI 2.0 methods with LabView ?

    I must use CAPI 2.0 (common ISDN interface) method with LabView (graphical interface), the work is to command a ISDN S/T card on PXI Bus, and this card support CAPI 2.0.

    This depends upon what type of interface you have to the ISDN. I assume you have either Basic Rate Interface (BRI) or Primary Rate Interface (PRI). Do you have a DLL to control it? If so, you can use the "Call Library Function Node" VI to access this DLL and just make calls to it. If you have an ActiveX Server, you can use the LabVIEW ActiveX Automation VIs to access it.
    J.R. Allen

  • Using Agilent 82357a with Labview

    Is it possible to use Agilent 82357a USB-GPIB interface board with Labview
    Linux version 7 ?

    Hi
    I just installed Labview 7.1 for linux on my machine after throwing away (not literally !) the Agilent card and borrowing an NI PCI-GPIB card. This works with kernels 2.4.x (tested with /usr/local/vxipnp/linux/NIvisa/NIvisaic). However, for proper operation of my machine (have bad display and mouse problems with the old kernel)  I need kernels 2.6.x. The driver in /usr/local/nigpib complains that it cannot work with those. I tried hacking the INSTALL script but it keeps running up against differences (like the modversions.h file) between the two kernel series.
    Can I use a newer version of the gpib libraries for linux with an older version of Labview like I am using ? I guess I will also need to get newer versions of the visa drivers for that. Though, the labview installation went smoothly with kernel 2.4.27-3 on my Debian system, I know that the newer versions of nigpib (is that the same as ni48825L.iso ?) and NIVISA are not supported on Debian. I cannot reinstall with a different distro, so please do not suggest that.
    Any other suggestions ?
    Thanks.

  • Change Adam I/O (Channel) mode with LabVIEW(Adam 6060 or 6000 / Modbus)?!!

    Hello!
    Know somebody how can I change my Adam input or output mode with Labview and modbus command?!!
    (for example from counter --> DI or DO --> Pulse)
    tanx!
    Ali

    I have never used the 6000 Series from adam but in the 4000 series, changing mode was not done while the system was running, it required putting the device in init mode (usually through grounding the init pin) then sending the command to change settings like the channel scale, input vs output or the device address.  Also although the 4000 series was 485 multidrop it was and used addresses, it did not use Modbus but a simple string language in as defined by the manual.  This might be different for the 6000 series, but again I have only experience with the 4000 sereis (4017, 4018, 4050 ....)
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Interface of Allen Bradley PLC with LabVIEW using TCP\IP modbus protocol

    Hello.....
    I want to connect a Allen Bradley PLC with LabVIEW using TCP\IP modbus protocol.
    The PLC which I am using is a series of 1766BWA (Allen Bradley) please can you help me for the same or please give me suggestion.
    Also I want to know the resistance values of this PLC.
    Thank you.

    Hello
    I was trying for connection of a Allen Bradley PLC with LabVIEW using TCP\IP modbus protocol.
    Here I am attaching the snapshot of PLC interfacing and communication vi using modbus but it is not working
    For reading we use setting shown in CHANNEL 1-modbus but it gives error regarding modbus addressing
    and for writing it shows error illegal address please help me for the same.
    Thank you.
    Attachments:
    PLC_SCREEN.zip ‏261 KB
    Modbus_(Read-Write).zip ‏14 KB

  • Interface with LabView

    I am a very new to LabView--
    We are developing a board to interface with LabView devices- (ideally, the board would have a GPIB connector).  We would like to use LabView to simulate various conditions on the Interface board by controlling switching (board MOSFETs) and then use a GPIB controlled multimeter to read voltages coming out of the Interface Board). 
    Since the Interface Board we are working on does not have an "address", is it possible to use LabView to communicate with it (send output signals to the board and read signals from it)?  What is often done to have LabView controlled devices communicate with external circuitry ?
    Thanks,
    Alex  

    Alex00 wrote:
    What would be an advantage of an interface controller (such as 4823) over a DAQ card (such as PCI-6013)?  If we only need about 6-8 inputs (Digital I/O) and maybe about 6 Analog outputs, wouldnt the 6013 be sufficient to interface with our PCBA?
    In your original post, you indicated that a GPIB interface would be ideal. ICS Electronics makes various models of controllers that provide a GPIB SCPI command interface to digital and or analog I/O. This controller can be placed inside the instrument rather than inside a PC and would use GPIB to connect (as you requested).
    I have personal experience with the 4823, which can be used to control/monitor TTL devices on a byte-wise basis. Since you have digital and analog requirements, you could look at the ICS 4807 DAQ board. It may not have enough analog outputs though...
    The only reason I originally responded was your GPIB requirement.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • I want to interface third party/NI Webcam with Labview .

    In my application i want to interface 3 NI / Third party WEBCAMS on TCP/IP with Labview 8.6 on host PC having Windows XP OS.
    I am using Compact CRIO 9704 hardware with real time deployment module.
    For interfacing webcams which drivers i required? OR Any deployment module is available in NI?
    Please suggest.
    Thanks in Advance.
    Sachin

    Hi Sachin,
    These cameras will be interfaced throught ethernet or USB. Will they be connected to the PC running Win XP or are you looking to interface them with the cRIO.

  • How to creat the interface of auto CAD file with labview

     Hi
    I have been controling  2-axis Piezo motor  with labview. Now I have to use the dwg or dxf file  to move the piezo controller axis. How I can  transform the  dwg or dxf  file into  decimal number 1, -1   to create interface with my labview.

    Hi Nusrat,
    So it sounds like you want to create a CAD drawing and then control your piezo motor via LabVIEW by moving the CAD drawing?  Is that correct?
    If that is correct - I don't know of a way to do this I'm afraid.  I don't think it's really possible.
    The only potential way to do this is to use SolidWorks as your CAD program and then convert the SolidWorks drawing into an STL file, which can then be imported into LabVIEW as a 3D picture control.  I can't think of any other way to achieve this.
    These examples might help you:
    LabVIEW Interface VIs for SolidWorks
    STL Geometry in 3D Picture Control
    The Pitch Perfect Tuner
    Develop Motion Applications with RIO and SolidWorks
    NI SoftMotion for SolidWorks
    Connect NI LabVIEW and DS SolidWorks
    I hope that helps.
    Oli
    LabVIEW Student Ambassador
    National Instruments UK

  • Warner/superior electric's SS2000PCi motion controller interfacing with LabVIEW 6i

    Sir,
    In our application, we are controlling the movement of X-Y arm on the X-Y table. For this we are using superior electric products:
    (a) Slo-Syn SS2000PCi Programmable Step Motor Controller
    (b) MD808 Motor Drive
    We are using two such controllers and motor drives to drive two 2 Amps Sanyo Denki Stepper motors: one each along X-axis and Y-axis. Along with the arm movement a data acquisition also has to be carried out. So, the motion control and Data Acquisition has to be synchronized by means of software. The problem now is to program the controller. Though MCPI Version 4.41 is there, we want to program the controller in LabVIEW 6i so that we can synch
    ronize both motion control and Data Acquisition.There is no driver which is compatible to LabVIEW 6i.
    Is there any 32-bit DLLs for this controller? If any one has these dll's please let me know. My E-mail ID: [email protected]
    So that i can call these DLLs in LabVIEW 6i and program it.Or else send me at least the detailed low level command sets of the controller in pdf format so that i can develop our own drivers.
    Regards,
    Nagendra

    Nagendra,
    Unfortunately, I was unable to find any helpful resources for you based on a cursory web search. I recommend that you contact the manufacturer of the hardware and ask them if they have a driver (DLL) that you can use to interface with LabVIEW.
    Good luck with your application, and have a good day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

Maybe you are looking for