How to read and scale of multiple analog input channels

Hello

I'm reading the data of several types of sensors, with readings of 4-20mA. What I'm trying to do, is have a pressure transducer, a flow meter and a RTD sensor all connected on channels 1, 2 and 3 of my cDAQ using DAQmx. After channels are put on the scale, I need to see all the data in a chart of the wave with the scales on each side, identification of pressure, temperature and flow. Finally, I need to write that data to a text file. TDMS is fine, but for now, I'm working with a CSV file.

So far, I got my VI to read the data channel and the data on the scale correctly. I'm also writing to the file works properly. However, when I try to change the second channel, nothing happens or I get an error. Can someone help me on this? I have experience to come Monday to it so Im a little short of time. Ive fixed this Ive got so far (Ive got several versions of this VI trying to do this in various ways).

With respect to the accuracy of the readings for channel 0, Ive been using a deadweight Tester and a manometer calibrated to see readings. So far, these are correct, and I was able to calibrate other gauges with this interface.

Way easier and more foolproof that I found to do this is to set up several channels using an Express VI (DAQ assistant) and then made a right click on the object of block diagram and 'open the fron Panel '.  Click OK to the warning and you will be pressented with an example of a multi-channel configuration.

As to the best way to get 90% it when learning DAQ configuration...

Tags: NI Software

Similar Questions

  • read the multiple analog inputs at the same time

    Hi all

    I use USB-6001 and want to develop an application to multiple tasks in C++. I try to read several analog inputs at the same time, but got some errors. To put it simply, I copy one of the sample code to read in analog data in a channel, and then turn it into function. Then I call this function to thread with the names of different poles (for example Dev1/ai0, Dev1/ai1) and I come across this error:

    "The specified source is reserved. The operation can not be specified such complete"code of State-50103

    I have search the forums, this may be because I use the hardware timing in this function, and this material timing cannot be used simultaneously by multiple tasks. I may have to put all the lines, I want to read in a single task (such as Dev1 / ai0:1). This way I can read two lines at the same time. However, when I try this, I encounter another error:

    Status code "buffer is too small to contain the data read" - 200299

    So here is my question, what should I do if I don't want to read the multiple analog inputs at the same time? Is the thing that hard time cannot be used by several true task? If I have to read several lines to a single task, how to set the settings?


  • How to read and display a my a miccrontroller (MCB1700) on labview signal connected via a port on a PXI machine CAN

    How to read and display a my a miccrontroller (MCB1700) on labview signal connected via a port on a machine PXI CAN?

    I tried using a DAQ Assistant, but the port is not included as one of the physical channels supported, even if all his drivers are up to date.

    Help, please...

    Thank you.

    If you can read it in MAX, then you should be able to run the NI CAN example.

    Help-> find examples

    Find the CAN and watch CAN Receive.vi.

    Basically, set up the network, open the object, read in a loop close object when it is done.

    If you have any questions about the example, go ahead and post your vi and we can work from there.

  • How to read and write attributes using the API?

    I'm trying attributes of access (read and write) of the following:

    SequenceFile

    Sequence

    The sequence steps

    When you look at the documentation of the API, TestStand, the following functions are available:

    PropertyObject

    Properties

    Attributes (read-only)

    HasAttributes (read-only)

    Methods

    DisplayAttributesDialog

    I tried to use the SetValString and GetValString commands using the reference of the attributes, but it does not seem that the data is stored in the file.

    I can't find the following information in the TestStand API:

    1. Where the attributes are stored in a property object?

    2. How can we access through the API?

    No advice and no information is appreciated!

    You must increment the number of changes to the file after that editing the sequence editor (or UI) won't refresh or mark the file, as amended. Use sequenceFile.AsPropertyObjectFile (). IncChangeCount().

    SequenceFile attributes are stored in the SequenceFile.Data, not the object of SequenceFile object. You can change them in the Advanced tab of the properties of the file sequence dialog box.

    Hope this helps,

    -Doug

  • How to read and write FileGlobals with TestStand ActiveX control in c#

    Hello everyone,

    I'm trying to read and write FileGlobals with TestStand ActiveX control in c#.

    I tried with:

    SequenceContext contextOfTraceMsg = e.thrd.GetSequenceContext (0, out frameId);

    var filepara = contextOfTraceMsg.FileGlobals.GetSubProperties ("ProjectParameter.NestIsTested", 0). GetValue (1); (NestIsTested is an array of Boolean)

    but without success.

    Can someone tell me how to do it right?

    Thank you in advance!

    Concerning

    0049 wrote:

    Hello Doug,

    Thanks for the reply.

    It works to read a Boolean value. How to read the table of Boolean?

    Kind regards

    For a table you can either do:

    (1) myarray [] bool = contextOfTraceMsg.FileGlobals.GetValVariant ("myarray", 0);

    Or

    (2) using GetNumElements() and GetValBooleanByOffset().

    -Doug

  • totally computer illiterate, how to read and print an attatchment marked with a paperclip?

    Been sent an email with an attatchment showing a trombone how to read this attatchment?

    1. What email program are you using?
    2. If you double-click on the attachment, open the attachment?
    3. If not, or it is unreadable, what is the attachment file extension? (i.e. DOC, XLS, PDF, etc).
  • How to read and understand the information in the event logs

    Hey Microsoft, I performed a task of Information on performance. I have several criticisms and doubtful window logs in Event Viewer that is as much affect performance. I don't understand all the information on how to deal with them as I have not very in computer science. Can you please tell me how I deal/delete and those to save using total evidence silly English. There is also an application firewall re being not recognized even if I have AVG and Works installed.

    Thanks for your help.

    OT: EVENT LOGS

    Hello LadyWilliamson,

    Click on this article which describes the event logs in Windows XP. Most of the information is still topical for Windows Vista and Windows 7.
    308427 KB - how to view and manage the event logs in Event Viewer in Windows XP

     
    Vijay B information should answer your other questions.

    Thank you

    Marilyn

  • How to read and write files .exe to soa using the file adapter?

    Hello

    I have a requirement, that I need to read and write files .exe to soa using the file adapter.

    Can someone help me.

    Thanks in advance,

    Divya.

    Hi Vijay,

    I tried with opaque. It works for me.

    Kind regards

    Adkins

  • How to reach an average of three analog inputs of the analog Arduino pins

    Hi, I'm using Interface Labview for Arduino. I correctly interfaced Arduino with Labview and acquired of entry using the analog potentiometer. But now I want to take three signals at once and want to average there. If someone knows how to do it please change below program and fix it.

    I just have three readings in a loop FOR.  Create a table to store the channels to read and leave the auto loop on the channel and autoindex value index.  This will create a picture of your reading.  Then just use Mean.vi to get the average.

  • PXI-6070E, how can I configure which are two analog input pins?

    Hello

    I'm reading 3 analog signals using PXI or 6070E simultaneously. I'm looking for on what axes correspond to what analog inputs? It's the same thing all the time, or should I set up?

    For example, currently, the pines 68 and 34 are the + and - of the AI0 channel. But I can't find the rest.

    Thank you.

    How you are looking for the list of the pins? Look in the manual or in MAX, right-click on the device and select 'device pinouts. Ai0 is 68, ai1 is 33, ai2 is 65. The pins do not change. What changes is ending the pins to use if differential or single acquisition. For example, if you purchase a differential signal with ai0, you use pins 68 (ai0) and 34 (ai8).

  • arithmetic on an analog input channel

    I use a NI 9239 card to read four analog inputs. The sample data are interleaved. On my fourth channel, I want to split each sample by 2 and subsequnectly plot these data to a chart of the band. I sought the help of NOR-DAQmx ways across this channel, but I have not had much luck doing so. I am relatively new to LabWindows and am not positive if there is a built-in function to perform this kind of task, or if I should think to create my own function to split each fourth sample by 2.

    Thank you.

    You don't need to change the data table. The graph can do for you.

    Look for the setting of 'gain' on the y-axis related.

    (double-click the chart control and change the y-axis settings)

    Hope this helps,

  • Structure matter and DAQmx selecting not good input channel

    I'm trying to implement three modes with the structure of cases observed in the attatched file. Each mode has 1 set of differential analog input and then channel thus input signals an analog NRSE. For some reason any I am unable to get the three modes to work as they should. At the end of the day, I want the user to be able to choose between three modes pre-determined. Several times it gives me error number 200489 or will not update my graphics/tables at all.

    I am a new user of Labview, pointers would be greatly appreciated!

    You don't realize that you use several channels with this measure differential, right?  You configure 2 (3) in option 1 as premium channels.  The differential channel AI0 will use AI0 as the + and AI8 as the...  If you read the manual on the DAQ card, it will become more apparent.

    But the cause of your error is in mode 1.  You set your differential channels, AI0 BY AI2.  So AI1 is already used.  Here is your mistake.

  • 6225 PCI residual voltage in the analog input channel

    Hello, I'm new to the Forum and just start working hands with NI hardware/software/etc.

    I use MAX (differential setting) to monitor an input channel analog (ai71) through a PCI-6225 card with an SCB-68. The voltage displayed in this MAX sometimes regular 10.6 volts and sometimes intermittent noise 0 to 10.6 volts or vague angular. I watched the disintegration of noise and waves to zero. The voltage displayed in MAX is (seemingly at random) changes when a voltmeter is used to measure the voltage between pins 1 and 35 (with no wire signal)

    When an external square wave (2.7 volts DC) is applied to the pins 1 and 35 in the SCB - 68 the value in MAX is dominated by the 0 - 10.6V 'noise', while a voltmeter between pins 1 and 35 simultaneously shows the square wave.

    Any suggestions? Thank you in advance.

    If you dig into the data acquisition specifications, input voltages must be referenced to the mass of AI or you may damage the Board.  Have a good read of this article: wiring field and considerations of noise for analog signals.  Since you're probably dealing with a differential signal with no mass, what you want to do is to add resistance on each side of the signal to ground.  This article recommends until 100kOhm 10kOhm resistors.

  • How to measure multiple analog input at the same time.

    I tried to do a VI that controls a motor with two buttons. If I press the buttons, the VI took the analog signal from the buttons and the engine is running. Each button covers the different direction - to the left and to the right.

    I need to enter the two report in the VI at the same time, but I can't. If I run the VI, VI takes only a random signal. I want to know what are the problems and how to solve them. Please help me.

    You must use a single task for both channels.  See if that helps.

  • How to pan and zoom of multiple photos in a grid

    Hello

    happy new year to the community!

    Recently, I did a lot of research in this forum and for most of the problems in my project, I was able to find appropriate solutions in PrE 11 that I treated myself buy at Christmas

    But there is always something left: I want to align several rectangular cells in a grid, each containing an image set that is enlivened by some pan and zoom.

    I can't get there through the Pan and zoom tool, since it is limited to the frame ratio and display mode full-screen. Then I tried to use key framing for the pan and zoom and cropping the photos. But the harvest has been scaling as well as photos and just fix. My last hope was to use an alpha mask that would have the advantage that I could create a fixed grid. But the mask was affected by both animation...

    I suspect, after reading the post http://forums.Adobe.com/thread/996581 , that's not possible without creating intermediate video files for all the photos. So my question is if there's a way to accomplish the task or if it is confirmed that the intermediate videos are the only way.

    Kind regards

    phylome

    The only way I know to do this in Premiere Elements is to create your pan & zoom for each image and then exit each using publish & share/computer/AVI with DV preseeding.

    Once you have created all of them, put each on its own separate video track, stacked on top of each other, sizing and positioning of each to adapt to your grid.

Maybe you are looking for