05-31-2019 12:44 AM
I have an excel file (.csv file format) containing the data of arbitrary waveform generated using a another function generator. I want to generate the same arbitrary waveform using NI PXie 5433 for better accuracy. When I load the file in the soft panel (Instrument Studio) provided by NI, it throws an error that it cannot read the data from the file I have loaded. Please suggest me any way of loading .csv file or in case if any template exist let me know. Thanks in advance.
Solved! Go to Solution.
05-31-2019 06:32 AM
It helps us to help you if you attach a VI showing what you tried, as well as an example of the file you are trying to read. Among other things, this tells us what version of LabVIEW you are using, and how (if at all) you are using the Read Delimited Spreadsheet function. I recommend you find this function on the File I/O palette and read the Detailed Help (which should solve your problem).
Bob Schor
06-05-2019 10:10 AM
Hi! I'm sorry for the frustration here 😕
The documentation about generating CSV waveforms is a little too simple, and I can see why you encountered this obstacle.
@vishwas95 wrote:
I have an excel file (.csv file format) containing the data of arbitrary waveform generated using a another function generator. I want to generate the same arbitrary waveform using NI PXie 5433 for better accuracy. When I load the file in the soft panel (Instrument Studio) provided by NI, it throws an error that it cannot read the data from the file I have loaded.
I have a question and a suggestion.
Would you attach the first few rows of your CSV file to a post? I want to understand how the data is structured in the file.
Secondly, there are two ways to generate CSV waveforms using InstrumentStudio.
For either mode, InstrumentStudio 2018 expects the channel sample data to be in the same row (see attached file for a sine wave). For the 2019 release, we have added a few more CSV structures, and I suspect your other function generator uses column-major data, where the sample data is in one column, but InstrumentStudio 2018 cannot read CSV files with this structure.
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
06-05-2019 11:57 PM
Hi Joe,
I am using Instrument Studio 2018. I am attaching sample pic of the samples.
06-06-2019 09:50 AM
@vishwas95 wrote:
I am using Instrument Studio 2018. I am attaching sample pic of the samples.
Thanks!
I suspect your other function generator uses column-major data, where the sample data is in one column, but InstrumentStudio 2018 cannot read CSV files with this structure.
Yes, this data file is column-major. To transpose them in Excel, use the transpose Paste modifier.
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
06-06-2019 10:38 AM
Hi Joe,
Thank you so much for your help.
03-27-2024 10:12 AM
Hello,
I am trying to do very similar :
I want to generate a sine burst using the "user-defined" option within InstrumentStudio.
I am using a PXIe-5423 card for generation and a PXIe-5105 for measurement.
I previously verified that I could generate a simple sine and measure it, which worked perfectly.
I am facing the problem discussed above ( error : Could not load data from: signal_burst_sinusoidal.csv. )
My data is arranged as proposed (not column major) and csv.
I tried using 8192 samples under standard waveform and still no success. Here is a screenshot of my data :
Thanks in advance for your support,