Variable frequency driver control by analog voltage output
I need to drive a variable frequency inverter to drive a compressor and I am too newbie in this kind of works. The inverter can be controlled by analog voltage input and I have NI9188 and NI9263. I have never used analog output modules before and I have some doubts about them.
1. how could I drive the motor continuously?
2. do I have to use device internal clock or software clock?
3. in some examples, a waveform is generated and sent to the write daqmx vi to generate analog output. do I need to do it? (By the way, I prepared a control subVI to send the required input voltage data to the write daqmx.)
4. It is talked about pulse with modulation sth like that. What is it exactly? Do I need to concern about it?
I need to drive the compressor with two temperature feedback so I prepared a huge program by master/slave design pattern. I attached it. Does this program work? I do not want to harm the motor so I could not test it.
Egemen
Attachments:
Control Project.v0.zip 2672 KB
Hi newbieeng,
I hope you are doing well today! I can help answer questions, but I can't debug a program and say whether it will work or not.
A lot of these question depend on your specific application and can't be answered in general. I would take a look at the specifications document for the NI 9263 and also the specifications for your motor. I'm including a link below to the specifications document for the NI 9263. I would highly recommend looking at the current draw of the motor. The most the NI 9263 can drive is 1 mA per channel.
OPERATING INSTRUCTIONS AND SPECIFICATIONS
NI 9263
http://www.ni.com/pdf/manuals/373781e.pdf
As far as hardware timing vs. software timing, it really depends on what you want to do. Hardware timing provides most more precise control over the timing of the output.
From one of the subVIs you provided, there seems to be a mention of a relationship between frequency and RPM. Is this representative of a control signal the motor expects? Is this the pulse width modulation (PWM) you were talking about? If your motor requires PWM, then you will need to send it the appropriate signals. I'm attaching a link below to an example regarding PWM.
Pulse Width Modulation
https://decibel.ni.com/content/docs/DOC-17537
Hopefully some of this is helpful!
Josh B
Applications Engineer
National Instruments
Similar Messages
-
How to use a Time - Voltage Array to Control a Analog Voltage Output using DAQmx Write VI
I have an array of Time values associate with Voltage values that I want to use to control a Anolog Votage Out Device (PXI-6251) using DAQmx. The array contains 1,000 elements. The time values are NOT evenly spaced, the rate changes through the array. The array is output once, timed to other processes.
My problem is I haven't been able to locate a reference on how to handle the timing variability in the array. If time was equally spaced I could use a loop....
The attached showes the array, first row is time (ms) and the second row is voltage (volts).
Can someone point me in the right direction?
David
Attachments:
TimeVoltage.png 11 KBDavid,
if you have only Base version of LabVIEW, this will be a time consuming task.
If you have either Full or Professional, you will find interpolation-functions in the mathematic palette.
I am not sure which ones serves you best, but i'd startexperimenting with Interpolate 2D.
hope this helps,
Norbert
[Edit]: You could also use a polynominal fit on your voltage values. You will get a function describing the voltage over time. But you will have to modify this function to take care of the variation of time spacing. If you have a function describing your voltage over your (nonconstant) timestamps, you can simply create values for constant timeslices for your voltage.
Message Edited by Norbert B on 11-06-2008 10:21 AM
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Variable Frequency Drive Simulation in Multisim 11
I'm having trouble creating a VFD simulation on Multisim 11. I've created a Delta source connected to a 6-pulse rectifier, which connects to a filter, which connects to a PWM (antiparallel SCRs), which connects to my motor.
Any corrections to be made? Additions? Thanks.Just an update for the community. In version 12 we have added a lot more components into the Electro_Mechancal family which can really enable users to further their testing abilities.
Co-Simulation is also a very revolutionary feature that has been added to Multisim to allow users to test a complete system by being able to test their circuits along side their LabVIEW code.
Regards,
Tayyab R,
National Instruments. -
I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor. Could you suggest me appropriate driver IC using which this problem can be solved.
Saravanan.TYou really should use a DC motor controller to control a DC motor, look at the 754410 IC for a good example. You should be able to interface these to most DAQ devices.
Alan -
I controled voltage output by vertical pointer slide In my vi.Now,I try to
control it by a series accurate values. I want to get output according to
the array's value.
Attachments:
input+output.vi 51 KBYun,
Here's a simple example I wrote that does what you are trying to do. You can wire an array into an Analog Out 1D DBL 1 chan N Samples. Then I wired the size of the array into the number of samples per channel on the timing vi.
Regards,
Danny F
Danny Funk -- Staff Product Support Engineer -- InsightCM R&D -- National Instruments
Attachments:
AnalogOut Array.vi 20 KB -
Continous sound output with variable frequency?
Hi all!
I wanted to output a signal via the soundcard with one variable frequency.
How can I do that?
Thanks
ANDYHi Andy
I'm afraid I've only got access to 7.0 & 7.1.
SO Set Num Buffers.vi uses a Call Library Function node to access lvsound.dll.
Hmmm...
I've had a scan around and you could try checking this link
It may give you some clues.
Good luck
Neil -
How can I monitor the voltage output sent to each servo axis programmatically?
Hi I am wondering if it is possible to monitor the voltage that's being sent to a servo motor during an axis position movement (in particular quantities such as max voltage). I am using a PID controller to drive this servo motor.
Thanks
VladHi Vlad,
Unfortunately, I don't think there is a way to programmatically read the voltage output to the drive, as the voltage is all determined internally by the controller circuitry on the board. Depending on the controller though, you may be able to physically route the output terminal to a spare analog input channel and read in the voltage that way. This example Analog Input with 73xx Motion Card shows you how to program LabVIEW to do this. -
PCI 6221 Generating a Voltage Output
Hello everyone,
I am trying to use a PCI-6221 to provide an analog output voltage of 5V and use the AI to read the returned signal using labview. Does anyone know how I can do this using this hardware device?
Thank youHi lrving9,
First you will need the DAQmx driver, here is the link for you to install the latest version.
NI-DAQmx 15.0.1
http://www.ni.com/download/ni-daqmx-15.0.1/5353/en/
If you already have it, then go ahead and take a look at this examples:
This one shows you how to output an analog DC voltage.
Community: Output a Constant Analog Voltage
https://decibel.ni.com/content/docs/DOC-18631
Then do you have a connector block to connect the signals?
If you do, then you can just create a task to read a Continuos Voltage Input, like in this example
Community: Voltage - Continuous Input
https://decibel.ni.com/content/docs/DOC-25105
If you do not have a connector block and have no way to connect the AO to an AI, then you can read the internal AO channel, like shown in this link (there is an example at the bottom):
Is It Possible to Read the Value of Analog or Digital Output Channels?
http://digital.ni.com/public.nsf/allkb/CB86B3B174763C3E86256FFD007A2511
Also when you install the driver some examples are installed as well, this shows you how to get to them:
Where Are NI-DAQmx Examples Installed?
http://digital.ni.com/public.nsf/allkb/E3BAF6FC4017960B8625755A00525D37
Regards,
Carolina
-
USB-6009 Analog Waveform Output
I'm trying to create an analog waveform from a USB-6009 device through one of the analog output channels. However, through the DAQ Assistant, I can only select the 1 Sample (On Demand) setting. When I test the device, I can only push a constant voltage out. If anyone has any advice on how to create an analog voltage waveform using this device, I would like to know.
>I am only a novice at LabVIEW and data acquisition in general.
I don't use Labview (I write in C++) so I can't help you with that. I try to answer questions about C/C++ and general hardware questions.
>What did you mean by software-timed waveform generation?
That's where the software driving the device sends a sample to the DAQ device, waits for the prescribed time interval, then sends the next sample. So the timing of the waveform is driven by the software, using the computer's clock, instead of by the DAQ hardware. Software-timed is less reliable and has (often) lots more jitter because of competition for CPU resources.
>Does this mean that I cannot generate a waveform that is more than 150 Hz?
It's worse than that. It means you can't generate a waveform faster than 150/N Hz, where N is the number of samples (data points) that define the waveform.
John Weeks
WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com -
How to measure the analogy voltage from different source?
Hi all,
I am trying to measure the voltage generated from a function generator ranged from -2V to +2V. I am trying to use a PCI-6023E for analogy input. I directly connect the voltage output from the generator to one of the analogy input channel, but the reading is not that accurate, it should be 2.4V but sometimes it read 2.6V and sometimes 2.2V or less. I am thinking if anything to do the the ground? Where should the ground of the BNC from the generator should connect to? Someone suggests to use differential input but I have no experience of doing that, any suggestion or example?Hi dragondriver,
I'm providing below links to 2 documents that discuss wiring considerations that are applicable to your device. Hopefully this information is helpful!
E Series User Manual
http://www.ni.com/pdf/manuals/370503k.pdf
Field Wiring and Noise Considerations for Analog Signals
http://www.ni.com/white-paper/3344/en#toc5
Josh B
Applications Engineer
National Instruments -
Sound from headphones and analog line output?
Is there a way to get sound our of the Mac Pro from the analog line output and the headphones at the same time?
dennisThank you Malcolm it works well. The only thing I found out is when doing it this way Audio Hijack Pro has to be in the record mode and on pause or files of what you are listening to will be created, eating up hard drive space.
But it works!
Dennis -
Better estimation of phase difference between two signals with variable frequency!
Hello LabView Gurus,
Being a power engineer and having just a little knowledge of signal processing and labview, I have been pulling my hair out for the last couple of days to get a better estimation of phase difference between two signals.
We have two analog voltage signals; 1. sine wave (50Hz ± 1Hz) and 2. a square wave with exactly half of sine wave frequency at any time.
At the starting point of operation (and simulation/acquisition) both signals will have no phase difference. However, the square wave's frequency changes unpredictably for a just a few millisecond but then it gets synchronized with sine wave's frequency again. This means that the square wave will be phased out from its original position. The task of the labview is to find the phase difference between the two signals continuously.
My approach to determine the phase difference is to measure the time when sine wave crosses zero amplitude and the time when the very next square wave changes amplitude from zero volts to +ve voltage (I have a 0.5volts threshold just to avoid any dramas from small line noise). The difference between these times is then divided by the time period and multiplied by 360 to get this phase difference in angles.
As this part is just a small block of a big project, I can only allow 5000Hz sampling rate each for both signals. I read 500 samples (which means I read data from 5 cycles of sine wave and 2.5 cycles of square wave).
Now the problem is, as long as the frequency of sine wave stays constant at exactly 50Hz, I get a good estimation of the phase difference but when the frequency changes even a little (and it will happen in the real scenario i.e 50Hz ± 1Hz and the square wave's frequency is dependent of sine wave's frequency), the estimation error increases.
I have attached my labview program. From front panel, you can set the phase of square wave (between -180 and 0) and you should see the labview's calculated phase in the indicator box named 'Phase'. Then you can press 'Real Frequency' switch that would cause the frequency to change like it would in real operation.
You can observe that the estimation error increases after you push the button.
All I need to do is to reduce this estimation error and make it as close to the actual phase difference as possible. Any help would be greatly appreciated.
I am using LabView 2009 for this task.
The application is for electric machines and the stability/performance of machines under different faults.
Thank you for reading this far!
Regards,
Awais
Attachments:
v603.png 320 KB
v603.vi 186 KBJeff Bohrer wrote:
Basic math gives me a bit of pause on this approach. You are sampling at 50 times the frequency of interest so you get 50 samples per cycle. your phase resolution is 1/50th cycle or 7.2 degrees +/- noise. You will need to samlpe faster to reduce phase resolution or average multiple readings (at a time cost that is signifigant)
Jeff- (Hardly Working)
I am sampling at 100 times the sine wave's frequency and 200 times the square wave's frequency. Increasing the sampling rate completely solves my problem. But since I am acquiring several other inputs, I cannot afford a sampling rate higher than 5kHz.
F. Schubert wrote:
I'm not a signal processing expert, but here my basic understanding.
If you simulate sampling with 5kHz and a frequency of 50 Hz (and both are 'sync' by design), you always get an exact 5 periods. Any variation of your signals frequency gives you a propability to get 4 or 6 'trigger' events. That's an up or down of 20%!
The one measure to reduce such problems is using 'window functions'. They don't fit your current approach (counting instead of a DSP algorithm), so this needs to be reworked as well.
My approach would be to use the concept of a Locki-In amplifier. You need to phaseshift your ref-signal by 90°. Then multiply your measurement signal with the ref signal and the phase shifted ref signal. The obtained values for x/y coordinates of a complex number. Calculate the theta of the complex number (with the LV prim). Feed this in a low pass filter.
The trick on this is, that the square wave has harmonics in it, in this you are interested in the second harmonic which is the sine wave.
To get rid of the effect that the sync between sampling rate and ref signal frequency gives an error, you then can use the window I mentioned above (place it before the lock-in).
For a design that really plays well, use a producer-consumer design pattern to get the calculations done in parallel with the DAQ.
I suggest you to check on wikipedia for some of the keywords I mentioned. Go also for the external links which lead to great tutorials and AppNotes on the signal processing basics.
Sorry, it's not a simple solution I offer and we will have quite some conversation on this forum if you follow this path. Maybe someone else knows a simpler way.
Felix
www.aescusoft.de
My latest community nugget on producer/consumer design
My current blog: A journey through uml
An interesting view. the sine wave can indeed be looked as a second harmonic of the square wave. I will implement your idea and get back to you as soon as I get some results. But since I have very limited knowledge of signal processing, it might take me a while to get my hear around the solution you mentioned. -
Has anyone used Labview to communicate over usb (or RS232/RS485) with an Danfoss VLT AutomationDrive FC 302 adjustable frequency drive ?
Thanks
HierromovilDuplicate - http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Labview-to-communicate-over-usb-with-a-Danfos...
-
Hi,
I was wondering if some one could assist me, I'm trying to output an analog signal form a NI9264 module, my current code is attatched below. I'm sure I'm just doing something very silly but when I run the VI and turn the dial nothing happens, any help would be much appreciated.
Thanks
Attachments:
quick tester.7z 158 KBtwo suggestions.
first verify that your fpga vi runs by itself. run the vi and adjust the control and observe the output. if this works, move to step 2
two. move the open fpga reference outside the loop so you only do it once. i suspect that subsequent call to the open are returning an invalid reference. if you wire and show error terminals, it may help
Stu McFarlane
Viewpoint Systems, Inc. -
What is the minimum analog voltage signal that can be generated from an DAQ device (eg : USB 4431 ) ?
Can analog voltage signal of order of micro volts (e.g 10-100micro ) be generated with any analog output card?What kind of accuracy do you need? The USB-4431 has an AO, but the typical DC offset is 700uV, 2mV max. So I wouldn't count on it setting to 10-100uV.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Maybe you are looking for
-
Hi I have a couple of issues on our company network. The first is thate a single large file copy imapcts the entire network and dramatically reduces network speed and the second is that there are periodic outages where file open/close/save operations
-
How can determine the duration of an audio file
Hi, i'm making speech recognition project using java. i can capture sound by michrophone and playback it. the type of the sound is .wav. my question is how to determine the recording duration (for example: determine the duration for 0.25 second) beca
-
My Disk Utility has disappeared
Hello. My disk utility has disappeared, i can't find. I used the Apple Hardware Test on the Install Disc but it does not find error. What can i do? Help me please. Thank you
-
SMS outgoing messages not showing in messaging apps since kitkat
Since the upgrade, when I use the integrated Voice Mate or Google Search to create an SMS, it successfully sends it, but the outgoing text does not show in the SMS app. I've tried the stock SMS and other 3rd party apps, with the same results. Howev
-
How do we change/recover the answers to security questions for AppleID?
My grandsons forgot the answers to their security questions for their AppleID and can't download from the iBookstore. How can we reset them? I went into Manage my Apple ID but it is asking us for the answers. Thanks.