Parallel FPGA in LabVIEW/Multisim co-simulation

Hi guys, is it possible to put 3 or 4 FPGA modules in a LabVIEW model and then co-simulate with Multisim running 1 plant model? I want to simulate a solar energy converter using multiple parallel FPGA cores (this part in on LabVIEW) driving multiple inverter bridges interacting with the grid (this part is the plant model on Multisim).
Solved!
Go to Solution.

Hey hacmachdien,
This should be possible.  If you have the Control Design and Simulation toolkit, you can use the Control and Simulation Loop to co-simulate with Multisim after installing the co-simulation plugin that comes with Multisim.  See the white paper here for more information.  
If you encapsulate your LabVIEW FPGA logic inside of a subVI, you should be able to use those subVIs in the Control and Simulation Loop.  There are a few caveats with this.  First, the rate for the LabVIEW FPGA SubVIs will need to be configured according to how they will run in the real hardware.  For example if the subVI is inside of a Single Cycle Timed Loop that is configured for a 40 MHz clock, you will need to configure the period for that subVI to be 25 ns.  You can configure the period by right clicking on a subVI within a Control and Simulation Loop and going to SubVI Node Setup.  From this menu, you can set the execution type to be discrete and then configure the discrete timing.  Another caveat is certain things will not be supported such as I/O.  You can usually work around this by leaving your IO on the top level of your application and just passing the values into the subVI through controls and indicators.  Let us know if you have more questions!
Pat P.
Software Engineer
National Instruments

Similar Messages

  • Complete hardware simulation using LabView, Multisim, and MAX (easy answer accepted!)

    Hello, all!
    Sorry, I'm new, but I've checked around for a definitive answer on this, but I'm not 100% sure.  I'm learning LabView for an upper-division Physics class.  We're using NI hardware (DAQ-MX) and a mix of lab hardware - primarily basic stuff such as voltmeters, oscilloscopes, and breadboards with simple components.  I'm also doing some work with NIM instrumentation, but that's secondary to my needs here.  So, when I'm away from school, is it possible to do a complete simulation of my classwork using LabView, Multisim (for my breadboard), and the Measure and Automation Explorer (for the DAQ-MX)?  I know that I can create a circuit and drop it into Labview, but I'm not so sure about the DAQ.  I'm hoping for something that's a "seamless" recreation of what I'm doing in class.  I can take a simple "yes" or "no"; as long as I know that it's possible, I can look for the solution.
    Thanks for the help!
    Solved!
    Go to Solution.

    I have an easy answer and a harder answer:
    Easy Answer
    You can simulate almost any NI instrument in MAX.  Right click the Devices and Interfaces item in the left pane and select Create New...  Unfortunately, this limits you to whatever the driver designer thought would be a good signal.  It is good for simple testing, but you will rapidly run into its limitations.
    Harder Answer
    Use LabVIEW classes to make a hardware abstraction layer.  This my seem like an advanced topic for a beginning LabVIEW programmer, and it is, but it also neatly solves the problem of switching between simulation VIs and real acquisition VIs without writing a bunch of switching code.  In short, you create a LabVIEW class which has the interface you want for you data acquisition.  This can be your simulation code.  You then create a child class which has exactly the same interface, but uses the DAQmx/NI-SCOPE/NI-DMM/etc. that you really want to use.  Switching between the two is as simple as selection the class you want to use at run time.  This is a lot of info in a short time.  If you want to go this route, read the LabVIEW help on LabVIEW classes and work through the examples.  I would encourage you to do this, since the sooner you learn how to effectively use object-oriented LabVIEW, the easier your life will be.
    As a further bit of information, most of the measurement instrument groups (e.g. NI-SCOPE, NI-FGEN, NI-DMM, etc.) allow you to simulate an instrument if you use the open with options VI instead of the standard open VI.  The inputs are rather arcane, but get the job done.
    Let us know if you have further questions.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Serial to parallel converter in labview

    Hi. Does anybody know how to convert serial data to parallel data using labview? I already used shift registers but it's not working.

    Ralp wrote:
    I want to convert it to parallel boolean (true or false) by storing one bit of binary data in every registers so i can combine it in 1D array.
    You still need to be much clearer. LabVIEW does not have "registers". LabVIEW is a programming language, not a circuit simulator.
    What is the datatype of the serial data? booleans, bits, bytes, U8, etc.
    What is the datatype of the parallel data? 1D array of what? How big can it get? What do you want to do with it?
    Do you get one boolean at a time and simply want to append it to a boolen array? That would be trivial. What have you tried?
    LabVIEW Champion . Do more with less code and in less time .

  • How to start with FPGA and LABVIEW when you do not know any computer language? Only have exposure to Windows OS.

    Myself is an Electronics Engineer. But I don't have any exposure to any comp language like C or whatever. I do not have any exposure to Labview as well. I've been involved in design and developing Digital Circuits like interlock units, Position monitoring and display systems etc. Now I want to work upon FPGA based circuits. Can anyone suggest me plz that how to start with?  

    Hi BNarendra;
    Here are some resources that can be useful, the first is an introduction to LabVIEW and the other ones are for LabVIEW FPGA.
    LabVIEW
    http://zone.ni.com/devzone/cda/tut/p/id/5247
    LabVIEW FPGA
    http://www.ni.com/swf/presentation/us/labview/lvfpga/default.htm
    http://digital.ni.com/public.nsf/allkb/0697A6F4BFC6E152862570FA0072153A?OpenDocument
    http://zone.ni.com/devzone/cda/tut/p/id/3261
    I hope the information is useful.
    Good Luck!
    Francisco Arellano
    National Instruments Mexico
    Field Systems Engineer - Energy Segment
    www.ni.com/soporte

  • "how to read parallel port using labview"

    "i am doing a bio medical project and need to read data from parallel port using labview. can anyone help me"

    Hi
    in most cases a simple example helps best.......see attachment. Find in addition in Word document a helpful picture of LPT - Pins.
    In case you work with WinNT, W2k, XP - you need to install accesshw.
    Regards
    Werner
    Attachments:
    printer_port_test.zip ‏41 KB
    dsub_25_parallel_port.doc ‏29 KB

  • Controlling XY stage connected to parallel port using labview

    Hi,
    I have a XY stage which I can control using mach3 software. I want to control a signal generator, VNA and the XY stage at the same time. I have programmed SG and VNA using Labview but I am having difficulties controlling XY stage using Labview. I have never controlled an instrument connected through parallel port using labview.
    Can anybody give me some ideas to start with? How do I use VISA to control the parallel port? I really appreciate your help. Thank you in advance.

    Hi srms,
    Since your question is related to using VISA, I would try posting your question on the Instrument Control Board. You're likely to have better luck there.

  • How can I do to communicate to parallel port using labview 5.0 and NT ?

    I am trying to write and read from parallel port using Labview 5.0. It does not work with NT.
    How can I do to communicate to parallel port using labview 5.0 and NT ?
    Thank you in advance.
    Regards,

    If you are trying to use In/Out port functions that come with LabVIEW they will not work with NT. I think the AccessHW file at the following link will fix that problem:
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/49664743ded6f1da862564bc004e3a7f?OpenDocument
    Try also this link:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/0989d3d9dafae64e8625680400679736?OpenDocument
    and do some searchs at NI.com for parallel port, you should find some more usefull info.
    Good luck
    Brian

  • I want to write data into eeprom(93LC86) in parallel port using labview?

    I want to write data into eeprom(93LC86) in parallel port using labview? Also I want to read data from EEprom.

    Hi Mr. Mz,
    after having a look to 93LC86-Datasheet I do not see a problem. The self-timing programming cycle of this Chip avoids timing problems; the rest is only logical stuff.
    If you need more general info, how to use the parallel port, I recommend: http://[email protected]/ or
    in case you need an example of SPI-Interface in LabVIEW with paraport - then write to: [email protected]
    You are welcome
    regards
    wha

  • LabVIEW Multisim Connectivi​ty Toolkit

    I want to use labview multisim connectivity toolkit.
    Can i get the evaluation version of this.
    If yes then how to get it

    Thank you very much Andrey!
    With that cheat sheet I can reduce the number of times I have to call my wife to figure what the proper SQL syntax should be.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to control a parallel port with labview

    Hi. I'm trying to control a dc motor with a parallel port using labview. the program has to be able to vary the out put voltage of the computer (0 - 5V) through the parallel port into a circuit which will step up the voltage for the motor. Any help would be greatly appreicated. garreth

    Do you want to output and varying signal from the parallel port pins? If so you can't do it, the port pins are digital and can only be high or low, not inbetween. You can control the individual lines high or low using the In/Out Port vis in Advanced>>Port I/O. For more help on doing this search the message archives (I know I've answered a few) and NI's site, there is some good info on it out there. Try some of these for starters:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/0989d3d9dafae64e8625680400679736?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/f4146c66990c46388625695f00726581?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/f3c4ee6ee2c23ef386
    25646b007882c8?OpenDocument
    http://www.advmeas.com/goodies/parallelport.html
    I hope this helps get you started
    Brian

  • Using FPGA and Labview without RIO board.

    Dear Sir
    I am a student. I want to connect my own FPGA and make a program on labview and then transfer to FPGA.I do not want to buy RIO.Is it possible to work
    like that without purchasing RIO.
    Thanks a Regards

    Hooovahh wrote:
    Yes NI supports programming FPGAs using LabVIEW without RIO boards I've been doing it for years and it works great.  Here are a few non-RIO products I've used LabVIEW FPGA with.
    PCI-E Version
    PXI Version
    USB Version
    The PCIe and PXI cards you mentioned are specifically RIO.
    But you managed to program a USB-6225 with LV FPGA?  I'm not even sure there is an FPGA on there to program.  It is an M series DAQ board.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Issues in understanding parallel computing in Labview

    In my data acquisistion project, I use case strructres in while loops to navigate through my entire project. Some of the while loops are:
    Producer loop 
    Consumer loop 
    Acquistion loop 
    Logging loop and so on...
    My procuder loop usually contains buttons which link to the appropriate case structure in the consumer loop via Enqueue message.vi Everything works fine untill I preform some "parallel computing". 
    For example, If I press run button which activates a case structure in Producer loop and later activates a case structure in consumer loop and goes on untill it ends up in an appropriate loop and continues to run in that loop.
    Now, if I press log button it goes through all the loops and ends up in the loop where it is intended to be. It all works fine.
    Now the issue, Sometimes these loops just hang up at a spot. They dont send message queues. They just continue the loop that was last run. Further pressing of any buttons on the GUI does nothing in the vi. I have no clue why labview behave like this. Sometimes it works if I press the button in certain sequence and that sequence does not make any sense, it was all just trail and error. The error is not even on the hardware side, as I have tested it with the simulated devices in MAX. I believe that this mostly happens when i try to run two case structures in the same loop, but I though labview can do parallel computing. what are your views on this situation?
    Labview Learner
    Solved!
    Go to Solution.

    Ashaironix wrote:
    basic question is will labview be able to handle running two case structures parallely within a same while loop. 
    Two different case structures?  Yes.  Two cases inside the same case structure?  No.
    From your description earlier, it sounds like you are having loops inside of your case structure.  If that is the case, then you are blocking your loop with the case structure from being able to check for messages.  Everything inside of a While loop must complete before it can iterate to run again.  If you have a repetitive case to run, reenqueue that state so that you can check for messages and run again when it gets dequeued.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I write to the parallel port using LabVIEW 6.0.2

    I have tried updating the labview.ini file and also using the parallel.llb available on the site. When I execute the program it gives me error 37 saying,"device not found". I am running this code on windows 98. I tried to use VISA write,serial port write (using port 10) but nothing seems to work. I also tried to develop a sample code using inPort and outPort, but no success, it is not able to read the data back from the parallel port, even if it seems (????i don't know any way to cross-check it though????) to write.
    Does anybody know the problem here?
    THanks.
    Pari.

    Thanks Brian.
    Well here is the next problem. I got a VI (attatched) off ni.com and it works fine on a windows98 platform. But quits working on NT.
    I can write perfectly (which i checked by hooking an LED display unit at the other end of the parallel port cable). I observed that the LEDs respond to the toggling of individual bits (data bits). But the error occures at the "out port.vi", when I try to run it on a NT machine (where I actually wanna use it). Are you aware of any changes to be made in order to run a VI on NT that works on 98?
    Thanks again.
    Pari.
    Attachments:
    parallelPortSwitcher.vi ‏124 KB

  • Parallel process in labview

    I have an image that i split in 2; left and right, and they both go through the same process of plotting a line. In order to see the process for both images, I have to do parallel processing to see the lines for both left and right graphs.
    I put a while loop on both left an right image processes, but i still have the same output. Can someone help me? 

    As a rule of thumb, copy-paste code is not usually a good thing. Like was stated above, there is not much processing, no need to do it in parallel. I would build the two arrays you have into a 2-d array. Then use an auto indexing for loop with all the identical processing in it. From there you can build your x input and y input arrays for your graph and feed them to your xy graphs. Hopefully this is clear. If you post your code in version 8.5 I can draw it up for you.
    CLA, LabVIEW Versions 2010-2013

  • Labview washing machine simulator help

    Hi, i'm making a washing machine simulator (a really simple one) basically depending on the load size (big or small or medium) the front panel will display how many gallons of water used as well as the water temperature depending on the load type (delicates, whites, colors).  Additionally here is a timer that runs for a certain amount of time depending on the load size, once the wash cycle is completed, the dry cycle begins.  I have completed the code but it's not working and i don't understand why, the VI shows no errors and i can't see the problem.  I am fairly new at labview, please help
    Solved!
    Go to Solution.
    Attachments:
    PROYECTO3erpar.vi ‏23 KB

    yes, follow what she had suggested....the secret behind door number 2 is...think about how to pull info from the arrays using your front panel controls to feed the elapsed timer and indicators
    Spoiler (Highlight to read)

Maybe you are looking for