Passing a reference to queue as a sequence with LabVIew API parameter

Hello

I'm running a sequence of Labview with the entryPoint.Run method.

Now, I want to pass a reference to queue to TS for use as the parameter for a stage of the action (the action must information sent through this queue). I tried to move the queue as a parameter for the valVariant parameter of the object of Subproperty seuqence.

LabVIEW throughs 1 error when I try to setValVariant.

The reason why I want to do it is because I want to integrate the execution of the sequence in my draft framework for an actor.

Is it better to move the refs to the queue as a reference to be able to send data to an application running?

Thanks in advance

Michael

Hi Michael,

It is not possible to use references of LabVIEW in TestStand queue, since they do not share the same instance of the application. You can pass a reference to queue as an integer (U32 or I32), but you can not use in TestStand.

I found 2 ways for you to use:

You can use the Action engines in LabVIEW to encapsulate the queue. There is some information about this option in this thread:

Solved: queues of LabVIEW and TestStand - Forums of Discussion - National Instruments
http://forums.NI.com/T5/LabVIEW/LabVIEW-queues-and-TestStand/TD-p/2554231

However, with this option, you must make sure that the motor Action shift register leaves no memory

.

The recommended practice is to create the queue in TestStand using Synchronization Manager and then open this queue in LabVIEW. An example is available for this option:

Using queues in LabVIEW - National Instruments TestStand
http://www.NI.com/example/30108/en/

I hope this information is useful for you!

Alex

Tags: NI Software

Similar Questions

  • I can't pass a reference of function to another function?

    Hello

    Reminder of basic:
    I am trying to create a custom preloader class that uses a table to store a URLRequest objects queue, to load in the order. I have no problem with the queue or get the loader to load the URLRequests in order.

    I can't seem to pass a reference to a function (address think of c) in my preloader class. I want to convey the function reference to serve the event listener for the given URLRequest.

    Signature of the function:
    public function addItemToLoad (item: URLRequest, notify: FUNCTION_REFERENCE)

    Anyone know what the syntax is to pass the address of a function to be called at a later date?

    Think that
    FunctionName
    vs
    Nomfonction()

    Thank you
    Nomadic design

    Thank you

    I missed the caps. I tried the function, but the compiler received errors.

    I've actually taken a step further. I'm now pushing the function references in an array and passing the array in the function.

    public function addItemToLoad (item: URLRequest, notify: Array)

    I realized that I might need to notify several objects of full charge.

    Thanks for your help.

  • Pass a reference to the shared variable

    I use two shared variables in a loop where I write one and read each other.  I need to repeat this loop 5 times, but each loop uses a different pair of shared variables.  These variables are shared between a vi on the computer and a cRio.

    It would be ideal to incorporate this loop into a Subvi where I can pass a reference to the two shared variables in and then read and write in threw these references.  Then I could just call this Subvi 5 times, instead of copying and pasting the loop 5 times.

    Is it possible that I can accomplish this?  I can't find an example that would achieve this.

    Thank you

    If I understand correctly, you can use the mode programmatic access to shared Variables and it would work.

    http://zone.NI.com/reference/en-XX/help/371361H-01/lvconcepts/sv_usingdynvarapi/

    http://zone.NI.com/reference/en-XX/help/371361G-01/lvconcepts/usingdynvarapi/

  • Pass by reference

    Hi all

    I'm developing an application for the tests used in automobiles. I just had a tot that is possible to pass the array by reference. I know that the method of passing by reference by getting the reference to the table and pass the reference to the Subvi. To do this I need to create a display board and reference for the same should be passed to the Sub - VI. But this is nothing but pass the data to the Subvi by value. The only difference is that the table indicator will not be created in primary vi rather a control panel will be in Subvi.

    Is it possible to directly wire data without creating a control wire Subvi and Subvi table, use as a ref table and retrieve the data. You mean, son of data must be connect to the Subvi terminal, but terminal in sub - VI should give the Ref for that data.

    All ideas are welcome.

    Thank you

    Yogesh

    Maybe you are looking for a reference value of data? It can be a 2D array, for example.

  • Passing a reference to a type definition for a Subvi

    I created a type definition that I would use in my application. This definition of particular type is also the control of front panel to my top level VI. I wanted to pass a reference to this control to my sub - VI so that they could dereference as needed and in very rare cases, update the values on the front panel. However, as I created the application I noticed that I was breaking the control reference that I have updated the type definition. This implies that they type changes the reference that I change the type definition.

    How can I do to build the reference I need or there at - it another way to proceed that works as well. Even if I can't make a reference to the control that is bound to the type definition, I'm ready to move to a Variant that can accommodate the reference until I can build the type of data (reference) inside my SubVis.

    Hello

    You must simply pass a reference of generic control to the Sub.vi and then cast to the specific typedef. You will need to place a control dummy of this typdef on your Sub.vis Frontpanel and hide.

    Christian

  • Passing a reference MovieClip of Parenthood to button event?

    I try to refer to a movieclip which was adopted through the first class (Builder/instance, tried both) but failed to get an instance of key event to recognize. Because the button based around an event, I'm not sure of how to reference. I've stripped a lot of the code, but has left the classiquee function as button events are related to a structure of dynamic loop, the main reasons why I can't move the buttons to a different class.

    The example looks like this:

    package {}

    import flash.display. *;
    import flash.text. *;
    import flash.utils. *;
    import flash.events. *;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import com.greensock;
    com.greensock.easing import. *;
    com.greensock.plugins import. *;

    Thumbnails/public class extends {Gallery

    public void Thumbnails()
    {
    trace ("LOCATION: thumbnails");
    }

    public void initThumbs (root_mc:MovieClip, site_mc:MovieClip)
    {

    trace ("THIS, PARENT:" + this, parent, site_mc);     WORK

    }

    private function _onDataReady (evt: Event): void
    {

    function overThumb(evt:MouseEvent):void {}
    TweenLite.to (site_mc.gallery_mc.title_mc.txtTitle_mc,.5, {alpha: 100});
    TweenLite.to (site_mc.gallery_mc.title_mc.txtRollover_mc,.25, {alpha: 0});
    }
    function outThumb(evt:MouseEvent):void {}
    TweenLite.to (site_mc.gallery_mc.title_mc.txtRollover_mc,.5, {alpha: 100});

    / / Only trace site_mc
    TweenLite.to (site_mc.gallery_mc.title_mc.txtTitle_mc,.25, {alpha: 0});
    }
    function upThumb(evt:MouseEvent):void {}

    } / / END OF upThumb()

    } / / END of onReadyData

    } / / END OF class
    } / / END OF packet

    I'm trying to figure out how to get the reference site_mc to the key event so it can trigger others clips nested inside (gallery_mc, etc.). If it's AS2 it would be a piece of cake, but now I have all these invisible walls for the passage of variable.

    If someone can tell me where my logic is wrong with that, so I can connect the dots, I would love.

    you don't need to redefine something nested clips.  you just need to get a reference to site_mc outside your Builder.  When a parameter (such as site_mc) is passed to a function (constuctor, another method of the class or only a function defined on a movieclip timeline simple vanilla), the parameter is only available in this function for this particular function call.  If you want available elsewhere, you must define a variable that is available elsewhere.

  • Context of sequence of LabVIEW user interface access

    I'm trying to find a way convey the context of the sequence into LabVIEW Advanced User Interface. I need to check the values of some globals to the station before opening a movie file.

    I was looking for a way to send a UImessage to frontendcallbacks.seq that contains the context of the sequence, but I couldn't make it work. What is the best way to access the context of the sequence of the user interface?

    Hello

    In your user interface, use the Engine.Globals to get a reference to the StationGobals, then you can use the PropertyObject.GetVal and SetVal to read or write to the necessary StationGlobals.

    Concerning

    Ray Farmer

  • How to get the overall result sequence into LabView?

    Hello

    Could someone can help with this little problem?

    We have a batch (.bat) that launches a list given TestStand sequences, which works as expected.

    However, we monitor the results of each sequence and display it to the operator.

    Our idea is to get the result of the sequence in a VI, executed at the end of the sequence and add it to a queue, which will be extracted and displayed on a monitor of VI, executed separately.

    The only problem we have left must be able to recover the overall result of the sequence. Any idea or suggestion?

    Thank you

    Raphael

    Thanks for all your replies. We finally finished queues sequencefailed node sequence context property value.

    I also discovered the TestStand database logging and began to use it in parallel.

    Thanks again

  • How to call sequence into LabVIEW, by providing the path of the sequence files.

    Hello

    Please give me a solution for call sequence from the API ActiveX LabVIEW file by entering the path of the LabVIEW user interface sequence.

    Thank you

    Wherry

    Here is a link I gave some pointers on how to run a file opened via Single Pass sequence.

    http://forums.NI.com/T5/NI-TestStand/direct-execution-of-the-sequence-when-UI-launches/m-p/2000819#M...

    How are you going to start this sequence is the user who selects the sequence on the disk?    Is already open in a SequenceViewMgr control?

    An operator interface would be more applicable to your situation?

    Thank you

    PH

  • I'm trying to generate an arithmetic and geometric series/sequence with JavaScript.

    I try to generate an average arithmetic and geometric
    series/sequence with JavaScript. The thing that makes this challenge is that
    I use user input to determine the parts of the formula that I use for
    generate each sequence. I tried running the formulas, but I learned that I was
    channels running through them and not numbers. How to generate my
    sequences/series and always use user input? PS, here's my formulas: (a1-East
    first term, d and r are difference/ratio, and n is the n-th term)

    1.) a1 + d * n  

    2.)a1 * r^n

    Entry user of a form is always a string. There are several ways to convert a string to a number in JavaScript:

    • Pass it as an argument to Number()
    • Pass it as an argument to parseInt() (for an integer)
    • Pass it as an argument to parseFloat() (for a floating-point number)
  • no option to create a sequence with uncompressed video playback


    Hi all!

    I can't find the option in the new CC Pro first "create a sequence with uncompressed video playback.

    The reference (p. 176) of the Adobe website manual reads:

    "...

    1. Choose file > new > sequence.

    2. in the dialog box new sequence, click the general tab.

    3. in the Edit Mode menu, choose the desktop.

    4. in the time menu, choose the desired rate, such as the 24, 25 or 29.97 frames/second.

    5. in the video section, choose the settings you want for the size of the image, the pixel format, fields and display Format. For example, 1920 x 1080,

    Square pixels (1.0), no fields (progressive scan) and offset 30 fps timecode.

    ..."

    I can't find any tab general and according to the editing mode in the dialog box new sequence at all!

    There are only three tabs:

    Sequence of Presets, parameters, tracks

    What I am doing wrong?

    Hello

    You will find what you are looking for on the settings tab.

    1. file > new > sequence

    2. in the dialog box new sequence, click on the settings tab (do not use CS6 or 5.5 in front of me but I think it's an old copy).

    3. in the Edit Mode menu, choose custom

    4. in the preview File Format, click Quicktime

    5. in the Codec menu, choose your /As option

    Screenshot see annex for reference.

    Peter Garaway

    Adobe

    Premiere Pro

  • Start the sequence of transmit API

    I use the API to pass to get the timecode of the sequence it plays. I am using the respondent and work on the number of seconds between ticks.

    This gets the number of seconds from the beginning, which is fine if the sequence starts at 00:00:00:00, but if it starts to 01:00:00:00 or some other value, then, all the timecode values are wrong. I couldn't find a way to get the sequence starting position - am I right assuming that there is no such a function?

    Hi Jon,

    This call is not yet available, but we had a demand for it, and track as bug #3218723.

    See you soon,.

    Zac

  • Change the path open the initial sequence of the operator Simple of TestStand with LabVIEW Interface

    Hello

    I use an Interface with LabVIEW TestStand operator similar to the TS IO Simple example.

    But I want to change the path when you click the button open the sequence file, I want a specific path.

    Any help is apreciated.

    Kind regards

    Daniel Coelho

    Daniel, you might be interested by this Knowledge Base:

    How can I change the default directory for the open file dialog box in TestStand?

    I searched ni.com for teststand of dialog box open the file and it was the fifth or so link.

  • Generate a binary sequence with the NI USB-6008

    Hi all

    I'm new to LabView and I am trying to generate a binary sequence with a box NI USB-6008. The sequence, I'm currently generate is a counter of 5 bits, i.e. 00000 00001 00010, 00011... 11110, 11111 placing each bit in a different digital IO of the of the 6008 NOR, so that I can use the County as the bits of selection in a decoder/demux.

    I managed to simulate the binary sequence and produce a graphical interface, but I have not found how to generate the sequence of bits with the NI 6008.

    Totally, I'd appreciate any help you could provide. Thank you very much.

    Hi JosephM,

    Good Afternooon and I hope your well today.

    I just tested the code on a 6008 and also released the above code is very complex - I was for some reason any fixed on using Boolean tables.

    Please see the attached code, in LabVIEW 8.6.

    Mind you, I have configured the task as a channel for all lines. i.e. digital single I spent, is the task value should apply to all channels selected in the entry. So if you select only port0/Dev8/$line0 for example, the DAQmx driver will examine the LSB of the digital and work so $line0 must be true from the false. It will NOT update all other channels. So when I select line0:4 - it will update the first 5 lines (bits) in digital. As the code generates a number from 0-32 he emotional generates 00000 to 11111.

    I hope this finds you well and sorry for the first post!

  • Sequence with several increments

    In our database we have a sequence that is used by different applications 2.

    The application queries A * 1000 * ID, it will use.
    Requests for application B * 100 * ID.

    A possible solution might be the following:

    The sequence is created with increment * 1 *.
    The applicant seeks the nextval.
    The application removes the sequence.
    The app recreates the sequence with the value he got + 100/1000.

    The problem here is that these applications consist of multiple threads. When thread 1 is the sequence and 2 request the nextval thread, the application will fail.

    Another solution might be the following:

    The sequence is created with increment * 1 *.
    The applicant seeks the nextval.
    The application increments the sequence with 100/1000.

    Here, I am a little worried about the thread 2 asking the nextval after Threading 1 asked the nextval but before Threading 1 incremented sequence.
    Maybe if run as 1 transaction, this problem does not occur?

    I would really like to know your opinion on this.

Maybe you are looking for

  • Highlight the parts of an email address on macbook

    I am typing an address e-mail with only a part of it said - this part before the @.  Mail keeps correcting and highlights the entire address.  Any suggestions?

  • Flow 11: 11 stream Webcam blurry

    I have a netbook HP flow 11 is in a State of almost nine. Everything is going well except the webcam product a blurred image, and there is change of color. for example, my light blue eyeglases gaze. I tried to install YouCam, but it is blurry, there

  • How to search a text with a particular value node in a document xml with labview

    Hi, here is my xml doc.       FA     1800     2015     1952.5         ADF     2.6 G     1880     2635     2635   I want to use 'get the first matching node' vi to locate the node of "FA". The I use vi "To get the content of the text node" for the val

  • How to format a CD?

    I have a new laptop with Vista Home Premium and don't know how to format a blank CD discs?

  • Need a logic sql to insert from one table to another

    I have a table ( TABLEA ) as follows: type_id level ------------- 1       7 2       4 I would like to insert above values in another table ( TABLEB ) through DML so it looks like so: seq_id type_id name    order level --------------------------------