From LabVIEW, how do I programmatically determine 'open thermocouple' status on a TC-120?

Apart from getting a large value (e.g., 1770 degC) on the channel when doing a FP Read, and getting a 33443 warning:
'Bad channel status reported by several channels. At least one channel is in one of the following states: Unconfigured, Bad Status "A", Bad Status "B" : FP Read.vi'
I can't find any utility VI which would give me a definitive 'open TC' status. Since MAX can report this, I figured there had to be a corresponding way in LabVIEW.
Thanks in advance for responses!
Dave
David Boyd
Sr. Test Engineer
Philips Respironics
Certified LabVIEW Developer

Thanks, Aaron. I admit I hadn't tried a single-channel read to see if the error got more specific.
I guess I shouldn't be so nit-picky, but it might've been nice if there were a multi-channel 'read status' FP VI. Having to read individual channels (with all those associated FP tags cluttering the BD) just to get status seems a bit inelegant, and defeats the efficiency gains of doing a module-wide read.
Alternatively, this looks like one of those places where returning 'NaN', or '+Inf', '-Inf', on a floating point FPRead, would be appropriate.
I suppose I can do an array test for '>=1770', then manipulate the data to convert open channel readings to NaN. (I like NaN since multiplot charts/graphs handle it as a pen lift, and omit it from aut
oscaling.)
Thanks again!
Dave
David Boyd
Sr. Test Engineer
Philips Respironics
Certified LabVIEW Developer

Similar Messages

  • How do I programmat​ically open block diagram?

    Hi, All
    How do I programmatically open block diagram of subVI and add frame to event structure
    Thanks,

    Could you be a bit more specific on what you are trying to do?
    Do you want to programmatically edit an existing VI that is currently not running? As mike said, scripting could work but it is unsupported (see the Lava scripting forum for details: http://forums.lavag.org/LabVIEW-VI-Scripting-f29.h​tml). Somehow, adding an event case does not give you much, you would also need to add the code contents and hook everything up to the existing controls, indicators, and other nodes.
    If you just need an event that is not always active during run, maybe you can use user events. Check the online help. (Also have a look at e.g. section 4 in the following application note:
    http://zone.ni.com/devzone/cda/tut/p/id/2994.
    LabVIEW Champion . Do more with less code and in less time .

  • How we can detect the open Thermocouples

    I need to check for open end in thermocouple. I wanted to know if the SCXI-1125 itself checks for the open end?, and how can i know that a thermocouple is open ended.?

    Ole H wrote:
    You will read something like 275 degrees centigrade.
    Ole
    Most front-circuits for thermocouples I have seen have the feature of detecting an open thermocouple. Usually a small amount of current is fed across the thermocouple, and since its dc impedance is rather low a small current will cause only minor output voltage error, If the thermocouple is open the impedance is inf., and the small current across the open thermocouple will cause a rather high input voltage. The signal conditioning circuitry will read a temperature which is out of reasonable range.

  • How do I programmatically determine the cursor legend refnum?

    I am determining the controls and such of a front panel programmatically as I have a need to be able to modify panels quickly without the manual editing necessary. I need to know how to determine the refnum of a cursor legend for a waveform or XY graph in a programmatic fashion rather than by creating a reference node.

    That is a good question. The cursor legend reference is not returned if you get a list of all the object references. The graph is, so you can get its reference and get the cursor legend reference from it. You probably only need to look at the ones with a visible property set to true.
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • When I call an external program from Labview, how can I embed the interface into the front panel?

    I'm running Labiew 6i for Linux. I'm using a system exec.vi to call an external program to do image manipulation (since there is no IMAQ for linux). How can I embed the user interface of the external program into the front panel of Labview?

    As far as I know, the only way to embed other GUIs in LabView is an ActiveX in a container.
    As long as you are using Linux, try to place (moving them on the desktop ) the two windows linked (like those 3 of WinAmp).

  • How can I programmatically determine the capabilities of a card under NI-DAQmx (e.g. max sample rate, number of AI/AO/CTR channels, etc.

    Is there a DAQ_Get_Device_Info() equivalent for NIDAQmx? I need to iterate thru all the devices on my system, and build up a list of device capabilities. The system may include M-series and E-series cards.

    Attached is a program I've used in the past to determine number of AI channels. It could be easily modified to check for AO or digital or counter. Also, there is a ton of properties that you have access to (i.e. max sample rate, max/min voltage inputs, etc.) that are accessed as properties of the type of channel, or timing properties, as opposed to properties of the board. Check out the DAQmx C Reference Help (Usually at Start>>All Programs>>National Instruments>>NI-DAQ). Expand the NI-DAQmx C Properties, and look at the List of Channel Properties, and Timing Properties, etc.
    -Alan A.
    Attachments:
    Device_Info.vi ‏25 KB

  • Open application from labview

    How is possible open a file from labview?

    You can use the Open File VI in the Advanced File Functions Menu. But
    if what your trying to do is to open an Application, then you will
    have to make use of the ActiveX possibilities in LabVIEW. If you need
    more specific information in how to do this, I'd recommend you to give
    more details on what you want to do exactly.
    Cheers
    Mamian

  • How to programmatically determine if  an object is ready to be destroyed?

    Dear All,
    How can I programmatically determine that whether an object is ready to be garbage collected? I know that the garbage collection process is not guaranteed to occur until the JVM is close to running out of memory. Yet, it is also said that an object is ready for garbage collection if there are no more references to it. Therefore, I am wondering if we have means to know whether an object is ready to be garbage collected, even though that may not happen yet.
    For example, if I define such a simple class structure:
    public class A
    B b = new B();
    public void methodA()
    b.printB();
    public static void main(String[] args)
    A a = new A();
    a.methodA();
    class B {
    public void printB() {
    System.out.println("from B");
    Here I am assuming the object b (of type B) is ready for garbage collection BEFORE the object a (of type A), because the object b is declared and created as a field within object a. Is this assumption true? If yes, how can I verify that during runtime?
    Thank you very much for any help!
    -- SunnyDay

    1. It seems that the System.gc() should be called to make sure garbage collection is performed so that all those WeakReference objects are put into the ReferenceQueue (suppose no strong references to those
    objects to which the weak references are pointing). Is all of this guaranteed to happen? That is, is it guaranteed that those weakly referenced objects are being garbage collected and their WeakReference objects are put into the queue, whenever the System.gc() is called?
    No, it is not guaranteed. Though it seems to be true for current implementation of JVM, where System.gc() usually does Full GC. However, you should not rely on this and it can be in fact changed in future implemenations.
    2. The WeakReference description says the garbage collector may enqueue the newly-cleared weak reference "AT SOME TIME AFTER" the weak reference is cleared. If this happens to be the case, how can I know which
    object is deleted first in my example (e.g., if the weak reference of object A is put into the queue before that of B, it may falsely indicate object A is destroyed beofore B)?
    Yes, it is quite possible for weak reference to be enqueued in different order.
    3. Suppose System.gc() is called and an object's weak reference is put into the queue, can I still know which object is being destroyed at this moment?
    You can't. In fact, java threads may be stopped while GC is running. GC may free memory for multiple objects at once (which in fact happens with Mark-Sweep algorithm). So, "destroyed at the moment" does not make sense from this perspective.
    If can gave us more details on what you are originally trying to do, probably we could find another solution.

  • I would like to create a pop-up window appear from Labview Interface. In this window, I will have a slide control and an image taken from a camera. The main VI have to run while pop-up window is open. How can I do ?

    When I pushed a button, this pop-up window has to appear. There will be a slide control and a picture from a camera in this window. Is it possible to make appear this windows while main VI Interface continue to run ? How can I do this ? Thank you for your answers.
    Cyril.

    Here you go. This is simple example. Maybe not the best way, I am just
    beginner in LV and still not comfortable with data flow that much. I prefer
    events, so I would change this to use Event Structures.
    When you click on OK button on SliderMain, it opens Slider.vi. Now both
    windows are open and you can interact with both. Now if you click on OK
    again with Slider.vi open, you run into problems. Only thing I did was
    change VI properties of slider.vi, mainly window appearance.
    vishi
    "Cy" wrote in message
    news:[email protected]..
    > I would like to create a pop-up window appear from Labview Interface.
    > In this window, I will have a slide control and an image taken from a
    > camera. The main VI hav
    e to run while pop-up window is open. How can I
    > do ?
    >
    > When I pushed a button, this pop-up window has to appear. There will
    > be a slide control and a picture from a camera in this window. Is it
    > possible to make appear this windows while main VI Interface continue
    > to run ? How can I do this ? Thank you for your answers.
    > Cyril.
    [Attachment SliderMain.vi, see below]
    [Attachment Slider.vi, see below]
    Attachments:
    SliderMain.vi ‏16 KB
    Slider.vi ‏11 KB

  • How to open a text-file with notepad from labview-vi?

    Hello,
    how can i execute a program from a vi?
    I want to open a textfile with Windows7-Notepad after selelecting it from a file-path-control and pressing an open-button.
    Thx for help
    Solved!
    Go to Solution.

    Use the command line.  Something like cmd /c notepad c:\temp\blah.txt should work.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to edit an opened spreadsheet entry from LabVIEW

    I would like to provide a GUI in LabVIEW for editing a spreadsheet (which uses custom addIns) which I open from LabVIEW. Is it possible? Any help or example is appreciated.
    Thanks in advance.

    Found a VI in the examples. If anyone wants to do this in future , here is the name of the sub VI:
    Set cell Value With Range.vi in Excel Macro Sample.vi
    Other suggestions/examples welcome, though.

  • How to freeze and unfreeze panes in window by using Excel from LabVIEW

    Hello
    I am creating an Excel Report file programmatically using LabVIEW. I make the row headers for the sheet and store data using the program.
    The requirement that i need is that when the user opens the Excel sheet, the row heading should remain fixed at top, as the sheet is scrolled down by the user.
    This is possible in Excel, by clicking on Window in the menu bar and then select Freeze panes/Unfreeze panes. The same operation i need, to be done from LabVIEW. Please let me know how this can be done.
    I use LabVIEW 2009
    Thank you.
    Solved!
    Go to Solution.

    Please see this discussion. TCPlomp has an example of how to achieve this.
    Cory K

  • What is the easiest way to open an application from Labview?

    I need to open an application from labview and depending on a user's selection, load one out of a group of files for the application that is opened. I need to know what is the best or easiest way to open an application and load a file that is used by the application based on a selection.

    Here is the response that I got from Cognex when I asked them about how to do this. Do you understand what they are talking about?
    In order to do something like this you will probably want to look into the Display Control/SDK for In-Sight. The Display Control gets installed along with In-Sight Explorer and includes a control that can be used in an environment like Labview to communicate with In-Sight sensors while the SDK is an enhanced version of the Display Control that gives you more control and functionality. I am not very familiar with the Labview environment so I will give some code snippets in VB.Net and hopefully you can adjust them as necessary. Specifically I see 3 possible avenues to do this:
     1) Using the Display Control you have access to many of the dialog boxes that are used in In-Sight Explorer including the Load Job dialog box. You can spawn this dialog box through a line of code similar to cvsInSightDisplay1.Edit.OpenJob.Execute(). I am not certain if the Labview environment will be able to spawn and display this dialog though. 2) With the addition of the SDK (additional purchase) you can directly access sensor properties including the job. There is a method called LoadJobFile to load jobs from on the sensor and LoadJobFileLocally to load jobs from the host machine. A typical line of code might be cvsInSightDisplay1.InSight.File.LoadJobFile("myjob1.job").3) If Labview cannot handle the dialogs and the SDK is not an option for you then you may still be able to do this using Native Mode commands. Native Mode commands are sent through a socket on the telnet port (typically port 23). Keep in mind that you will need to handle the username/password prompt and response when you first open the socket before issuing any Native Mode commands. The command to load a job file from the sensor would be the Load File command which would be a string similar to "LF myjob1.job". The Native Mode commands are documented in the In-Sight Explorer help file. 

  • Open vi reference conversion from Labview 6 to Labview 2014

    Is there a way that someone can help me convert this VI written in Labview 6.1  so that I can work en EXE in Labview 2014.
    I succed to open this vi from 6.1 to 2014 but it does not run. The open vi reference those not work in exe program. Someone know how I can  replace that function...
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    to convert 2104.zip ‏17 KB

    Error 7 is File Not Found.  So your dynamically called VI is not in your executable.
    In the build spec for the executable in your project, there is a section for "Source Files".  On of the options for the VIs is "Always Include".
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

Maybe you are looking for

  • Reg: save exit and cancel buttons

    Hi, In normal report programs when we enable the back , exit and cancel buttons they work fine without writing any code.but its not in the case of Module pool why? In thr normal reports where does the code come from? regards prasanth

  • How to make Vertical Text start furom left to right?

    Sometimes some customers must be vertical text from left to right This is mainly for Asian fonts Whether it can be achieved with script,Or are there other methods? Thank you~

  • Portions of text on some sites are are over-written

    Using FF 4.0.1, the text on some web pages over-writes other text. If I open the same page in IE it appears correctly. This can lead to problems if two hyperlinks are over-written

  • Problem Installing MSBS 6.6 on Dell 2900 Server

    I have a new Dell 2900 server with 2 140 GB SATA hard drives and an SAS/SATA 5/i No Raid integrated controller. I'm trying to install a new copy of NSBS 6.6 SP 6 and the whole copy process seems to finish normally but when it reboots it says 'No oper

  • Updating table w/c is not part of the block in the form

    Greetings!!! I have a problem in updating table that is not part of a form's block. This is the scenario: Table Number 1(block in the FORM): TABLE_A A_ID NUMBER A_VALUE VARCHAR2(1) PRIMARY KEY IS A_ID Table Number 2(Not included in the form's block a