10-15-2013 04:56 AM
Hi there,
I'm new to LabVIEW but have a small basic of programming in it.
Although I can't solve the programming issue i'm having right now.
First of all, this is what i want to do:
I'm switching pneumatic valves with an NI USB6009, using one Digital output. the output is connected with a Mosfet wich switches 24V.
The time that the valve is used (digital: '1') is controlable and the time that the valve isn't powered (digital: '0') is controlable too.
When the valve is longer than 3ms open and 5ms closed, i need to PWM the digital '1' signal with a duty cycle of 20% and a rate of about 10kHz.
If I do not use PWM after 3ms, the valve gets way too hot.
This has to repeat over and over again for a certain number of cycles wich is controlable.
When the number of cycles is reached, the test has to stop.
during the valve-switching cycle i want to measure (as precise as possible) what the exhaust of the valve does.
So i want to use 48kS/s on one channel and only use this channel for measuring.
I heard that an USB 6009 is not quite the best way for measuring these accurate signals but there is a possibility to upgrade the hardware.
The main focus is now to write a program wich switches like i described en measures at the same time.
Thanks to everyone that wants to help out!
kindly regards,
Koen Hendrickx
Belgium
ps: the attached pic is the way i'm searching right now, every hint, tip, solution is helpful!
10-15-2013 10:32 PM
6009 DIO is a software time, and it doesn't support counter output. Hence, 6009 cannot do DIO at that fast rate. All 63xx/62xx in http://sine.ni.com/np/app/main/p/bot/no/ap/daq/lang/en/pg/1/ps/30/sn/n17:daq,n24:USB,n6:7693/ could do the job. If you use 62xx/63xx, you can find counter output example from Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Generating Digital Pulses.