Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

alternating inputs using timed loop

Hi,

 

I am trying to supply alternating inputs to an instrument using Labview 2011.

 

I need to supply a value of 1 volt for 10 ms, then a value of 2 volts for 10 ms (then 1 volt and then 2 volts again) and the pattern should repeat continously.

 

How do I implement this alternating sequence in Labview using a time delay or timed loop?

 

I need to avoid using a square waveform because the instrument does not recognize it.

 

Hardware timing would be preferable because it needs to be precise.

 

Thanks.

0 Kudos
Message 1 of 9
(4,597 Views)

Use a DAQ card that has a hardware timed Analog Output.  Then you just create a full cycle of your waveform and use DAQmx to have the DAQ generate your waveform.  Analog Outputs typically do not have much current capacity, so you may need an amplifier circuit to get the current capacity you need.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 9
(4,593 Views)

The instrument I am trying to control is an Agilent E3634A power supply.

 

The power supply supplies power to a resistor.

 

Will the current capacity of the DAQ card still matter?

0 Kudos
Message 3 of 9
(4,591 Views)

Also, I just realized that it will not be possible to supply an analog output to a power supply! : )

 

 

I found one way to do it by using the 'elapsed time' vi and a switch case to supply the alternating voltages periodically. While this works for time intervals of 1s, I doubt it will be precise enough for 10 ms.

 

 

Is there any other way to do it?

0 Kudos
Message 4 of 9
(4,588 Views)

I would actually be surprised if your power supply could even handle the 10ms switching.  What value resistor are you trying to drive into?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 9
(4,583 Views)

about 150 ohms.

 

The timing is a little flexlible. I could go up to 100 ms but I would want to increase voltage at some point and go upto 6 volts.

 

I read that the software timing can sometimes be inaccurate because of other processes overloading the operating system, which is why I was asking for hardware based solutions but if the inaccuracy is not much, I can probably go with software.

 

 

0 Kudos
Message 6 of 9
(4,581 Views)

I would go with something like a 9263 for analog output and then a BUF634P for amplifying the current.  You will want a 12V power supply for thebuffer amplifier.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 9
(4,564 Views)
I have a DAQ pci 6229 that can supply +/- 10 V analog output. Will this work with a current amplifier?

As an alternative, I wrote a piece of code to provide a given voltage for 100 ms, then switch to a 2nd voltage for 100 ms, then back to the first and so on...


Since the 100 ms will be software-timed, what kind of inaccuracies can I expect?
0 Kudos
Message 8 of 9
(4,546 Views)

@kumv10 wrote:
I have a DAQ pci 6229 that can supply +/- 10 V analog output. Will this work with a current amplifier?

That should work just fine.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 9
(4,544 Views)