01-28-2019 01:03 PM
I am currently using an USB-7856 Multifunction RIO, and I am trying to generate a digital signal to send to my Variable Frequency Driver by AAOptoelectronics that will change the angle on my acousto-optic deflector, in order to generate a laser scan pattern. I have a NI SCB-68 HSDIO shielded 68 pin connector block hooked up to the FPGA, which is hooked up to the frequency driver via DB44HD connector, with 15 bit control. I have started a program using the sine wave generator on my fpga, however, I am unsure how I would send that to my board to then send on to the driver. I have attached my code to this post, and any help would be much appreciated!
01-29-2019 12:27 PM
Hi JCard,
What type of signal does your VFD actually expect? The Sine Wave Generator function is going to generate analog values. These values can be wired to an analog output channel in order to output a voltage signal that oscillates in a sine wave. In the VI you attached, you are trying to wire the signal from the sine wave generator VI into a digital line, which only accepts boolean inputs.
If you VFD expects an analog voltage signal, you should try writing the sine wave to AO0 instead of DIO0.
-Jordan
01-29-2019 02:33 PM
I'm trying to use a digital frequency control, so its expecting a digital signal. Is there a way to generate a digital signal?
01-29-2019 02:50 PM
For a digital signal, you would write boolean values to a digital output line (for example, connector0/DIO0). You can control the pulse width and the frequency of the signal in your FPGA code. By digital frequency control, do you mean that the VFD expects pulse-width module (PWM) signal? It is pretty easy to output a PWM signal on LabVIEW FPGA:
Pulse Width Modulation Example
Do more with LabVIEW FPGA - This link is for using FPGA on a cRIO, but it also applies to using FPGA on R Series. Take a look at the PWM section.
01-29-2019 02:54 PM
That sort of sounds like what I need to do. Here is the explanation from the VFD site about using digital control:
8 BITS FREQUENCY CONTROL (15, 23, 31b) A byte (8 bit //) controls the frequency of the output RF signal. A D/A converter converts the 8 bits command (N) on an analog signal which controls linearly the output frequency. 256 steps are available : refer to your test sheet for pin connections.
- When N=00000000, RF signal frequency = F minimum
- When N=11111111, RF signal frequency = F maxim
01-29-2019 04:16 PM
So this is different than PWM. Your VFD uses 8 different bits to determine what the frequency should be (basically a simple digital encoding method). So now the question is, does the VFD expect these bits all in parallel? In that case, you could write true/false to 8 different DO lines on your board and wire those 8 lines to the drive input. It would help if you could just link the datasheet for the drive.
01-29-2019 06:25 PM
It is attached to this post...thanks for the help!