LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

muti channel in 6221with names

hi
i want accquire acquire more than 10 chnnel using 6221.where i am having four pressure channels ,,,and four temp.channels and voltgae and current cha,,so how i wnt to confiure the daq create task.and all...and i am saving the data,,,using write  lvm,,,i wnt to dave the corresponding name in that also...
thanks in advance
------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
0 Kudos
Message 1 of 8
(3,350 Views)
On each waveform, you need to add an attribute titled NI_ChannelName.  Use Set Waveform Attribute from the waveform palette to do this.  See the screenshot below for details.


Message Edited by DFGray on 04-16-2007 08:56 AM

0 Kudos
Message 2 of 8
(3,345 Views)
thanks a lot for ur information to display the names can u give the details to create daq task for the same question ...in that i am selecting the required channel which is in string format ..i have converted the string in to corresponding daq channel ...this is an array... i am using 6221 m series daq ....regarding the section i want to acquire data ...here nine  pressure channel,nine temperature channel ..and some more voltage and current channels are ther can u say the details plz
thanks in advance 
------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
0 Kudos
Message 3 of 8
(3,332 Views)
mr ,   u can have the full attchement in daq boards ..u just copy the topic name and put it in daq board ....and search u can found the attachements plz
------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
0 Kudos
Message 4 of 8
(3,333 Views)
I may be reading it wrong, but it appears the VI you posted is guaranteed to almost never do anything.  In the first frame of the sequence, you set start logging to FALSE.  In the second frame, you immediately read start logging, and do nothing if it is FALSE.  Unless you happen to have something else changing this global at exactly the right time, this VI will do nothing.

Unfortunately, I have not used DAQ in over ten years, so cannot competently comment on your setup code.  However, it appears you are attempting to use the same physical channels for both your voltage and temperature measurements.  You may want to consider using the DAQ assistant to generate your tasks.  You can find it on the Measurement I/O->DAQmx - Data Acquisition palette on the bottom left.  When it finishes, you can keep the result as an Express style VI or generate full code to a subVI or straight to your block diagram.

There are a few structural issues with your code you may want to address.
  1. LabVIEW is a dataflow language with true parallel execution.  As such, the delays you have scattered about your code may or may not do anything.  If the code around them takes longer than the delay, then the delay will do nothing.  This may be what you want.  If it is not, then you will need to place the delay in a single frame sequence and route a wire through the sequence to enforce data flow timing.  The standard method is to route one of your error wires through the sequence.  Alternately, you can use one of the Express delays, which have error inputs and outputs to enforce data flow sequencing.
  2. Globals are poor way to pass data around.  Race conditions will cause you endless problems.  If you cannot use wires and controls (the preferred method), you can create singleton data objects from functional globals or single element queues.  You can find documentation on these methods in the LabVIEW help, online on the NI website, or in these forums or the LAVA forums.  Note that in some cases, globals are a good choice.  Your stop complete flag may be an example of this, depending on the rest of your code.  It could also be a very poor choice, if you are reading, processing, and writing to it in a couple of places.  Using globals to pass large arrays around creates copies of the arrays, in some cases leading to memory issues.  You probably won't have this problem, since your arrays are relatively small.
I hope this helps.  I realize you are new to LabVIEW and dataflow is very different from the sequencing you get in a text language.  Think of it as a flow diagram and it will probably be easier.  Debugging with execution highlighting turned on makes things clearer.  If you need any more help, let us know.
0 Kudos
Message 5 of 8
(3,324 Views)
One last comment.  Most of us old fogies are over the age of 30.  You will get better response if you write in English instead of IMglish Smiley Wink
0 Kudos
Message 6 of 8
(3,322 Views)
thank you  for your  kind information...
s realy  i am new to labview . i am doing project using this...
can u sent an example vi which acquire data from four  temperature channel and four voltage channel..i will extanded that to my application.where i am acquiring 32 channel...i am using simulated 6221 daq ,   ..note;i am selecting the required channel which is in array of strings ...i have converted that one ...can u send that one plzzzzzz
------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
0 Kudos
Message 7 of 8
(3,315 Views)
Examples of almost anything you might want to do can be found with the LabVIEW Example Finder.  In LabVIEW, click on Help->Find Examples...  Wait a few seconds for the example finder to intialize, then type your search query into the search box.  In your case, this would be DAQmx, voltage, temperature.

You can also generate this example using the DAQ Assistant.  Your program had the temperature and voltage tasks separate, so you may wish to run it twice, once for each data type.  You can start the DAQ Assistant several ways.  One is from the palettes.  Right click the block diagram in your VI, then select Measurement I/O->DAQmx - Data Acquisition->DAQ Assistant.  If you need assistance, check the LabVIEW help.  In LabVIEW, click Help->Search the LabVIEW Help..., then type DAQ Assistant in the search bar.

Take the time to learn LabVIEW and DAQ.  It will slow you down a little on this project, but will greatly speed you up on future ones.  Work through the tutorials.  Good luck!
0 Kudos
Message 8 of 8
(3,300 Views)