LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control timing of DAQ outputs

Hi I am in desperate need of help. I am a labview novice and only know how to do the most basic of programming. I would be extremly greatful for any help. I need to have this done asap as this is the last peice of the puzzle so that I can start running my experiment.

 

I am trying to design a VI using the analog outputs of a USB 6009 to control 2 relays.

 

I need to have a setup so that output 0 is initially energized.

 

The front panel has a button which will start a 5 second timer. It also has a slider to adjust a delay.

 

When the timer is engaged and hits 0 output 0 will de-energize then after the amount of time set in the delay has passed output 1 will then be energized and remain energized.

 

I currently have the front panel setup with the slider and the button and numeric counter.

 

I also have the daq outputs setup to output 5v but I am really unsure what I need to make all this stuff happen. Any help would be greatly appreciated. I can attach what I have now if that helps at all.

 

 

0 Kudos
Message 1 of 15
(3,303 Views)

Sure, post your code.  But first, look at the the examples that ship with LabVIEW.  There are many that deal with such simple requirements.  Help> Example Finder> Hardware IO > DAQmx > Analog out

 

Or, you could even use the [gasp] DAQ Assistant.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 2 of 15
(3,297 Views)

Thanks for the reply.

 

Attached is what I have so far.

0 Kudos
Message 3 of 15
(3,290 Views)

FYI: You have nothing.

 

In the attachment you have an Easter gift. Next time try to read some LabView basics or search through examples.

 

Paul

Message 4 of 15
(3,280 Views)

Thanks a million times but I can't open your file. I am running labview 8.5 and it is saying it is too new a file to open.

 

Is there any way you could save it in a format I could open?

 

Again thanks for all of your efforts.

0 Kudos
Message 5 of 15
(3,270 Views)

Unfortunately I cannot help you. 

You can ask someone to downgrade the VI. Post it in "Downconvert VI Request" thread. You can find it here, in LabView forum.

Message 6 of 15
(3,250 Views)

Thanks man I really appreciate all your efforts.

0 Kudos
Message 7 of 15
(3,246 Views)

Scutzi,

 

I've downconverted the file for you in that thread.  http://forums.ni.com/t5/LabVIEW/Downconvert-VI-Requests/m-p/1534386#M569668

 

Pauli,

 

What do you mean you cannont help him?  Since you have LabVIEW 2010, you can use Save For Previous version under the file menu and save it to any LabVIEW version all the way back to LV8.0.  It would have been easy enough to do in this thread where the file was first posted, rather than directing him to the Downconvert thread which is more for people who have the odd VI acquired from elsewhere who just need conversion help.

0 Kudos
Message 8 of 15
(3,243 Views)

Actually, I never noticed that either.  I have 2010, 8.5, 8.2 and 7.1.1.  I always thought you needed every intermediate top-level version to go back to previous.  Well, good for LV2010!  I'm happy since I can back save without re-installing LV2009.

 

Of course, maybe Pauli does know this and was just too busy or away from his development computer?

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 9 of 15
(3,241 Views)

It started with LV 8.5 was the first version to go back more than the previous version.  8.6, 2009, 2010 have all added on and can all go back to LV8.  If newer versions of LV in the future start to drop off older versions, I guess we'll know when NI makes a decision like that and releases the new versiosn.

 

The problem for you is that you need LV8 to be able to go back to LV 7.1, since LV 8.2 only reaches back to LV8.

0 Kudos
Message 10 of 15
(3,239 Views)