04-10-2021 10:19 AM
good evening! I'm trying to acquire the voltage and time from a fpga vi using this rt vi.
Now I'm trying to write this data in a text file with 2 columns, 1 for the voltage amplitude and another one for the time. could someone help me please?
I'm attacching the RT vi.
04-10-2021 11:19 AM
@alex8624 wrote:
I'm attacching the RT vi.
You did not attach "the RT vi", but a picture of a piece of the VI. Please attach the actual VI, and describe what the FPGA is doing, including (a) the nature of the FIFO (what size, and what are its contents), and (b) how often data are placed in the FIFO. You could even attach the FPGA code, or even (by compressing the folder containing it) the entire Project.
Bob Schor
04-10-2021 11:34 AM
yes sorry, the FPGA should acquire voltage data with a time that i should be able to choose with the controller. for the rt vi I want to display the data with the graph and I would like to write them in a text file but I'm not able to do so.
I think this time I have attached the fpga and the rt vi
04-10-2021 12:02 PM
Sorry, I was sloppy in my response. But since you were so responsive, I'll be more precise.
Bob Schor
04-10-2021 12:23 PM
it should be everything there, or at least I hope what you asked me is there.. the open closed file text are not attached to anything because I dont know where to wire them.
04-10-2021 02:10 PM
Thanks. I'm not an FPGA expert, and fairly new to the RIO world, but there are some things here that I don't understand (and it's probably my lack of experience -- I'm working on a RIO project now, but my previous RT venture was with a PXI system).
I think you've provided enough information for someone with more experience than I could provide more comments. But some things that puzzle me include:
Do you have colleagues who know LabVIEW with whom you can discuss this? Maybe someone else on the Forum can provide some help ...
Bob Schor
04-11-2021 01:46 AM
"This is the Real-Time part of a LabVIEW RT Project. I always did the "Front-Panel stuff" like graphing the data and writing data to disk on the Host ("My Computer")"
this is exactly what I thought I have done.. could you please tell me what to do different to do it, I dont know anyone that is able to use or know labview, so I cant discuss with anyone.
what I need to do is reading the voltage data with a variable frequency, decided each time, so I thought that using a controller in the fpga vi should do it.
then I need to write the data of voltage and the time in a text file.
04-11-2021 09:42 AM
"When the only Tool you have is a Hammer, Every Problem looks like a Nail".
Start with the Problem. Here is (my) summary, based on information that you have provided largely through "hints", but without directly stating the problem:
It sounds, to me, like you have "a hammer", and may be attempting to connect two pieces of metal together with 6-32 screws and nuts -- wrong tool.
There are inexpensive DAQ Devices, such as the NI USB-6001, that plug into a USB port on your PC, are programmed directly in LabVIEW (not LabVIEW-RT), can sample multiple analog channels at 10 kHz or higher, and cost around $200 (you can get equivalent products from other vendors that are LabVIEW-compatible).
Writing a routine to collect analog signals in LabVIEW with such an instrument is fairly simple. I recommend you do a Web Search for "Learn 10 Functions in NI-DAQmx and Handle 80 Percent of your Data Acquisition Applications" (I might have a word or two wrong in the title, but that's pretty close).
Assuming you have a USB-6001 (or 6002, 6008, 6009), here's the best way to get started (as outlined in the article):
Bob Schor