LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pause running tasks

Hi.

I'm generating an analog output using a predefined waveform.

At the same time i'm aquiring an analog voltage.

Based on the analog voltage aquired i need to be able to pause the generation of the analog output until a certain criteria is fulfilled,

then continue with the generation again from the point where it paused.

Is there a way tho pause a running task without using physical channels as triggers.

 

The attached image is an example of how my generation looks like.

 

 

0 Kudos
Message 1 of 7
(3,750 Views)

I assume the criteria is a value based on a calculation, so it's just present "in software".

In that case you could simply write 0 to the AO when your criteria is fullfiled, this would be a AO Pause Trigger in software.

 

Christian

0 Kudos
Message 2 of 7
(3,712 Views)

Chrisitian,

 

What about AI? Is there some way to implement a pause trigger in software for analog input. Usually, I use a state macine architecture to stop and start a task.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 3 of 7
(3,707 Views)

You can just Start and Stop the Task programmatically.

 

 

0 Kudos
Message 4 of 7
(3,701 Views)
OK that's what i do...thanks!
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 5 of 7
(3,693 Views)

What do you menan by writing 0 to the AO.

The task in my case creates a ramp up and down. All the points are already stored in the task when i start it, and i don't want it to put out 0, it should keep the value last outputed until i say it's ok to continue the ramp.

In my first message i requested a solution without physical channels, but i reconsidered this and i am now open for suggestions using for example PFI lines.

In slot 6 of my cDAQ-9172 i have a NI-9411 which perhaps could be used somehow.

I tried to experiment with pause triggering but couldn't get it to work.

 

Please help if you can.

Peter O

 

 

0 Kudos
Message 6 of 7
(3,683 Views)

Hi there folks,

 

I have a similar question.

I would like to do some signal counting on a 9411 module, and when on a different digital input line a signal comes the counter should freeze, and with another signal unfreeze again.

Unfortunately i could'nt find any clou in the manual about a Trigger Input on this device.

 Does anybode have an idea?

 

(One alternative I come up with would be to use external triggered acquisition. with every trigger the countervalue stored in the buffer would be updated. but in the background the counter would still be running...)

 

Greetings Martin

#############################################
There is no place like 127.0.0.1
#############################################
0 Kudos
Message 7 of 7
(3,608 Views)