OMICRON refnum

I have an Omicron CMC 256 + and drivers installed for labview. Im trying to create a vi that will allow me to communicate with the Omicron, however, I do understand not how to use refnum. Can someone help me with this please.

These drivers were written by Omicron, not OR, then you will need to confirm with them. My guess is that you must select the ActiveX class, once you install their universe Test tool, which is required to use these drivers.

Tags: NI Software

Similar Questions

  • RefNum null

    Hi all

    I have a very simple question, I need an expression to detect a null refnum.

    I'll send the TestStand StationGlobals.TS.CurrentUser.LoginName for the user through the FrontEndCallback.seq by using the UIMessage Interface. There are times where the StationGlobals.TS.CurrentUser does not exist (i.e. when the user click on the button 'Cancel' in the connection dialog box). I want to detect this situation by checking whether the StationGlobals.TS.CurrentUser is a null refnum. I tried the following expression as

    StationGlobals.TS.CurrentUser is nothing

    or

    StationGlobals.TS.CurrentUser is nothing

    but all do not work.

    Can someone tell me please the expression to detect a null refnum?

    Thanks for reading

    chati

    Sorry, didn't read your post correctly...

    StationGlobals.TS.CurrentUser is the type container. To check if it has been created, you can use the API PropertyExists function

  • Table 1 d to refnum

    Hello

    I'm filling table 2D with 0 using 2 for cycles and writing to a binary file, but I have the problem with the types of data - source type is table 1 d, but sink's refnum. Can you help me?

    Hi enapolo,

    convert the tunnels of input/output of the reference file for registers to shift (by right clicking on them)...

  • How to copy an a refnum xygraph is - a?

    Normally it's simple enough to get my own.

    Purpose:

    Col Refnum XY graph for Subvi-->

    Purpose of Subvi: PRINT XYGRAPH to file/pdf/bmp, manipulate the xy graph more (back ground color change to leaving for printing, leaving graph xy for printing size, move the legend), perform simple analyses on the data (rms, pkp etc.)

    Problem statements:

    1 when you use a refnum, any change in writing refnums property value will also change the parent, i.e. the Subvi xygraph.  This is not desired, then an exact copy of the xygraph must be made.  HOW DO YOU DO THAT?

    2 when you use a refnum for a xygraph, how do we get the xy values?  If the value property node is selected, a variant is produced.  (which, after careful examination, I was still not able to make heads or tales of this particular variant)

    PS a refnum is used because the xygraph was already formatting applied to its legend, axis, plots, etc.  A refnum passed to a Subvi is the only way I know to succeed all formatting etc. for the chart.

    PPS. I understand that there is an invoke node that will export an image, it contains certain restrictions (for example, requiring that the Subvi be open, because it works by rules similar to a print) which make the United Nations applicable to this problem.

    You must use the variant data to convert the variant into the native data.  XY charts can take data in several formats, so you can simply create a constant to your XY graph, dump all the data to get the appropriate format.

  • NaN/PathRefnum? function unnecessary production responds to path, Refnum

    I found similar topics, but not quite the same thing, AFAICT.

    I'm just trying to see if an INI file exists, so I created the following excerpt:

    I also created a small file, put in my C:\ directory, which I have attached here.

    When I run the program of LV with C:\test.ini, my indicators come out as NaN/Path? : false, NaN/Refnum? : true

    I tried to interpret as (1) a path valid (this file exists) and (2) a refnum does not exist (even if the refnum came from a sub - VI provided by LV).

    I then replaced by control (find file) C:\test.in (sliced final 'i') and the two indicators gave me the same results. That really impressed my first interpretation, and I can't come up with anything else that makes sense.

    Thus, for paths and refnums, what happens here, if anything?

    I saw that the second test threw an error of the Sub - VI 'Open Data of Config', so I can use it for my test, but I would like to know if the NaN... function is actually good for something other than numbers. If this isn't the case, IMHO LV should change its designation on the pallet.

    Cameron

    That you use in a puzzling oddity of LabVIEW refnums. To check if a configuration file refnum is valid, you must not use "a given Config Refnum.vi" in the range of screw Configuration file. The ' NaN/path/Refnum?' function works only for refnum types that are built-in LabVIEW, such as queues, TCP sockets and file references. The screw configuration file are built in LabVIEW, LabVIEW rather than integrated and refnums they use are not 'real' refnums in terms of LabVIEW, they are just data wrapped as reference datalog (something for the creation of unique types of pseudo-refnum). You will see several other pallets which also includes their own functions in order to check whether a refnum is valid, such as pallets of semaphores and appointment management.

  • Creation of Refnum Automation to Excel

    Hello

    So I've worked to read Excel documents with report generation tool, but realized the document I was trying to read is password protected and requires an update link (PivotTable).

    Searching I found an accessory useful toolkit Joe_H (post #2) http://forums.ni.com/t5/BreakPoint/Excel-Board/m-p/379682 . I try to recreate its VI, but there are some things I don't understand. (I started only working with refnums & variants)

    My Questions:

    1. referring to my 'refnum.png' attachment, black refum automation is copied from example VI and purple is what I tried to do. They have the same ActiveX class, but purple throws an exception error 3005. I can't find the refnum of the black arrow.

    Googling this error, gives a solution, but I can not understand how to use or if it applies to me. http://forums.NI.com/T5/LabVIEW/error-3005-occurred-at-Automation-open-using-ActiveX-RichText-box/TD-...

    2 referring to 'excel.png' for the node invoke - workbooks, how is a person knows how to use the data types variant? For example, WriteResPassword I just tried to use a string and it worked. I noticed that the help info gets thinner when working with property/Invoke nodes.

    Thanks for your time.

    I don't know why the difference in colors between the refnums, but I doubt that's the problem. Looks like it's just an artifact weird opening a VI from an earlier version of LabVIEW. If you convert this refnum control to a constant and then again to a control, it will turn pink, but I guess it will always work. Can you show the code showing you how you use this refnum?

    As mentioned nyc, you refer to the Microsoft documentation to determine what kind of data for wire entry variant. There is no documentation of LabVIEW because it is not a component of LabVIEW.

  • Transfer config data refnum problem

    I have problem of storage and transfer of value of refnum of configuration data.

    The value displayed using the seam of the probe to be OK, but it is not accepted as soon as a continuous run is used.

    The attachment shows what I tried.

    How the value of refnum of configuration data can be managed?

    Do not use run continuously.  It is designed for purposes of debugging, not to run your code normally.  If you need your code to continue to operate, put in a while loop (with a sort of timer loop as the function of waiting (ms), while it is not run as fast as possible and consume all your CPU time).  The use of "Continuous run" is like hitting the button run over and over, and some things reset each time you press the run button.  For example, whenever a first level VI ends, all the references he opened - queues, file references, TCP connections, etc. - are closed and become invalid.  This is what you see - whenever the VI ends, it closes the file, so well that the refnum still contains a value, that value is therefore more a reference valid to a file.  Use some time to keep your code running in a loop instead, and it will do what you want.

  • write a graph in a cluster using a refnum does not?

    Hi all

    A little bit of a weird (I think). I'm trying to update a table that is in a cluster using a refnum.

    See the attached example, Boolean updates correctly, but not the graph (above). Y at - it something I'm doing wrong or can graphics simply can't be updated in this way?

    With the help of LV 8.6 in Win XP (SP3).

    Ideas?

    PNR

    It does not work. You must remove the reference for the cluster chart and update it in this way. See attached mod.

  • event refnum

    How to make a'Cluster of Refnums in the event for the cluster of entry of a bundle by name.

    I'm trying to understand the function of an existing code, in the code he used a cluster of event refnums as imput for the bundle by name. Unfortunately, I can't yet to duplicate the code, because I can't understand how he got the Refnum event icons in the first place.

    I'm new to LabVIEW and would appreciate any information you can provide.

    Thank you for your help,

  • Refnums and casting table

    I have 8 bays on the front of my VI. I created refnum for each table.

    I build an array of these refnums and pass this array to a Subvi.

    LabVIEW is cast some the refnums and not others as evidenced by the red dot on the table element to build.

    The berries of all of the double rooms.

    Why is this happening?

    A table must contain elements identical types, differing only by value.  Indeed, the elements must have the same properties!  Its likely that some of your double arrays have different dimensions (1 d, 2D), display, or even that some formats are controls and other indicators.  The refnums will be get under duress to 'type common less generic.'  Sometimes it's OK but often dangerous if you are working with any property other than 'value '.

    Grouping clustered Refnums can avoid these coersions.

  • Type of descriptor & cast a refnum

    Hello

    This question is a re-opening of this old thread, which ends with a non-response... (given that the proposed solution is supposed to disappear one day)

    http://forums.NI.com/T5/LabVIEW/LabVIEW-8-2-control-RefNum-type-descriptor-missing/m-p/592060/highli...

    So how can we actually down a generic refnum (command in the following example of VI) at its initial type?

    What I don't understand is that typeDesc property missing node, but type descriptor is still (and always will be of course, see http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/type_descriptors/ )

    So what?

    OpenG libraries use the descriptor type for many operations, but for refnum, apparently to stop down at the generic class of 'Server VI'.

    (in case you're wondering, I'm essentially looking for the same things, made the library of OpenG_Variant_Configuration_File, but rather than use the dataset, I want to use the cluster of references to data)

    I guess (and hope) it is very simple replacement of the old node of obsolete property or solution to this problem, but I can't.

    Any help?

    OK, been looking for this for hours, but of course, that I found the obvious answer right after asking.

    Just need to "unzip" the type descriptor internal using the node property value... OO...

    Display answer to my problem just in case something one day asking the same thing.

  • RefNum Slide 'Visible '.

    I have a Refnum to a slide (which is passed to the Sub - VI).  The slide is on the Panel of the parent.  I spent the Refnum zipper to the Subvi using 'Static Reference of VI' and 'Invoke node with Val.Set Ctrl', the problem is that the slide is visible only when you use it.  I can't see how to get to the Visible property of the blade in the Subvi through its Refnum.  Is this possible?

    Hi Christopher Povey,.

    Check the attached report. Let me know if it helps.

    Kind regards
    Nitz

    (Bravo to give good answers, mark it as a Solution If your problem is resolved)

  • Mechanical action and control refnums button

    LabView 8.6 running full (not 8.6.1) on Windows XP SP3

    I have two buttons for which I created references to pass to a subvi (to control

    visibility of the buttons during initialization).   On the Sub - vi are two Refnum controls

    strict ("Include the data type" is checked).    However, at the higher level, the two refnums for

    the (apparently) identical buttons are different.   A refnum is strict, and the other is not!

    Of course, it was a problem because it wouldn't let me connect the refnum at the

    Sub - vi.

    I tried different combinations of duplication and re - bind the objects of reference, but it

    always came with a strict and the other not (always the same the same)

    way).

    In the end, I found that the only difference between the two other than buttons

    the name of the label and the Boolean text is that the mechanical actions were different:

    -the button which the reference was strict "lock when press".

    -button with the non-stricte reference a 'Switch to exit.

    Is there a reason why the choice of mechanical action

    should affect the "rigor" to a Boolean control refnum?

    Or is this just another trait 'unexpected '?

    (Not a problem because it was the wrong mechanical action)

    has chosen to start with the option - which fixed and solved the problem.  But it

    looks like it might be something interesting to learn here.)

    Thank you and best regards,

    -- J.

    When you have a mechanical locking action, you cannot use the Value property to read the value of the control. Thus, its data type (which is what makes it strictly) is not included. That's my guess.

    In general, the right thing to do would probably be to click with the right button on the reference control and uncheck the box include Data Type, which would make it not strict. In addition, could have tried cast of the reference to the class that you want to, but you would want that it works as if it were in fact of the class concerned.

  • event recording refnums data types do not match

    Hi all

    I'm new to LabView and I need help. Here's the situation:

    I am trying to add a user event by using the function 'create a user event '. The output of the function 'create a user event' placed in a control "Event Reg Refnum" (do not know if it is a control), but see diag2.png. But as soon as I add the user, the thread event at the entrance to breaks "event Reg Refnum".

    I think I know sort of what the problem is, as stated in the context-sensitive help, where the 'Reg Refnum event' has only one data type, which is "User event - Quit Application event". The user event that I add, 'Event to end execution', is not in the "event Reg Refnum".

    The question is: how to extend to the Reg Refnum 'event' to include 'Event - event to stop executing user' to solve my problem?

    Can experts out there if you please help me?

    Yours,

    chati

    Hi chati,.

    the fastest way to do this is to cut the connection, create a control on the exit of 'register of events' and add this to the cluster instead of the original refnum.

  • Obtaining object with GObject Refnum values

    Hi all

    I'm trying to produce an XML file that contains all the information objects (controls and indicators). I have a chart of all the GObject Refnums using the Node property, but I need to get items out of these references. Anyone have an idea how I can do?

    Thank you

    His bet

    I don't know what you mean by the property Value has only information of Val, if you follow my instructions, you see that the value is a variant with all the information that you get by plugging the control directly, with a little more because it is encapsulated in a Variant.  See the example where I also shows a quick way to remove the overcoat variant contributing to legibility, but I would skip this if you want to read the file later and reverse the process.

Maybe you are looking for