Control relay with Boolean switch using DAQ assistant 9481 - problems

Sorry for what may be a stupid question but I'm stuck in quicksand.

I use a relay module 9481 and have two external relays connected lines 0 and 1.

When I create a digital output 0 line by line, I can run the test inside the express and activate the relay and turn off without problem.

The generated block DAQ expressed expects a Boolean input of 1 d. (See attached photo).

I want to connect a Boolean switch relay line disk 0. You can connect live not because the switch is Boolean and the input is Boolean 1 d - I'm a conversation in the pict.

All plumbing lines display results, the relay never active.

Any bunch would be greatly appreciated! Thank you

Mr._Mechanical,

Welcome to the Forums of switch OR this forum is generally intended for products OR-SWITCH [such as the NI PXI-25xx & NI SCXI-11xx], I think I know the answer to your question.

I think the reason why it's a failure is the conversion you make generates a table of 16 Boolean [as the 'boolean to (0,1)' function creates a data I16 type] with your data more false data points 15.

When you try to control the relay, he sees 16 datapoints are you Commander to a single port [channel] and so error out.

My suggestion would be to use normal DAQmx digital output screw [with, he set up as ' Digital > single channel > single sample > Boolean (1 line) "] rather than the DAQ assistant.

If you use the daq assistant, simply by using the function 'Building the table' will transform your simple Boolean data point in a Boolean array containing a single element.

While the DAQ assistant is very easy to use, I recommend that you use the DAQ assistant, because this reduces the features and increases the execution time.

Tags: NI Products

Similar Questions

  • Using DAQ Assistant with a system remotely

    I'm new to LabVIEW and National Instruments hardware and I am trying to use an instrument with LabVIEW using the DAQ Assistant. I use a PC with Windows Vista and I am connected via a network to a PXI-8108 controller in a PXI-1050 chasiss chassis. The instrument is just a thermocouple which I use to become familiar with everything. The thermocouple is connected and the connection SCB-68 block which is connected to a PXI-6221 multifunction data acquisition in the chassis. I am able to create a task in MAX under remote system and everything seems to work. What I want to do is to use this instrument in LabVIEW, and it seems that for this I need to use the DAQ Assistant, but when I do it says no supported device is found. I wonder if there is a way to get LabVIEW lean on the remote system to see the acquisition of data and the thermocouple.

    All advice is appreciated.

    Thank you

    Hi all

    Ben is correct.  RDA is no longer supported in DAQmx.  We have another way to use DAQmx with a remote system.  It is use DAQmx with an OPC server or simply by shared network variables.  There is a section of the base of knowledge here that should help you get started.  You should also take a look at the developer section area here.  The basic idea is that you can use a variable shared within labVIEW that is bound to a variable shared on your networked machine.  In this way, you can write and read values from a task DAQmx.  Look at the instructions in the above two items and let me know if you have any questions.

    Kind regards

    Paul C.

  • Outbreak of DAQmx N-sample and the Acquisition using DAQ Assistant

    Hello!

    I'm still fairly new to LabVIEW and I am working on all the points of connection. I would like to acquire a finite number of samples of analog data from a CompactDAQ system when a Boolean event of internal software (like a button of VI). I followed the examples to implement the acquisition with the DAQ Assistant, which works very well. I don't understand how I can use a software trigger, but I don't see how hardware triggers are configured in the trigger tab in the DAQ Assistant.

    I don't know that this should be very simple; Maybe I'm just ignorant of the configuration used for this sort of thing. Also, I could find soon I need to go beyond the DAQ Assistant for some of what I want to do, so any pointers to good references or tutorials on programming DAQmx are welcome.

    Thank you!

    Ryan

    You can simply put the acquisition within a value of the Boolean control change event.

  • Disadvantages of using DAQ Assistant

    I need 2 analog inputs continuously at 5-10 kHz from the sample and then use a combination of producer consumer and State Machine for the processing of data in real-time.

    In most parts of the example I've seen, people always use Subvi of data acquisition groups. Even though I know how to set up getting data using the Subvi, I like to use Express VI DAQ Assistant to perform data acquisition.

    Known disadvantages of the use of VI express in my case (see 1st line)?

    With the help of an express VI will slow down time of execution and, therefore, your time of iteration of loop due to the fresh general partner.  If you are concerned about the timing of your program, then you should strongly consider using the DAQmx API screws.

  • problem with the on LABVIEW DAQ assistant.

    I have a LABVIEW student edition. I needed to use NI USB-6008 to acquire the signal, but I do not see "DAQ Assistant" on the Express > entry in the block diagram pane anytime, I opened a new VI. Any help will be appreciated.

    Thank you.


  • PID control using DAQ assistant

    Hi, I'm generating sine wave using acquirng and function generator cela DAQassitant in my computer using USB6211 DAQ and labview. I want to manipulate this singal granted using the labview PID command and use the result of PID to generate an analogue of singal feedback (similar to that of entry). But when I run the code, it gives me an error that the buffer size is less. How can I increase the buffer size so that I can generate the singal output continuously. I have attached the file .vi

    Thanks a ton.

    Krishna

    Hello Krishna,

    get rid of the DAQAssistents and use the plain DAQmx features!

    It is never a good idea to use the son of DDT in combination with points of constraint: what kind of data does it not provide your DAQAssistent and expect your PID?

  • Using DAQ Assistant to read voltage of 9205

    I am new Nock in it and I tried to read the voltage level of 9205 relating to 9172. I use it in XP mode virtual because windows 7 does not have labview 8,9. I installed the drivers for data acquisition.

    When I check the meter in automation and Explorer, it works very well which means it reads im DC voltage supply. When I created a VI facilitate data acquisition, I chose the right channel, the entry as analog voltage, the numeirc indicator shows it is-10 to 10. I noticed he did the same thing, even once the USB is disconnected, which means that the function helps daq was not save the data of the 9205.

    Can someone help me?

    Hi aaclabview,

    The way in which you have added the device to MAX makes the device act as a simulated instrument. Simulated instruments only generate sine wave data to test a piece of code without using any material. A simulated device has the icon yellow as shown in the screenshot you provided and are completely dissociated from any material, so add or remove the usb device has no effect.

    The problem with the help of Windows XP mode as mentioned in the above KB is the USB transfer must be enabled for the measurement and Automation Explorer inside the Virtual Machine detect the device. Using the unit in this way is not supported or recommended by National Instruments and can lead to instability and the latency of the errors in the acquisition of data even if a connection is established.

    It is a more sure bet to try and install LabVIEW and hardware drivers DAQ as described above on the real Windows 7 machine to try and run inside the XP mode.

  • Can no longer ride with call button using the api? Problem: Click on the context Menu displays on trackball?

    Hello

    1. every person has idea on the management of the events of call button. ?

    By default the call button (shows) invoke the window call log while relying on the call (phone icon) button in the phone.

    But I need to call some methods in my application (IE to a selection button).

    2. by default, the track ball click calls menu Contaxt. I don't want to activate (Show) menu by click on the trackball?

    (Only for the track ball click)

    Problem: in my application by clicking the trackball on a ButtonField to a new main window main window.

    Press escape (pop, the new window), the menu here

    To your first question:

    Make an application that has the following method implemented:

    protected boolean keyDown (keycode, int, int times)
    {
    Switch (keycode)
    {
               
    box 1114112: / / green key

    Insert your code here

    break;
               
    }
    Returns false;
    }

    For your second Question:

    invokeAction() implent method, the problem will resolve.

  • Using the DAQ Assistant. can I create a VI that measures continuously during a fixed time?

    I use LabView to an NI USB-6009 enclosure, with two accelerometers like my analog input. When you use DAQ Assistant to build my VI I have not seen an option to measure continuously for a set amount of time. I need the test to run for two seconds and then stop.

    Is there anyway to specify the exact duration of each test?

    It's about as simple as you can get. Set the number of samples to be twice the sampling frequency (or whatever the multiplier that you want). That's it - a simple DAQ Assistant and nothing else on the block diagram. If you need it to be variable, just wire a control of the number of input samples.

  • DAQ Assistant don't update the buffer size to change the frequency

    Hi all

    I use DAQ Assistant inside a loop to write a signal in a module output best 9262 OR a cDAQ-9174.  I generate the signal with the express vi simulate Signal or with a simple loop using indexing.  The problem is that when I change the frequency, using the same sampling frequency, I have a different number of samples to write the cDAQ does not seem to update the size of the buffer, so no my signal gets written in.  The result is the first sine wave is nicely written, but each after that gradually get cut off on the edges.  I traced imput signal that I generate, so I know that it is generated with the right size and frequency of departure, what ever it is, still works, it is those more later in the loop who have the wrong size aparently buffer.  I tried to reset the cDAQ by adding a different DAQ Assistant at the end of the outer loop with the stop bit the true value, it makes me just the error "resource not available.

    Any ideas?

    I'm using LabVIEW Base development system new V12.0 32 bit.

    Thank you

    Matt

    Idea:

    Get rid of the DAQ assistant and use the DAQmx API.  The DAQ Assistant is there to support the limited functionality and base up a dirty experience and running quickly.  The report of the API offers more funcionallity and DAQmx property nodes allow greater flexibility.  DAQ Assistant is just too limited for your needs.  (you can't paint a masterpiece with crayons)

  • Recovery of the DAQ Assistant data acquired

    Hello

    I'm currently dealing with a continuous data using NOR cDAQ-9174 proposed acquisition and recording of analog input signals of a built-in three-measuring probe.

    I built a simple vi using DAQ Assistant to acquire data and write to an output .txt - rather than .tdms using Signal Express.

    On a day 10 cycle of data acquisition computer was mistakenly turned off - leaving the empty output .txt file.  LabView recovered the VI cut and I wonder if there is a way I can access the data that has been saved by the DAQ Assistant which can be saved in temporary files etc..

    I have no idea where that might be, since you cannot delve deeper down into the 'levels' of DAQ assistant as you would a sub - vi.

    Just as a note aside to apologize my stupidity - I realize that all the data at the end of the writing task is stupid and completely avoidable... but I worked for a date limit.

    Thanks in advance for any help you can provide.

    Dan

    The most likely answer is not, unfortunately. It looks like you were a table of data at every point of the construction and then measure he writes at the end. In this case, unless you have explicitly recorded data in a temporary file, it is located right in volatile memory, waiting for you to do something with it.

    I realize that this isn't what you want to hear, as it comes to the time of submission of draft / year...

    If you post your VI (preferably version LV2012 or below), I can have a look to see if there is anything obvious.

  • Task of naming of the DAQ Assistant

    I not bad by using DAQ Assistant to create a task to do what I want, but I can't understand how to give a meaningful name to the task.  The name of the task seems to be assigned arbitrarily to something like "Assistant_1 DAQ", which is not very useful for me.

    Please advise on how, in the "convert to NOR-DAQmxTask", procedure I can assign a different name to the task.  If not, is it possible to rename an existing task?

    Hi wildcatherder,

    There is already a way to set the name of the task in the present case, but it is not quite obvious and has a little whim. If you change the legend of VI DAQ Assistant express before selecting "Convert to the NOR-DAQmx task", he uses the legend that you specified as the name of the task in Max... and then he adds "_0" at the end:

    If you have a suggestion to improve this feature, perhaps you could post it to the Exchange of ideas, information Acquisition?

    Brad

  • module relay and DAQ Assistant

    Hello world!

    I am a beginner, and currently dealing with simple business priori Labview. Recently I got a USB relay Module must be integrated into an alarm system. Let's say that if we get some more value than the other, the relay must be closed and activate a siren (see attached example). For this I used the DAQ assistant and set up one of the output channel of the module. Using a simple Boolean switch, I can easily open the relay and close. However, if I use a case structure, an error is obtained, as the DAQ Assistant for an outing can be only used once. I mean, if the relay is closed and I want to go back to the initial situation, i.e. open relays, what should I do?

    Schematically:

    -If A > B, then closed relay

    -If has

    Sorry for the explanation of disorder, but I think you get the point.

    Thanks in advance

    I just got. The problem was that in the main vi, not in the example that I have attached, the same output via the DAQ Assistant has been configured for two structures of different cases. Obviously the relay module was going completely crazy, since I had two independent pairs of TRUE and FALSE labor at the same time. If I get, for example, TRUE for one structure box and FALSE for the other, the switch knows not what to do. I hope it is clear now...

  • 6008 daq digital outputs to control relays

    Hi all, I'm looking to help create a VI to send out digital to a daq 6008 to control relays. What I'm trying to do is when you press start and a condition is met send a digital output to control a relay for 30 seconds or so to take a measured voltage to be taken an analog voltage. After 30 seconds, I want the first relay to switch off and the next relay lights for the same amount of time. I want to continue this sequence to 7 readings, blood for every step and send the data to an excel file. I know it's basic stuff, but my experience with labview is limited! Any help would be greatly appreciated.

    Thank you

    Paul

    Hi Paul,.

    I looked on your problem this afternoon and I agree completely Fan Ravens that the state machine is in fact the most appropriate architecture for such a task of data acquisition. A state machine architecture is one of the most commonly used in LabVIEW design patterns and is especially suitable for any program where you have clearly defined the steps that can be represented by the States and rules for the transition between these States.

    There is a model of Machine of State Standard contained in LabVIEW which should give you an idea of the underlying architecture and is a good starting point. To give you a better idea of how this architecture can be applied to a data acquisition task, I would recommend that you look at This example. Although States will be slightly different in your case, this should provide you with a good understanding of how you can architect such a request.

    I hope this helps.

    Best regards

    Christian Hartshorne

    Technical sales engineer

    National Instruments UK

  • Using the DAQ assistant voltage vs time graph

    I'm relatively new to all Labview and terms and everything which affects programming. I've read tutorials and everything trying to understand things. One thing that I have a problem is the DAQ assistant. Now, if I wanted to place the DAQ assistant on the block diagram of labview and I have everything set up so that the voltage will travel in the DAQ hardware, how would I set up my block diagram so that I can get a graph of voltage vs time in which data begin recording until the voltage reaches a certain tension I was inputing and change such as 30 or 40 volts. The data will also stop recording when the voltage reaches the same number. I also want to be able to multiply the number of voltage coming out a number that I can change myself before it is graphed over time. Example, I mean the voltage to start recording when he reached 40 volts. Now when the voltage comes out of allows it to DAQ assistant say he is somewhere read 10 volts and the number I want to multiply by 5. So, I want to be able to multiply the voltage by 5 and then since it will be 50, it would begin graphing this number over time.

    You would need to have a Boolean value which controls whether the (amplified) voltage is greater than N.

    If so, he would send this value to a graph, if not, the tension would not get graphically.

    Here is an example: (do not try to copy this code exactly, because it does not use a signal, but rather a whole number that is being created)

Maybe you are looking for