Relay module and DAQ Assistant

Hi everyone!
I'm a Labview beginner and currently dealing with a priori easy business. Recently I got a USB Relay Module to be incorporated in an alarm system. Let's say if one gets a certain value bigger than other, the relay should close and activate a siren (see example attached). For this I've used the DAQ assistant and configured one of the module output channel. By using a simple boolean switch, I can easily close and open the relay. However, if I use a case structure, an error is obtained, as the DAQ Assistant for one output can be only used once. I mean, if the relay is closed and I'd like to get back the original situation, i.e. opened relay, what should I do?
Schematically:
-if A>B, then closed relay
-if A<B, then opened relay
Sorry for the messy explanation, but I think you get the point.
Thanks in advance 
Solved!
Go to Solution.
Attachments:
alarm test.vi ‏44 KB

I just got it. The problem was that in the main vi, not in the example I attached, the same output via DAQ Assistant was configured for two different case structures. Obviously the relay module was going completely mad, since I had two independent pairs of TRUE and FALSE working at the same time. If I get, for instance, TRUE for one case structure and FALSE for the other, the switch doesn't know what to do. Hope now it's clear...

Similar Messages

  • USB-TC01 and DAQ assistant

    Hi
    When I plug my USB-TC01, I can use the .exe example in the module but with DAQ Assistant in LabVIEW I don't see it. When I use MAX, I don't see it.
    Do you know where is my problem ?
    Thanks.

    I am sorry to have to add onto a thread that has nothing to do with my question.  I have been searching and searching on how to start a new question (but have failed giving myself ~1/2 hr looking).  So once again ... sorry to the poster and people following this thread.
    Now ... my question is ... why will my PC not boot when the USB-TC01 is plugged in??  I have adjusted everything in BIOS to make sure I am not trying to boot from USB nor CD/DVD drives.  Other than that the device works fine once the PC boots.  I tried using a self powered USB.  I am using XP, Pentium D, 3.2GHz, w/ 2BG RAM.  Any help?  I will also continue searching on how to post new messages.
    Thanks.

  • Instr. and DAQ Assistants - Time to take off the training wheels?

    Hi everyone,
    I have written a control system program using a producer/consumer with state machine architecture - textbook LabVIEW beginner intermediate.
    In the producer, I have 6 different DAQ assistants taking AI and DI data from PXI mounted data acquisiton cards and two Instr. Assistants taking data from PXI serial ports.  In the consumer, I have a similar situation.  There are 7 DAQ assistants sending digital and analog requests to 3 different PXI chassis and one Instr. asssistant sending requests to a PXI serial port. 
    Is this frowned upon?  Would any of you pros call this a finished job if it is still bound with Assistants?  I have looked at the code involved in making these assistants into LabVIEW code (writing them out, so to speak), but it is complex and I haven't been able to put in the time to learn all of the different DAQmx and VISA functions and subVI's. 
    However, I have some difficulties that arise when, for instance, a component that is monitored/written to by a serial port is turned to manual control and the assistant times out.  It times out the entire control system, which is not desirable.  Is the fix in error handling, or getting rid of the assistants altogether?
    Any responses are appreciated - even if you are the bearer of bad news!
    Brad

    Hi Brad,
    Using DAQ assistants in a loop does come with some overhead. However if you are acquiring at relatively low speeds and do not want to use the DAQmx VIs, it shouldn't be a problem. Though programming using DAQmx VIs might look somewhat intimidating it follows a general priciple common to most I/O in LabVIEW. You open/create a channel, configure it, read or write and then close it. Generally, only the read or write VIs will be in the loop. So doing the creation and configuration every iteration of the loop is the overhead.
    I am not entirely sure what is timing out and what you are doing to cause a time out. There are two ways to generally fix time out errors. One, as you pointed out, is to handle the error. You can do this by unbundling the cluster to look at the error code, if it is a time out error, you can reset the error cluster.
    The other solution is to increase the timeout for the DAQ assistant. (Wire the time (in seconds) you want it to wait, to the timeout input of the DAQ Assistant).
    Cheers
    Malay Duggar
    NI

  • NI-4351 and DAQ-assistant

    Hi,
    I have tried to aquirre data using the DAQ-assistant and a NI-4351 (for PCI)
    DAQ-card. However, the assistant doesn't recognize or cannot find the
    device, eventhough it works perfect in the MAX test panel. Is th NI-4351
    card not compatible with the assisatant?
    Lennart

    Hi Lennart-
    No, the NI-4351 is not compatible with the DAQ Assistant. In LabVIEW, go to Help >> Find Examples, this will open the NI Example Finder. Double-click on Hardware Input and Output >> Traditional DAQ >> Analog Input >> General.
    In this folder you will find several example VIs that are written for this card and should help you get started. The names of these VIs start with "NI 435X".
    Be sure you see PCI-4351 or PXI-4351 in the list of "devices that can run this example," which is the box in the lower right corner of the example finder.
    Hope this helps!
    Thanks
    Tori

  • Recipe Management Using State Machines and DAQ Assistants

    I am writing LabVIEW code to control a conversion process for up to 4 devices on one apparatus.
    The operator will select from these 4 devices which ones will go through a conversion process. Therefore - they can select some or all of the devices to go through the process.  The process is the same for all 4 devices. The difference between the 4 are the digital outputs used for the conversion process.
    Clearly a state machine is applicable. However, I would like to "reuse" the process conversion code of the state machine by creating a separate recipe for each device and merely change the digital outputs (their physical location) for the device under conversion. Presently I have DAQ Assistants controlling digital ouputs for the conversion of one device. Is it possible to "reuse" the code by creating a recipe or a lookup table to reassign the DAQ Assistants to their proper physical location (the digital output lines) for the device under conversion?
    I could - copy and paste the code, go into the process and reassign every DAQ Assistant to the correct physical channel of each digital output for the other 3 devices. I was curious if there was a more efficient way.
    I see documentation online for recipes; however they are dated 2006. I thought there may be some updated examples.
    Using:
    LabVIEW 2011
    cDAQ-9188 chassis

    Hi MgDAQ,
    DAQ Assistant is a quick way to start acquiring data, however it's not the most efficient.
    Everything that DAQ Assistant does can be acompished with basic DAQ functions on the
    Measurement I/O -> NI-DAQmx pallete. For example, you can use DAQmx-Create Channel.vi and
    a Channel Constant to select the channel from which you want to acquire data.
    To get started with using the DAQmx functions you can browse through Hardware I/O examples in the Example Finder.
    Open up a new LabVIEW VI and then go to Help -> Find Examples -> Hardware Input and Output [folder] -> DAQmx -> Digital Measurements
    Now, as you probably know, copying and pasting code is inefficient and it's not a good programming practice. So what I would do is create the code for your conversion process and then simply change the channel constant to read the digital output you need.
    Mikhail
    RF Toolkits, Product Support Engineer
    National Instruments

  • I do not have the daq assistant vi on my labview 2010 and have found no drivers for it what should i do

    I do not have the daq assistant vi on my labview 2010 and have found no drivers for it. I downloaded the service pack but  that did not have it either what should i do.

    Hi Youzhang He, 
    Did you install LabVIEW first on your PXIe 8102 before the drivers?  Most likely, you're missing LabVIEW support for your DAQmx drivers. Fortunately, this is an easy fix. What you should do is open Add/Remove Programs, select National Instruments Software, select Uninstall/Repair. In the window that pops up listing NI software, select NI-DAQmx 9.x and select Modify. In the window that appears, expand Application Development Support and select to install LabVIEW support.  From here complete the install process and restart your system.  LabVIEW support should be installed and DAQ Assistant should appear in your palette.
    Allie

  • PXI-2548 relay module calibration

    #1)  Where would I find the date when my PXI-2548 relay module was first calibrated?
    #2)  Are there different ways to calibrate the this relay module and if so what are they?
    #3)  How often should this relay module be calibrated?
    Thanks,
    Julian
    Solved!
    Go to Solution.

    Hi Julian,
    The NI PXI-2548 does not require calibration because it does not have any electronic components that can get calibrated.  Therefore, there is no calibration done, there are no ways to calibrate the module, and there is no calibration schedule.
    Note that you can compensate for the insertion loss of the switch on a per path basis.  These compensations typically include the loss through cables and are performed when the board is placed in the end system.  This is more of an offset compensation for the system "switches+connectivity" rather than a board calibration; it is system dependent.  I recommend making this compensation measurement before proceeding with any automated testing.
    Hope this helps!
    Chad Erickson
    Switches Product Support Engineer
    NI - USA
    Message Edited by Chad PSE on 07-30-2009 05:21 PM

  • DAQ Assistent nor Data Neighborhood recognize a USB chassis and modules, but "Measurement..." does

    I am using Labview 2012 Full Development, and cDAQ-9188 8-slot chassis with Ni-9203 (current), NI-8205 (voltage), NI-9213 (thermocouples), and NI-9485 (switch) modules installed.  Measurement and Automation Explorer, Network Devices, recognizes the chassis and installed modules, evidenced by the serial numbers of each displayed. I have downloaded DAQmx 9.6.1.  Neither Data Neighborhood nor DAQ Assistant recognizes that the chassis or modules exist.  So far, I don't think I sound confused, but, I am.
    Solved!
    Go to Solution.

    Thanks, Marand.  As I wrote in the post, MAX Network Devices recognized the 9188 chassis, and listed the modules installed in the right-had panel.  Neither Data Neighborhood nor DAQ Assistant recognized either the chassis or the modules.  The solution was incredibly simple, but subtle.  CompactDAQ chassis and modules connected to the computer via USB are automatically recognized, and that is what I expected.  However, the 9188 is an Ethernet chassis;  while the chassis was recognized on "Network," I had to select "Add Device" to have MAX recognize the modules. Just clicking on that option populated the tree.  All is well now.  I should tell you the steps you suggested are exactly those suggested by an NI Applicatoins Engineer to whom I spoke.  It was during that conversation that I suggested selecting "Add Device" just because we had tried everything else.  Thanks again for your help..

  • How to properly read data from one DAQ-assistant and write simultaneously with another DAQ-assistant (which is inside a loop)

    Hello.
    I'm a newbie working on my Master's thesis conserning a project that is based on old G-code made by another newbie so bear with me.
    I need to create a sequance of output controls. For this I'm using a for loop that eventually creates two triangular ramps during a period of 90 seconds. I've confirmed that this function works properly by measuring the actual output of the DAQ-decice (NI USB 6353).
    The problem is the following: During this controll-cycle I need to simultanously collect data from the same DAQ-device. At this point there is only one DAQ-assistant output-block in the main loop of the program and all the signals are derived from it to where they are needed.There is a case-structure (the bottom case structure in the picture) that contains the functions needed to collect the data during the test cycle. However these two actions, outputting data and inputting data, are not synchronized in any way which may be the reason why I get the 200279 error or alternatively the 200284 error during the test cycle. I've tried changing the sample rate, buffer size and the timeout time as adviced but nothing seems to help.
    What would be the simplest way to solve this problem?
    Help is greatly appreciated!
    Attachments:
    problem.jpg ‏206 KB

    Thanks for quick reply.
    However, I did try it (see the picture) but I still have a problem: I only get 100 samples / channel during the test sequence (all from the first seconds of the sequence) in total even though I've set the data aqcuiring DAQ-assistant as "continous" and "samples to read = 95k" and rate is 1000Hz.
    Edit.
    And lastly, I have trouble adding this "extra" DAQ-assistant to the vi. because I get an error about a resource (The 6353) being reserved, even though I connected a false constant to the "STOP" -input of the main DAQ-assistant.
    Attachments:
    is_this_what_you_meant.jpg ‏212 KB

  • How can I read the active (plugged in) DAQs and then send that to the device name input on DAQ assist?

    I have a system property node for daqmx but it does not let me change it to read when i right click on it. I am trying to have my program detect the name of the daq that is plugged in to the PC and then send that to daq assistant so that it will run properly wiithout me manually having to change the device name every time i switch hardware.
    Solved!
    Go to Solution.

    labview12110 wrote:
    Im just frustrated that the only function I have is to get a list of things that I can't do anything with. MAX knows which is active can I call it up somehow?
    You have do do programming.  That is what LabVIEW is.  MAX gives you all the tools to do everything you want and much more just program it to do what you want.
    Attached is a VI that I think does what you want.  I looks at all of your devices and returns the first non simulated one.  Apparently this list already excludes devices not connected to the system.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Find Non Simulated Device.vi ‏6 KB

  • Daq Assist and Graphing

    A very simple problem...
    Very new to LabView, and I am struggling with wiring up my Daq Assistant in order to graph data from a load cell. I've connected my load cell to the Daq and want to measure force readings over a span of time/when I press stop. When I run my program it only graphs a finite number of readings and then erases the graph to copy new readings on top. I put my graph outside of the while loop so that it would graph one reading at a time as they were read but it's not working. If my wiring isn't what's wrong, I have a feeling that my time settings for the Daq Assist are not right (and I don't know how to set those either.) I don't understand the description/effects of Rate and Samples to Read.
    Thanks for your help.
    Solved!
    Go to Solution.
    Attachments:
    Learning Load Test.vi ‏61 KB

    AFLR wrote:
    A very simple problem...
    Very new to LabView, and I am struggling with wiring up my Daq Assistant in order to graph data from a load cell. I've connected my load cell to the Daq and want to measure force readings over a span of time/when I press stop. When I run my program it only graphs a finite number of readings and then erases the graph to copy new readings on top. I put my graph outside of the while loop so that it would graph one reading at a time as they were read but it's not working. If my wiring isn't what's wrong, I have a feeling that my time settings for the Daq Assist are not right (and I don't know how to set those either.) I don't understand the description/effects of Rate and Samples to Read.
    Thanks for your help.
    Hi AFLR,
    I think settings are fine, you have set DAQ to read 100 samples at the rate of 100samples/second, so you'll get 100 samples every second.
    Now in order to retain the previous data in the Graph (which is not the nature of Graph), you may need to preserve it by writing extra code.
    If you already know about:
    1. Shift registers and
    2. Components of Waveform
    You can easily implement this requirement, find the attached VI for your reference.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Attachments:
    Learning Load Test_Modified.vi ‏79 KB

  • Are there any relay modules available for Compact Fieldpoint, and if not, what are the alternatives?

    I'm speccing out a Fieldpoint system, and although Compact Fieldpoint has many features that make it superior to Fieldpoint for my application, I'm wondering why no relay modules seem to be available for it.
    The cFP-RLY-420 is referenced in the manual it shares with the FP-RLY-420, and a search in the product section comes up with several pages that aren't viewable, but it doesn't seem to be currently available.
    More importantly, if there are no relay modules available at this time, what would be the alternatives for switching? A small Opto22 backplane wired to a DO module perhaps?

    Mako,
    Several of the more specialized modules in FieldPoint have not yet been released in Compact FieldPoint. However, National Instruments is presently working on releasing most of these traditional FieldPoint module in the future.
    Depending on your application, either the cFP-DO-401 or cFP-DO-410 (which are both providing sourcing outputs) may be a possible alternative. The DO-401 module can sustain up to 2 A per channel, 8 A squared per module whereas the DO-410 can sustain up to 1 A per channel. Please note that these modules only handle low voltage DC.
    Regards,
    Cyril Bouton
    Applications Engineer
    National Instruments
    Cyril Bouton
    Active LabVIEW Developper

  • Simulated device in MAX, self tests without error and has working Test Panels, but doesn't show up in DAQ assistant.

    I'm trying to create a development machine where we can test new code without using our physical hardware. I've followed this guide in setting up a simulated device. I can get to step 3.2b, but the device does not show up in the DAQ assistant. In MAX, the device self tests and self calibrates successfully, and when I open the test panels, I see some sort of signal. I assume this is a default simulated input since I haven't told the device to look for anything? Note that the two devices I'm trying to create show up in the Devices and Interfaces section, but that even after running Self-Calibrate, the Self-Calibration date is still unspecified.
    When I try to test the device and create a voltage input according to the guide, I am unable to see either device in the DAQ task creator.
    Steps 1 and 2 of this guide are obviously satisfied. Step 3 is not, but this is unsurprising since a simulated device wouldn't be found in the Device Manager anyways. Also, I am not running RT, so step 4 is satisfied.
    Does anyone have any ideas?
    Solved!
    Go to Solution.

    That would be because the PXI 5124 is a digitizer not a analog input device.  You need to use the NI SCOPE driver not NI DAQmx
    Jeff

  • Error -2147220733 occurred at DAQ Assistant (in Measurement and Automation Explorer)

    Ok!  Just before the weekend I figured out how to make channels in Measurement and Automation Explorer for inputs through a couple different NI input devices (USB-9211A & PCI-6229 DAQ).  Things were going well.  Loaded up the computer today, added a few more channels.  Worked fine.  Now all of a sudden, any channel I make has an error and if I try modifying existing channels and saving, I get same error:
    "This global channel currently has an error.  You can save the global channel, but it cannot be used until all errors have been fixed.  Press "Yes" to save anyway, or "No" to cancel and show the error."
    If I hit yes, the channel is non functional.  After hitting no, I get:
    "Error -2147220733 occurred at DAQ Assistant.  Possible Reason(s): "
    with no possible reasons listed.  I tried restarting the program.  I tried restarting the computer.  I verified connections.  Searched for the above stated error number on ni.com, google.ca, and in the MAX help files, and found absolutely nothing.  I have no clue what to do.  Any help would indeed be very much appreciated.

    Hi there,
    This is my first time on here and I've only been using this software for a couple of days so it's possible I'm making a trivial error but I thought I'd post here anyway as I can't find anything on the net about my problem.
    I also get an error while trying to save:
    Error -2147220733 occurred at DAQ Assistant
    Possible Reason(s):
    Requested Code: -2147220733
    But mine comes about in different circumstances to the one in the original post on this thread by Kahless. I was editting a VI logger task and within that I was trying to edit an NI-DAQmx Task. I was trying to change the clock settings, specifically I was attempting to change the Rate (Hz) from the 1k default to just 20, or 200. I got the error while trying to save so changed it back to 1k, but the error persisted even though I'd set it back to what it was.
    I thought at first it might be simply that I was trying to edit an NI-DAQmx task within VILogger, so I tried making the ammendment directly but the problem was still there. 
    Any ideas?
    Many thanks.

  • Tare function DAQ assist and restart function for the vi program

    Hi!
    I have a program that aquiers a signal from the DAQ assist. I have searched here on the forum and on the web, but I can't find a way to implement a tare function. The signal is from a loadcell and therby it would be good if Icould tare the signal to value zero. In the DAQ assist I can calibrate it manually, but i would like to wire this function to a button. 
    Also I have another problem that shouldn't be hard to solve, but I'm struggling with it. I want a resert function in my labview code so that i can restart the program from the begginging. I have used a case structure with normal and restart enum constant, and wierd them via a tunnel. But it dosn't seems to work. Instead of resetting the program it only stops it 
    I have attached my code below.
    Best Regards Maurlind
    Solved!
    Go to Solution.
    Attachments:
    Tare function and restart.vi ‏365 KB

    I solved my problem with the tare function, i used a case structure and shift register to store values in it. se picture below.
    I haven't found a way to restart my VI yet. I tried to implement something from the community , see this link: https://decibel.ni.com/content/docs/DOC-4747
    But that doesn't work for my VI and i don't know why. Could someone explain why doesn't work ?
    My goal is to restart my whole VI with a press of a button.
    Best Regards Maurlind
    Attachments:
    tare function.png ‏25 KB
    restart vi.vi ‏488 KB

Maybe you are looking for

  • ITunes syncing my podcasts to a different iPod

    We have an iMac running Mac OS X (Tiger). I have a 5G 30GB iPod and my son has a 4GB Nano. Each of us has our own account (mine is the admin. account) and our own separate music libraries in iTunes. Once when I was working under my account, I wanted

  • Running 9i Form in client server env

    I have instaled Oracle 9i DS on Win NT. I have created a form using 9i form. When i run the form it get a message "FRM-10142 - HTTP listener is not running on xyz machine at port 8888" This means that my form will run in a web based (thin client) env

  • I just recorded an interview via iMovie but don't really know how to save it. HELP!

    HELP!

  • Cursor jumps in snow leopard

    Ever since I loaded OS 10.6.1 I have been having keyboard issues -- I'll type and then realize I am no longer typing at end of sentence -- I'll be typing at the start of the sentence -- the cursor "jumps" it is quite annoying. any idea on what to do

  • Automatically assign cost center

    Using SAP 4.7 We need to automatically assign Cost Center at the time of asset retirement through scrapping. User doesnt have to enter the cost center. I have tried additional assignment in asset - integration with GL Account but it fails to do. Can