Implementi​ng PLL in FPGA LabVIEW

Hello,
I want to implement PLL in FPGA by refering to the example(the file is attached).
I've modified the example, so that it can work in single phase PLL (the file is attached).
However, it is not working.
To be honest, I'm new in LabVIEW, so just have very little knowledge about this software.
Attachments:
[FPGA] NI GPIC Basic Inverter Control v01.vi ‏291 KB
test3_acdc.vi ‏203 KB

Hi,
Could you provide some more information? 
1.) What do you mean by it is not working? Possibly some more information, error codes, screen shots etc.
2.) At what point is it not working?
4.) Did the example work?
        If the example did work, it might be worth going back to that and seeing if it will run at each stage of development. You will then be able to pin point the change that gave you the error.
3.) What hardware are you using?
Good Luck with LabVIEW!
James O'Neill - Applications Engineering - National Instruments

Similar Messages

  • How to implement an ActiveX server in LabVIEW

    My task is to implement an ActiveX server in LabVIEW 8.0 that will be called from a data management software (DXE).
    The LV server will take care of data acquisition and control.
    I have been looking for tutorials and example code at the NI developer zone and elsewhere without any progress. Information is either to general or code is to old (LV 5.1) to give any help.
    Please, show me to a good example of an ActiveX server in LV 8 properly commented or with attached explanations.
    Alternatively, suggest any tutorial, short course or books with practical instructions.
    Specific information is most welcome.
    I suppose that it is possible to write a ActiveX client in LabVIEW to verify the functions of the ActiveX server ?

    rolfk wrote:
    skalis wrote:
    Thank You. Good to know that I am on the right track.
    However,
    Your sentence "If You look at the several shipping examples..." make me
    little concerned. I am not able to find any example of a LV ActiveX
    server in my LV 8.0 installation. I would be very grateful of You can
    send me any.
    Basically you can not create your own
    Active X server with your own object hierarchy and methods in LabVIEW.
    LabVIEW however can export a predefined Active X server interface that
    is just another access method to its internal VI server interface.
    With this interface you can determine what VIs are available to
    control, load specific VIs from disk if you know their path and,
    execute those VIs and passing parameters to it and receiving outputs.
    So if your software allows you to script the Active X access to an
    Active X server in some ways such as VBA or similar you should be fine.
    If your software expects a specific Active X interface you have to
    implement in the server application, you are out of luck with LabVIEW,
    without using an external component such as an extra Active X server
    DLL that translates between the expected interface and the exported
    LabIVEW interface. But this last method is quite likely not worth the
    hassle.
    Rolf Kalbermatter
    While I did follow the link mentioned above and found the Interop.LabVIEW.dll that is included in the C# project for the purpose of calling VIs from C#, I am frustrated that these methods are 'buried' in a .dll that you have to go and find on the NI web site, and are not ActiveX methods that are available in an ActiveX Object that is installed when you install LV 8.20 PDS. 
    Rolf, I don't know that you will get this email, but are you refering to the methods inside of the Interop.LabVIEW.dll in what you are saying above, and if so, how did you become aware of this .dll? 
    Is anyone aware of any documentation for these ActiveX methods?
    Thanks,
    Wes
    Wes Ramm, Cyth UK
    CLD, CPLI

  • How to implement a StateSpace-Controller in Labview

    I have to implement a StateSpace-Controller in Labview. What is the
    best way of doing it?
    I have tried two versions -- a continous SS-Controller and a discrete
    Version. The Problem is, they show different results, and I can't find
    the mistake.
    If you have a solution at hand, I would appreciate if you could send
    me the file!
    Thank you very much!

    I started a post to your other thread:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HFORCEKWTID=65816:5&HOID=506500000008000000B4900000&HExpertOnly=&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

  • FPGA LabVIEW 2011 Compilation Crash - I/O Node

    When I try to compile this FPGA LabVIEW code then LabVIEW crash every during" Generating Intermediate Files"
    It don't like these "FPGA I/O in" variables in FPGA I/O Node.
    Constants "POT_net_1_x" are same standard DIOs.
    Hardware: PXI-7841R
    Solved!
    Go to Solution.

    Hi JCC,
    Glad you got it to compile, it may have been that LabVIEW got a corrupted file somewhere in the project that was causing an issue and by rewriting the code you bypassed this problem.
    If the further problems relate to a problem with FPGA compilation then you could post them here, otherwise it is probably best to create a new thread with a title that relates to that problem, that way other people will know what the thread is about and it they know the answers or have suggestions they will help.
    Kind regards,
    James W
    Controls Systems Engineer
    STFC

  • Reed Solomon decoder error fpga labview

    i' d like to implement reed solomon decoder using labview rf communication library 3 and the following error occured any help ?!
    Attachments:
    Host.PNG ‏15 KB
    Target.PNG ‏26 KB
    error1.PNG ‏54 KB

    Hello Zainabmaghraby,
    I think this question might be better suited for the NI Labs community group as the message boards don't seem to host this line anymore. 
    NI Labs Community Group:
    https://decibel.ni.com/content/groups/ni-labs
    NI Labs Discussions (post here):
    https://decibel.ni.com/content/groups/ni-labs?view​=discussions
    I hope this helps,
    Eric-E

  • Parallel to serial conversion for implementing FSK modulation on fpga

    I want to implement FSK modulation in LABview FPGA using the arithematic VIs. My bit rate is 625 kbps and sampling rate of the waveforms i utilize is 80 MHz.(for 0 i use 1.25 MHz and for 1 2.5 MHz). I want to take AUDIO input from computer and modulate it and then transmitting it into the air. Modulation has to be done in FPGA Vi. Now i want to convert the sample values coming at particular rate to bits (parallel to serial conversion) representing the samples these bits should come one by one at the rate of 625 kbps to select vi which would select the waveform depending on zero or one on its select port. I want to know how parallel to serial conversion can be done in labview
    KAMRAN ZIA
    UNGERGRADUATE STUDENT (AVIONICS)

    Hi Kamran,
    With respect to the first issue, it should be relatively straightforward to generate the signal you want. In your FPGA code, I would assume that you have a sine wave generator. In the configuration screen, you can elect to show the frequency terminal. you can generate a certain amount of data (whatever you require) and then when the FPGA loops again, generate the next section of waveform based on the bit you want to output.
    a few documents on our website include:
    http://zone.ni.com/devzone/cda/tut/p/id/3253
    http://decibel.ni.com/content/docs/DOC-5412
    http://forums.ni.com/t5/Real-Time-Measurement-and/Simple-FSK-signal-generation/m-p/783361?requireLog...
    With respect to the second issue, there are many many ways to do it. I have attached a very basic example which shows you one such option. It takes a U8 (a single byte) and spits out each of the contained bits at 40 MHz.
    Thanks,
    D Smith
    Attachments:
    parallel to serial FPGA.vi ‏26 KB

  • How to implement a callback function using LabView's Call Library Function Node?

    I am trying to call a fuction from a SDK.dll library using the Call Library Function Node. The SDK was provided to
    me and I do not have the source code, just the .dll and .h files.
    The SdkSetPropertyEventHandler function has a callback fuction as one of its parameters. How do I implement the
    callback using the CLF node? I am a good LabView programmer but this is my first time using the Call Library
    Function Node. I have read all the info I can find on NI's web site and the discussion board but cannot figure
    this one out. I am using LabView 8.6.
    The SDK.h deacribes the function as:
    //  Function:   SdkSetPropertyEventHandler
    SdkError SDKAPI SdkSetPropertyEventHandler(
                SdkCameraRef                    inCameraRef,
                SdkPropertyEvent                inEvnet,          
                SdkPropertyEventHandler         inPropertyEventHandler,
                SdkVoid*                        inContext );
    //  Description:
    //       Registers a callback function for receiving status
    //          change notification events for property states on a camera.
    //  Parameters:
    //       In:    inCameraRef - Designate the camera object.
    //              inEvent - Designate one or all events to be supplemented.
    //              inPropertyEventHandler - Designate the pointer to the callback
    //                      function for receiving property-related camera events.
    //              inContext - Designate application information to be passed by
    //                      means of the callback function. Any data needed for
    //                      your application can be passed.
    //      Out:    None
    //  Returns:    Any of the sdk errors.
    A separate header file called SDKTypes.h contains the following data:
    typedef  SdkUInt32  SdkPropertyEvent;
    typedef  SdkUInt32  SdkPropertyID;
    typedef  void       SdkVoid;
    typedef  struct __SdkObject*    SdkBaseRef;
    typedef  SdkBaseRef    SdkCameraRef;
     SdkPropertyEventHandler
    typedef SdkError ( SDKCALLBACK *SdkPropertyEventHandler )(
                        SdkPropertyEvent        inEvent,
                        SdkPropertyID           inPropertyID,
                        SdkUInt32               inParam,
                        SdkVoid *               inContext );
    Thanks for your help.
    Alejandro
    Solved!
    Go to Solution.

    alejandroandreatta wrote:
    I am trying to call a fuction from a SDK.dll library using the Call Library Function Node. The SDK was provided to
    me and I do not have the source code, just the .dll and .h files.
    The SdkSetPropertyEventHandler function has a callback fuction as one of its parameters. How do I implement the
    callback using the CLF node? I am a good LabView programmer but this is my first time using the Call Library
    Function Node. I have read all the info I can find on NI's web site and the discussion board but cannot figure
    this one out. I am using LabView 8.6.
    Basically you do not do that. LabVIEW does not know pointers and certainly not function pointers. What you should do instead is writing a C DLL that implements the callback and also exports a function to be called by LabVIEW that translates between the callback and a LabVIEW user event. Look for PostLVUserEvent() here on the NI site to find examples how to do that.
    Rolf Kalbermatter
    Message Edited by rolfk on 02-11-2009 08:00 PM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to implement a psophometric filter in Labview software without uising Sound and vibration toolkit?

    Someone know the method to implement a psophometric or weighted filter in Labview software Without using Sound and Vibration Toolkit?
    Thanks

    The simplest way to implement a psophometric filter is to use the Sound and Vibration toolkit.
    Anyway if you don't want to purchase it, you can have a look at this forum discussion and this one.
    Serena Monti
    Applications Engineer
    National Instruments

  • Can anyone provide me the suitable material for labview fpga &labview real time??

    Message Edited by Sithu on 05-27-2008 04:32 AM

    The following link includes training material for both LabVIEW Real-time and LabVIEW FPGA.
    http://zone.ni.com/devzone/cda/tut/p/id/6929
    If you are new to LabVIEW you should start from the LabVIEW Basics material available at the following link.
    http://cnx.org/content/col10241/latest/
    KostasB
    NIUK Applications Engineering

  • Help is needed to implement a PLL to obtain the angle of a three phase sinusoidal system

    Im trying to develop the PLL to obtain the angle of the three phase system that allows to transform a three phase system into dq axes using Park transformations, there is any example?.
    The voltages are obtained from an analogic module in the FPGA using a cRIO device.

    did you ever solve this problem, i am having issues with this as well

  • Has anyone implemented JavaScript Object Notation in LabVIEW?

    Hi Guys,
    I was looking at writing an application using JSON-RPC
    http://en.wikipedia.org/wiki/JSON-RPC
    Has anyone implemented something similar, or are there any examples of this?
    I was going to write it with TCP VIs, and use string parsing to work through any responses, but if anyone had some advice, it would be appreciated.
    Cheers,
    Anthony

    Anthony,
    This sounds like a very interesting project and I would like to hear how it goes for you.
    You can of course choose to implement a JSON-RPC system using either TCP or HTTP as the transport. TCP would give you a potentially more responsive system but you would have to implement much more of the system from scratch as it were.
    As LaRisa_s was saying, if LabVIEW 8.6 is available to you, you can take advantage of the Web Services feature which will do a lot of the work for you. Your VI that runs as a web service would have to parse the data sent from the client to determine the correct VI to call and then convert the parameters and call the VI.
    You are completely correct that there is no direct support for JSON-RPC. We evaluated several Web Service and RPC mechanisms before deciding on RESTful web services for LabVIEW 8.6. In fact, if you have LV8.6 and JSON-RPC isn't a hard requirement, I would strongly recommend looking at using the RESTful mechanism that is built in. If you can use it then much less work will be required of you on the server side of your application.
    If you do need to go with JSON-RPC I would be interested to hear what factors went into the decision so we can improve LabVIEW's built in web services.
    Either way- let us know how your project goes.

  • Peak Detection Algorithm for FPGA LabView

    I am in the process of migrating my Labview software of a fiber optic sensor to an FPGA using a single board RIO.  However, my program uses the pre-built Peak Detector VI, which contain some floating point math.  I was wondering if there were any existing peak detection algorithms out there that uses the fixed-point math, required in the operation of the FPGA.  Thanks in advance for your time and consideration. 

    mdnb2,
    Here is a document on our website that talks about Peak Detection Using LabVIEW and Measurement Studio, though it references the VIs that are not available in FPGA, it has interesting information on peak detection in general.
    As far as writing your own algorithm, here is how I would start writing one. Basic Steps :
    1.) Search the array samples to find the top X number of points and their locations.
    2.) Filter out multiple samples on the same peak by removing points close to other points by witdth of Y samples.
    3.) Filter out low peaks by comparing the all remaining peaks to each other.
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • Fpga labview 2012

    hola tengo un problema entre la comunicacion entre labview 2012 y solidworks 2010 este es que cuando voy a simular el simulador en solid no arranca pero el de labview si y no me muestra ningun problema de comunicacion.
    si alguien tiene la respuesta le agrdeceria mucho

    Hola buen día.
    Estoy realizando un proyecto universitario con una espartan 3e y labview 2011, instale el módulo fpga y el driver de la spartan 3e, el problema es que no me aparece el folder de xilinx university,(también lo intente con labview 2012 pero desafortunadamente obtengo los mismos resultados) Espero que alguien me pueda ayudar.
    Muchas gracias y saludos a todos en el foro.
    Anuar escribió:
    Hola juancarmona!
    Te refieres al LabVIEW FPGA Driver for Xilinx SPARTAN-3E XUP??  Este driver es compatible con LabVIEW 2010, sin embargo, necesitas contar con el módulo de FPGA para LabVIEW 2010 instalado en la computadora con la que deseas programar tu tarjeta SPARTAN-3E XUP. En el siguiente link podrás encontrar información para utilizar LabVIEW FPGA en conjunto con tu tarjeta:
    Using LabVIEW FPGA with the Xilinx SPARTAN-3E XUP Starter Kit
    Espero que te sirva!
    Saludos!

  • HELP: How to implement Model Predictive Control in LabVIEW?

    Hi, everyone
    I have a problem on realizing model predictive control algorithm in LabVIEW 7.1.1.
    What I have now is a linear model predictive control algorithm designed with Matlab -- Model Predictive Control Toolbox. Under simulation in SIMULINK, it works well.
    Now I need to implement this algorithm with hardwares such as sensors and actuaors by LabVIEW.  Initially, I try to use the NI Simulation Interface Toolkit (SIT) 2.0 connect the simulink module with my LabVIEW interface to get the model calculation out of matlab, then send them into LabVIEW. It failed, because SIT can only help me design a simulation interface in LabVIEW based on Matlab model. Not the parrallel working mode I need. I am wondering,  does any  people here have experience dealing with the similar problems? 
    Thanks! Appreciate your time and help!

    Thanks Jarrod.
    With your suggestion, I tried LabVIEW simulation module. It seems the Model Predictive Control (MPC) block I developed in Matlab/SIMULINK cannot be supported by LabVIEW simulation translator. 
    The parrallel mode means I want to use the input from DAQ card as the input for MPC block (Basically, it is just a control algorithm with I/O), and I would like to use the output from MPC block as my actuator output to external device. However, when I use Simulation Interface Toolkit to import my MPC block from Matlab to LabVIEW. It is completely sealed. I mean I cannot pull the I/O ports out from this block in LabVIEW. That is the problem where I am now.
    BTW: I found there is optimization function in Simulation module of LabVIEW.  But Why I cannot find that function in my Simulation module (LabVIEW 7.1.1 + Simulation Module 1.0) ?
    Do I need to upgrade my LabVIEW to 8.0, since I heard about several powerful math functions there. And I am hoping with these math tools, I could realize MPC by myself in LabVIEW.
    Anyway, Thanks a lot for your help!!!

  • Can i implement Brain computer interface on labview biomedical workbench

    sir,
        This Manikyam from Hyderabad doing m.tech project on implementation of brain computer interface based on labview. can i get any help from your technical team regarding the classical visual evoked potentials paradigm, designs the stimulation program and experimental scheme base on the labview platform. can we use usb x-series 6351 DAQ instead of PXI 6070 DAQ 
    THANKING YOU sir

    Hello,
    I have a few questions which may clarify the issue:
    1. Is this an error you see on the instrument itself or do you see it in LabVIEW?
    2. Are you using a Plug and Play Driver, an IVI driver, or simply programming using NI-VISA in LabVIEW?
    3. Can you reproduce this error with a very simple program, such as doing just an initialize and then read 51 times?
    As for the data storage setting on the 34401a, it is likely being programmatically set by your LabVIEW application, which would explain why you see it reset all the time when you check in Measuerement and Automation Explorer (MAX). If you set the Data Storage to off in the subVI you mention, does that prevent it from appearing otherwise in MAX?
    In any event, I actually have access to an HP34401a so if you'd like to attach a simple program which replicates the problem and only accesses the HP34401a, I can take a look at here and see if there is anything we can do programmatically to fix it!
    Thank you,
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

Maybe you are looking for

  • HT2731 Can I transfer purchases from one itunes account to another?

    Been using one itunes account for the whole family. Getting to tangled so we're separating and everybody is getting their own itunes account, but we'd like to transfer our purchases from the main account to our individual accounts. Daughter is keepin

  • Versions of MD64.

    Dear All, I am using 3 versions of MD64 for my reportings (i.e. 01, 02 & 03) & 00 for MRP. Problem is that when I run MRP it considers all version & creates 4 plan orders on the basis of records of each versions. I want to exclude rest all version fr

  • CC save locks out CS6. It's pay forever from now on.

    It's official, the handcuffs went into effect with CC's release. Files saved in CC will not open in CS6. The scheme works and forces existing users trying to stay current with their tools into Adobe's pay forever scheme. Yes there is IDML workaround

  • Having Trouble with Java Cryptography Extension (JCE)

    Hi, this is my first attempt at using the JCE. I'm using JCE 1.2.1 and basically all I'm trying to do at this point is encrypt a FileInputStream object using the DES standard, with the JCE classes. Here is my code Fragment. protected FileOutputStream

  • BAPI or FM to update IBAN and email of a customer

    Hi,      I am creating a RFC function module where I need to update the IBAN (International Bank Account Number) of a customer in XD02 or table KNBK. In the FM I am importing customer number, IBAN and email . The value of IBAN which I am giving as in