LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple task problem

I have a problem today with my VI today, the error message I got is as follows:

>Measurements: Specified property cannot be set while the task is running.

>Set the property prior to starting the task, or stop the task prior to setting the property.

>Property: AI.Voltage.Units

>Task Name: _unnamedTask<3E4>

In this VI, I have some AI voltage channels for reading voltages, and two AO voltage channels for
writing voltage, and both AI and AO use the same hardware.  By removing 'start task' and 'end task'
for the AO channels, I was able to run my VI without above error message, this seems to suggest
that LabView will get confused if I start two tasks in a single VI.  I wonder if this is the case, thanks
for suggestions!





0 Kudos
Message 1 of 4
(2,328 Views)
Hi WeiC,
can you show us your vi, please? For AO and AI you have to create an own task. i guess it has to work like you described.
Mike
0 Kudos
Message 2 of 4
(2,317 Views)
Hi Mike,

I attach the images of the block diagram in the pdf, both parts I am showing are in the same timeout case in an event structure.
Thanks!

WeiC


0 Kudos
Message 3 of 4
(2,299 Views)

Hi WeiC,

where do you get the error? If i build what i see in your picture, i get no error message!

Mike



Message Edited by MikeS81 on 02-25-2008 03:04 PM
0 Kudos
Message 4 of 4
(2,276 Views)