Variant input to a simulation subsystem in LVSim 2.0

I have a simulation subsystem that takes a variant as one of its inputs. This worked well for my purpose in Labview 7.1. I've now upgraded to LabView 8.0 and simulation module 2.0.  The subsystem appears correct when opened, but when I use it in a simulation loop, the variant input appears as type void and connecting a variant to it causes an error. Is this an error with my VI or are variants no longer allowed in simulation subsystems?

Chris,
I see what you mean. I looked through the release notes and Help files but did not see any mention of the variant data type.  I will see if R&D has a more definite answer.
Best Regards,
Message Edited by Doug M on 07-05-2006 07:35 PM
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

Similar Messages

  • Variant Configuration - TC: cu50 simulation mode,

    Hi Gurus,
         In Variant Configuration - TC: cu50 simulation mode, what are the activities we have to carried out in this screen.
         Please explain
    Regards
    Venkat

    Hi Venkat,
                      In the simulation screen , the activities/inputs  you have to put are as follows-
    1. In the variant configuration menu, choose Environment   Configuration Simulation.
    2. Enter the configurable material and a plant, and choose Configuration, then Chars.
    3. Select your characteristic.
    4. Display the possible entries, and select the value to which you want to assign a variant condition.
    5. Choose Assign variant condition.
    6. You see a dialog box in which you enter the variant key.
    7. Save your assignment.
    In the configuration simulation, the variant key is shown for the value, not the amount.
    You can use the configuration simulation to check your configuration model. In the configuration
    simulation, you can test whether you have created the objects correctly and whether your
    dependencies work.
    The BOM for the configuration result is selected according to the BOM application in the
    configuration profile.
    Regards
    Chandra

  • How do I tell a variant input that a string is coming in?

    I'm just learning how to use LabVIEW, so my apologies if this is a simple/stupid question.
    I'm trying a variant on a DataSocket Read VI that was supplied with LabVIEW (I'm running version 7.1).  I've got the "data" output line tied into a string.  The "type (Variant)" input is connected to a 1-D array of unsigned bytes.  There is an error in the wire connecting the "data" output to the string element, though:
    You have connected two termnials of different types.  The type of the source is 1-D array of unsigned byte [8-bit integer (0 to 255).
    The type of the sink is string.
    All well and good.  How do I change the type of the source to string?  When I right-click on the source and select "Replace", I can't see anything in there that looks like a string that isn't a constant... that is, a string type.  I'd appreciate any insight you can lend me on this.

    In the strings pallete you an find the Empty string constant or just a string constant . Wire that to the input (type) connector and it should produce the string you want.
    Or you insert a byte array to string function in the broken wire.
    Regards,
    André
    Message Edited by andre.buurman@carya on 08-29-2007 12:05 PM
    Message Edited by andre.buurman@carya on 08-29-2007 12:05 PM
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Variant Input Parameters with ActiveX Objects

    I've created an ActiveX library that exports a variety of objects using Visual C++ Version 6.0. I'm testing the methods and properties of these objects using both LabVIEW and Visual Basic clients. The problem I'm facing is that when testing under LabVIEW, I can't access methods that expect a VARIANT input parameter. The declaration in C++ of one object's such method looks like this:
    void CChassis::Configure (VARIANT config, int rate);
    I can create the ActiveX object with both LabVIEW and Visual Basic. I can invoke methods that do not use VARIANT input parameters using both as well; but, when I create a second ActiveX Object (a CConfiguration) and use the LabVIEW Variant operator, my attempt to invoke Configure fails with a "No Such Interface (E_NOINTERFACE)" error. The invocation fails identically if I wire the CConfiguration directly to the Variant input, as well. If I instead create a constant VARIANT as an input parameter, my Configure method gets called, although the method recognizes that I passed an invalid object.
    Using Visual Basic I can invoke the Configure method without problems while encapsulating a CConfiguration object within a Variant.
    So my question is, have I found a LabVIEW error, or is my approach flawed? If my approach is flawed, where have I gone wrong? Thanks in advance! I'm using LabVIEW version 7.0.

    Hi,
    Have you tried to put in plain data or an object reference into your variant parameter?
    I think plain data should work... for object references i don't know.
    Some time ago, i also coded a small activex library, where i passed object references by parameters in delphi. I did not use variant parameters, but the real interfacedeclaration types (like IMyObject**). This worked fine. I also uses "dual" interfaces for the objects, which get passed by parameter. But i don't really know if this is helpfull for vb.
    Finally, you can also use a workaround:
    For each of your Objects, that you want to use from LabView and which you want to pass by a parameter, you
    insert an new Property "int32 Object_Handle".
    When an Object gets created, it ask a "ObjectHandleManager" (gets written by you) to get an own unique Object_Handle which it stores into its property "Object_Handle".
    The ObjectHandleManager generates an new Object Handle and memorizes the Handle assoziated with the calling object's reference.
    Now, at each time, when you want to pass a object reference to a library function of your self, you can pass the Object_handle as an integer value. In the called function, you can ask your ObjectHandleManager for the real ObjectReference.
    But thats not a very comfortable workaround.

  • Varying input voltage refrigerator testing application

    I am working on an application for refrigerator testing. One of the specs that we need to comply requires that we vary the input voltage, (ex. 127 VAC for a 120 VAC unit) through some sort of voltage regulator. The biggest unit we test has a 2 hp compressor with a max current draw of 18 amps. We would like to know what equipment we would need in order to accomplish this through a LabVIEW application that we are working on. We could do this through GPIB, serial, etc. Any help on this matter will be appreciated.

    You might be right.  I was think of one small 1.5 HP controller (Commander SE) we are using that is being powered by 1-phase 240 VAC supply.  So I was thinking the motor was 1-phase, but actually it does the voltage chopping to create a 3-phase supply to the motor.
    It may be possible to still use one where you just use 1 phase relative to ground, but I'm not sure, and I'm not an electrical engineer to be able to tell how to do such a thing.  It may be worthwhile to ask them if such a thing can be done.  Or look around for some other motor speed controller manufactures that make a 1-phase motor controller.
    I'm sorry, but I don't know where else to look or be of any help.

  • BI custom process type (ABAP OO Class): how to create a variant screen?

    I created a custom process type in Netweaver 2004s (business intelligence) which in essence is nothing but an Abap class that implements certain interfaces. What I am now struggling with is how to write the code for the "new variant" input screen.
    My understanding is that the logic has to be implemented in the method IF_RSPC_MAINTAIN~MAINTAIN, but I am lacking detailed information.
    Can someone give me an example with a variant screen that displays two radio buttons?
    Thank you,
    D.

    It is a custom class that implements the following interfaces:
    IF_RSPC_GET_VARIANT
    IF_RSPC_MAINTAIN
    IF_RSPC_EXECUTE
    The interface I am struggling with is the first one (get variant). Any more insight on how this should be used would be highly appreciated.
    Thanks!

  • Need to know how to find out the Variant associated with a background job

    Hello,
    Plz help me in finding out how to find the variant associated with a background job. I need to know which variant does the program picks up when it runs the scheduled background job. There are so many variants that exist. How do I figure out which one is being picked up by the program. When I go and see into the job that are already finished it shows the parameter as "&00000000645354" which I do not understand what it corresponds to. I was expecting a variant name instead of this number in the parameter field. Is there a way I can find out the name of teh variant the program is using automatically in the background job ??
    Thanks in anticipation

    Yes it is possible which is variant, input fields are choosen
    - go to SM37 and locate the background job which was processed using proper selection criteria
    - select the Job and click on 'Step' button availabe in the screen
    - the new screen is 'step list overview'. now, place the cursor on selected variant avaialble on the screen, then from Menu >> Goto>> variant
    which gives the list of input values.
    hope this helps
    Thanks
    JK

  • Trouble creating Variant format for ActiveX Function (MintMT Controller)

    Hello!
    I am creating a VI to control 2-axis motion using the MintMT activeX library and have run into a problem.  I was able to easily call and execute functions from Labview until I ran into one (VectorA) that requires an array of variant input.  I cannot format my input correctly and have exhausted myself trying different combinations of building this array and converting to variant type (To Variant). I also have wired Labview arrays directly (with no luck). The arrays are very small (only 2 elements). Finally I tried the OpenG library (Cluster to Varray and Array to Array of Vdata) without success.  The error code is: LabVIEW:  (Hex 0x80070057) One or more arguments are invalid.
    Any advice?
    Attached is the documentation for the function:
    VectorA
    Prototype:
    VB      VectorA(nNumberOfAxes As Integer, nAxesArray As Variant,
                    fPosArray As Variant)
    Delphi  VectorA : (nNumberOfAxes: Smallint; nAxesArray: OleVariant;
                       fPosArray: OleVariant)
    C++     void VectorA(short nNumberOfAxes, VARIANT nAxesArray, VARIANT fPosArray);
    C       void VectorA(__int16 nNumberOfAxes, __int16 *nAxesArray, float *fPosArray);

    Hi Mr. NiceGuy,
    The code from the manufacturer has a To Variant converter between the arrays and the Property Node. I'd recommend converting the arrays to variants in your code. You can find that To Variant VI on the Functions Palette » Programming » Cluster, Class, & Variant »Variant. Let us know if that works.
    Hillary
    Regards,
    Hillary E
    National Instruments

  • Unable to view earnings & deductions in payslip- Simulation itself

    Hi experts
    I configured all payroll steps.
    But in  simulation run payslip is opening but earnings & deductions not appearing.
    In log tree no rejected personnel no's, no error messages.
    Pls tell me which ever steps are to be checked to correct it.
    thank you

    have u configured the payslip properly? using pe51?
    have u created a variant in the payslip tcode , for eg. if u are running for india payroll
    pc00_m40_cedt, you will have to create a variant,
    then in the simulation mode , there is option to select if the remuneration statement should be shown or not, please check the option.
    Regards
    Sameer

  • Using unstructured TS data and labview variants

    I want to create a generic step to pass data from TS to LabVIEW but I'm pulling my hair. Why can't I use a Variant input on a VI to accept unstructured data fro TS? Is this possible? How can I flatten TS data into a LabVIEW Variant? In LV when you need to pass an unknown data type between a VI boundry, you use a variant. In TS you can do the same with an unstructured container. Is there anyway to pass unknown data between the two platforms? Actually correction: A variant output from a VI actually will show up on the TS side if you use an unstructured container but doesn't work the other way around.
    I think the TS developers should get together with the LV developers over at NI and actually sit down over a few beers and talk. No I mean really talk. WTF?
    Michael Aivaliotis
    VI Shots LLC

    It seems that there is a limitation that I've come across. When the variant data is passed through the results data of a step it becomes invalid. I've modified the original code you submitted and was able to reproduce my problem. When you run the attached code, you will see a type mismatch error. Also, if you break it and look at the results variant data it does not contain the structure.
    Using LV8.5 and TS 4.0.1
    Message Edited by Michael Aivaliotis on 02-11-2008 02:12 AM
    Michael Aivaliotis
    VI Shots LLC
    Attachments:
    LV Variant2.zip ‏27 KB
    2.png ‏21 KB

  • Simulation of cascaded control loops

    I building a simulation of a motor control system using LabVIEW Simulation 8.2.  The controller has the traditional cascaded position-velocity-current loop design where each loop runs at a different speed.
    The online help for Simulation says that simulation subsystems inherit the timing of the main diagram.  How do I set the speed of the inner loops to be different than the outer main loop?
    Solved!
    Go to Solution.

    Actually, I solved the problem using a zero order hold block at the beginning of the subsystem diagram and setting the sampling time to the required period.

  • Using simulations for online control?

    Hi
    When using Labview 8.2.1 what is the best way of implementing model based control, can the simulation environment, which has some nice transferfunction features be synchronized in a timed loop, to do online control in a real time system. I couldn't find an input in the simulation loop triggering the simulation with the timed loop rate. An example would be nice. Also is it at all possible to change integration algorithms, or should I make the desired adjustments myself.
    Best Regards
    soeren  

    Hi soeren
    1) If you double click the simulation loop and choose the 'Timing Parameters' tab, you have to check the 'Synchronize loop to timing source' box.
    Then if you expand the inputs on the left hand side loop you will see the 'Source Name' appearing. This is where you can wire in an external timing source.
    2) Create a timing source and wire it to the inputs of the timed and the simulated loop that you want to sync. The timing source can be the 1KHz clock Windows use
    or the 1MHz clock that can be found in the latest NI Real time controllers.
    3) Determine the rate at which the loops will run. The simulation rate has to be expressed in seconds and the timed loop rate will be in ticks ( for a 1KHz source the tick will be 1 msec). The photos attached depict two loops that are synchronized to run every 10msec. Please note that you need to choose a Fixed step solver from the simulation loop configuration box.
    With regard to the integration block, it's behavior will depend on the ODE ( Ordinary Differential Equation) solver you choose. Therefore, you can play around with the simulation loop parameters to find out which method gives you the most meaningful results.
    I hope that helped,
    Kostas
    Attachments:
    SimulationTiming.PNG ‏26 KB
    Sync_Timed_Sim.PNG ‏20 KB

  • Poly input

    Is there a way to create a SubVI with a real poly input? I mean an
    input wire that takes anything, like the one in Flatten to String, without losing information what
    "anything" is - it may be a custom cluster that sub knows nothing about.
    What I would want is to serialize this cluster for data transmission
    in little-endian order using Flatten to string, but I want to flatten
    the raw data, it cannot be encapsulated into a variant (I suppose that
    "Variant" carries some additional meta-data - I still have to check
    this).
    I hope I have correctly describe what I want to do - I have a feeling
    this sort of thing is very hard in LabVIEW.
    Thanks in advance, Mike

    Faraclas wrote:
    Yes, you can make polymorphic VIs.
    Do you have a specific example you are looking to impliment?
    Thank you. I am aware of the polymorphic VIs, but their limitation is, that the input type has to be known up front. I am looking for a way to get something similar to the real "poly input" that is only limited to LabView native VIs. I want to implement a function that can serialize any input in "little-endian" form an then send it over the wire. My goal is to have serialization "hidden" from the user. One idea is to have the Variant input, but the data sent would have to be "raw" (without the encapsulating variant). But the challange is, how to "unvariant" without knowing what is inside.
    On Lavag someone suggested the VariantType library (I've somewhat forgotten about that), but it suggested that it is slow. I think it might work for me, but another challange after that is, how to put the "raw" data I receive into a variant without knowing what is inside. The data will be serialized in little-endian format, so "Variant to Data" would not strip it in the correct byte order.
    I have an idea, but I would have to test it first...
    Br, Mike

  • RTD simulation Help

    I am trying to use a VOLTAGE_CONTROLED_RESISTOR_VIRTUAL to simulate an RTD. From what I have read this is one way to simulate an RTD. I am using the voltage input as a simulation for temperature.
    I want the value of my resistor to be 279.40 ohms @ 103.12 degreec C (or volts in this case).
    I set the voltage supply to my VCR to 103.12V and the resistance value to 2.70946 ohms/volt
    Am I missing something? What am I doing wrong?
    Thank you,
    Eric
    Attachments:
    multisimRTD.JPG ‏304 KB

    Hi Eric,
    I duplicated your circuit and there are two things you need to do get the right measurement:
    - Reverse the polarity of the biasing battery, so the positive of the 103.12 battery to the positive of the voltage controlled resistor (VCR) and same for the negative end.
    - When measuring the resistance of a VCR, it is better to measure the voltage accross and divide it by the current passing by because of the way the Ohmmeter device works (it adds a sample resistor in shunt and that will be affected by the controling voltage too). Another way is to run a DC operating point analysis and calculate this expression (V(1)-V(2))/I(R1).
    I attached the design here.
    Please let me know if you have other questions.
    Mahmoud W
    National Instruments
    Attachments:
    RTD.ms11 ‏53 KB

  • Japanese Romaji input Blackberry Tour

    I have been trying to install Japanese Romaji input on my new Blackberry Tour.  I have seen that a couple of people have successfully installed input support on the 9000.  (http://supportforums.blackberry.com/rim/board/mess​age?board.id=Bold&message.id=3293)
    Has anyone figured out a way to get this to work on the Tour.  I've been searching for other Tour device software that may have this enabled but have not yet found any.  Suggestions welcome.
    Solved!
    Go to Solution.

    From Blackberry Tour CJK Project
    Ok So I downloaded the 4.7.1 Blackberry Simulator from: https://www.blackberry.com/Downloads/entry.do?code​=060AD92489947D410D897474079C1477
    I started the simulator and just played around a little and after a little playing aroundwas able to get Japanese input on the Simulator.
    The simulator files did come with all the 4.7.1 versions of the files metioned in my above post.  I copied all the files from the JAVA directoy inthe simulator to the JAVA directory in the loader directory and also replaced the CJK.alx file.  I seemed to be making progress but after a long reload and reboot I was still without Japanese input.  
    Simulator CJK.alx: http://docs.google.com/View?id=dgf9xbxd_20gw2tzjft

Maybe you are looking for

  • Accessing and using the Clipboard

    It is very seldom that I need to use the Clipboard, so I never can remember how to accesss it on the rare occasions that it is useful.  I FINALLY found it today, but I don't want to have to go through this again, Therefore, I have two qustions: (1) I

  • BPM workflows Vs MDM internal workflows.

    need clarity on BPM workflows Vs MDM internal workflows. My understanding: BPM are kind of workflows created on portal. and MDM workflows are internal within MDM system. Questions: 1. Are BPM workflow and MDM Workflows are connected in anyway.   a. I

  • Browser page view

    How can I set the page view, in the browser, to be column view? Some pages are set to page view, but I want to set them all to column.  I used to have a Curve and it gave you the option for page or column view. Is it possible with the Style?

  • Setting incorrect answers on a customised quiz

    Hi there. I'm setting up a customised quiz (not using question slides) and was wondering how you set the correct/incorrect answers. What I've done so far is included all answers in the quiz (via the reporting section), but only set the right answer t

  • System Keeps Freezing

    Hi Guys I really need some help with this as it's really starting to wreck my brain. My iMac is running the latest software version 10.6.8 but what has started to happen is that if I have anymore then say 3 different programs open the whole system ju