06-22-2016 08:04 AM
Hello,
I would like to simulate a signal, based on datapoints in an Excel oder text file.
I have got about 10.000 datapoints and would like to simulate a real time signal based on this data, for testing my monitoring software. The final goal is to simulate the signal and put it into a subVI, so I can use the SubVI like a DAQ like it would be the real signal. In the end I would like to replace my simulated singal SubVI with a DAQ to acquire the real signal.
I've already tryed a lot different things but have not figuered out the right way to do this.
06-22-2016 08:20 AM
Do you mean the simulation data would vary based on some input its constant? Generally we generate signals using the Signal generation VIs
06-22-2016 08:21 AM
Create a sub VI which will read all the data points from the file and then Based on the Time delay you wish (Sampling Rate) Provide the read data points fromthe Loop, which you can acquire as a Simulated data from DAQ
06-22-2016 08:41 AM
The simulated signal should vary based on the datapoints in the Excel File. Every 10ms a new value should be displayed. Thats how the real system acquires data.
I tryed to use the singal generation VI but I dont want to generate a defined signal like a sine wave or something like that. The signal should follow the datapoints of the Excel file. Like a sensor acquires data from a process every 10ms I would like to acquire data from the excel file to use this as a simulated input for my monitoring system.
06-22-2016 09:00 AM
You can read the file and have that in a FGV (If it is not too large) and then read the value every 10ms.
06-22-2016 10:24 AM - edited 06-22-2016 10:25 AM
Thats what I actually tried, but it did't work like a realtime signal that could come from a real DAQ. Could you please be a bit more precise? I'm pretty new to LabVIEW and programming.
06-22-2016 10:27 AM
Please show the code you have developed so that we can check where and how the simulation code would fit in. You can search for Action Engine or Function Global Variable in discussion forum if you want to understand more about those.
06-22-2016 10:31 AM
@ZMK16 wrote:Thats what I actually tried, but it did't work like a realtime signal that could come from a real DAQ. Could you please be a bit more precise? I'm pretty new to LabVIEW and programming.
Perhaps you should show what you tried and then we can help you figure out where it went wrong.
Even then, being software timed, the timing will not be exact. It should still be good enough for test purposes though.
06-22-2016 11:51 AM - edited 06-22-2016 12:11 PM
Thats the only way I was able to simulate a signal, but thats not working the way I wanted.
06-22-2016 01:36 PM
So thats what I have so far. It can display me the chart of the data but it is not like a real signal I can monitor or work with. I think its the wrong approach for archieving a simulated signal from an excel file containing a column of numbers (saved process data).