Hi. I have 1D array floating number of some signal. I want to apply this 1D array to Labview FPGA to get analog output between -10Volt to +10Volt.
My question is that possible to 1D array floating number to apply on FPGA for generating signal from ossiloscope?
Thanks for everyone in advance.
The output terminals are of type integer. I recommend you convert the data to integer before sending to the terminals.
Where is the data originating from? Is it the host? Is it the FPGA itself?
The output terminal will force the output to be converted. The data can be sent to the FPGA using a DMA-FIFO originating from the host computer.
Your numeric data appear (from your graph) to have X and Y values that go from -30 to +30 (approximately). You appear to be sending them to an Analog Output device. All AO devices have a voltage Range for their output (for example -10V to +10V, or 0 to +10V) and also a number of "bits of precision" (typically 12 or 16 bits).
Let's say you have a D/A that's a 16-bit, ±10V system. A 16-bit (signed) integer in LabVIEW is an I16, which can range from -32768 to 32767. You need to "scale" your Dbls that go from -30 to +30 to integers that range from (I'm going to cheat a little for simplicity) -32768 to +32768, and send these values to the two D/A converters. If you want, you can put a x3 amplifier on the output of the ±10V D/A to turn it into the ±30V signal you showed.
The scale factor, of course, is 32768 x Voltage/30.
Bob Schor
ConnectorA/AO0 sounds like you are using a myRIO device.
According to this manual these analog outputs have 0-5V single ended and 12 bits. So you will have to adapt the calculation. Page 10 in that manual explains the actual calculation between the output voltage and the digital number range on the FPGA side.
If you prefer bidirectional +-10V range you should use the analog output channels on Connector C.
OK, you have gotten several "possibly helpful, possibly irrelevant(!)" suggestions. So here is one more (in several parts) which will probably make any further suggestions more likely to be both helpful and relevant:
Bob Schor
OK, my bad, sorry, It was not intended to add anything with generating signal as tahatas23 showed.
I saw mentioning of myRIO and bi-directional signal so just thought it might be helpful, just in case. I just found that post helpful in my scenario where I was supposed to output bi-directional sine wave. I could not do it with myRIO-1950.
tahatas23- Please ignore my previous response in this post.
@N_743 wrote:
OK, my bad, sorry, It was not intended to add anything with generating signal as tahatas23 showed.
I saw mentioning of myRIO and bi-directional signal so just thought it might be helpful, just in case. I just found that post helpful in my scenario where I was supposed to output bi-directional sine wave. I could not do it with myRIO-1950.
You use bidirectional. But are you sure you mean that? Isn't it maybe symmetrical? As in positive and negative amplitude around the 0 point? And yes the myRIO-1950 does not have the MSP connector (ConnectorC) so is not containing the two symmetrical Analog Outputs. However you still could generate a symmetrical signal around the 2.5V value and then using AC coupling (and an external amplifier) get rid of the DC voltage from that signal.