LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with task in data acquisition

Hallo,

I'm trying to acquire current measures and then converting it in different values (temperature, pressure and flow). For this reason I've created a specific task in which every current measure is converted in the apposite measure and obviously for every channel the acquisition rate is setted (for examplethe acquisition rate for the temperature can be slowly than the flow).

I tried to generate code with example from the task constant, but nothing is displayed in the waveform graph.

If I use the daq assistant everything is ok.

I think to make mistakes with the generation of the task but I can't understand where is the error exactly.

Another thing that I've noticed is that sometimes there are problems in the visualizations of the scaled values also using the daq assistant, may be is better to scaling the values outside the task and then visualize and storage it?

Labview 8.6
PXI-1042Q
PXI-6704
PXI-6229
0 Kudos
Message 1 of 8
(3,122 Views)

I'm not sure I understand what you have done. You can't set a different acquisition rate for each channel in a task and if you created a task for each channel, you can't run them at the same time.

 

If you have a DAQ Assistant that is working, just right click and select 'Generate DAQmx Code'.

0 Kudos
Message 2 of 8
(3,100 Views)

Hi Dennis, i'll try to explain me better.

For now I've created only one task  with the same acquisition rate for each channel, I'm a newbie and I'm testing Labview to see what I can do.

For now I've 3 channels, every channel is a current input and each one correspond to a different type of measure.

If I use the daq assistant the VI works bot only if I don't use the scale, if I use the temperature scale it doesn't display temperature over 21°C.

If I generate code by the daq assistant it doesn't works.

 

I've tried to work with voltage instead current, in this case the code it's ok, but I've the same problems with the scale that I've created in MAX: the vi doesn't works.

 
Labview 8.6
PXI-1042Q
PXI-6704
PXI-6229
0 Kudos
Message 3 of 8
(3,077 Views)
These are the files, how should I modify the the voltage task.vi in order to scaling tha value of the channels?
Message Edited by Pablo! on 02-01-2010 05:25 AM
Labview 8.6
PXI-1042Q
PXI-6704
PXI-6229
0 Kudos
Message 4 of 8
(3,073 Views)
I don't have a program to uncompress that.
0 Kudos
Message 5 of 8
(3,062 Views)
I'msorry, here is the .zip.
Labview 8.6
PXI-1042Q
PXI-6704
PXI-6229
0 Kudos
Message 6 of 8
(3,054 Views)
I don't know what you are trying to do with that code. You are not defining any scale at all. Teh custom scale name is blank.
0 Kudos
Message 7 of 8
(3,045 Views)

These files are about the simple acquisition, without scaling.

Now I'm not in laboratory and I can't post the vi with the scaling.

My question is: could I modify this code in order to scaling tha values as I want?

 

P.S. Thanks for your patience Dennis 😉

 

Message Edited by Pablo! on 02-01-2010 11:20 AM
Labview 8.6
PXI-1042Q
PXI-6704
PXI-6229
0 Kudos
Message 8 of 8
(3,029 Views)