VARSHA AMALE Posted August 23, 2021 Share Posted August 23, 2021 Hi Attila, I want to know how to import .csv file for Analog Discovery 2 device using LabVIEW. Link to comment Share on other sites More sharing options...
0 attila Posted August 23, 2021 Share Posted August 23, 2021 Hi @VARSHA AMALE See the following: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YH2MCAW Link to comment Share on other sites More sharing options...
0 VARSHA AMALE Posted August 24, 2021 Author Share Posted August 24, 2021 Hi Attila, Thanks for the information. Actually the point is I have installed "Digital Waveforms Toolkit" for pattern generator in LabVIEW. But I want to read the data from .csv file and display on Waveforms software using that toolkit. And in Digital waveforms toolkit, I'm not getting any option to import .csv file. Please help me on this that how can I get to import file in Digital Waveforms toolkit for pattern generator. Link to comment Share on other sites More sharing options...
0 attila Posted August 24, 2021 Share Posted August 24, 2021 Hi @VARSHA AMALE The Toolkit VIs do not support digital pattern generator. For low rate software toggling you could eventually use the Digital VIs. See the manual for more detail. You could also use the WF SDK DigitalOut functions but this would be more work in LabView. See the SDK manual and Python examples. Link to comment Share on other sites More sharing options...
0 VARSHA AMALE Posted August 25, 2021 Author Share Posted August 25, 2021 (edited) 23 hours ago, attila said: Hi @VARSHA AMALE The Toolkit VIs do not support digital pattern generator. For low rate software toggling you could eventually use the Digital VIs. See the manual for more detail. You could also use the WF SDK DigitalOut functions but this would be more work in LabView. See the SDK manual and Python examples. Hi Attila, our requirement is to generate 2-bit data synchronized with 1Mhz clock using labview. We have a total of about 100M data samples. Is this possible to implement with Analog discover 2 on labview? Also, we checked digital IO example code "Digilent_Waveforms_Digital (DIG).vi" for pattern generation, but we couldn't find a way to access inbuilt 16K buffers for each output pin. Let me know if this is the correct application to be used. I referred the link below for digital IO code example. https://forums.ni.com/t5/Analog-Discovery-Student/Getting-Started-with-LabVIEW-and-Analog-Discovery-2-NI-Edition/ta-p/3553508?profile.language=en Edited August 25, 2021 by VARSHA AMALE Link to comment Share on other sites More sharing options...
0 attila Posted August 25, 2021 Share Posted August 25, 2021 Hi @VARSHA AMALE It is not supported by AD2. The Digital Discovery provides Play mode which is also available from SDK see the DigitalDiscovery_PlayRecord.py example Link to comment Share on other sites More sharing options...
0 JColvin Posted August 26, 2021 Share Posted August 26, 2021 @VARSHA AMALE, It looks like our spam filter caught you for whatever reason (don't know why you got flagged since you have legitimately posted multiple times) but I'll put the reply you were attempting to post for your convenience: Quote Quote 22 hours ago, attila said: Hi @VARSHA AMALE It is not supported by AD2. The Digital Discovery provides Play mode which is also available from SDK see the DigitalDiscovery_PlayRecord.py example Ok Attila. I'll check for DigitalDiscovery_PlayRecord.py. Thanks for the help. Thanks, JColvin Link to comment Share on other sites More sharing options...
0 JAlaj Posted February 23, 2023 Share Posted February 23, 2023 Hello Experts I am using Digital Discover HW and not able to see how i can import a csv file to load the contents of csv file into pattern. There is no option in File drop down menu to import a csv file. Please suggest if there is any option for same Thanks, Jalaj Link to comment Share on other sites More sharing options...
0 attila Posted February 23, 2023 Share Posted February 23, 2023 Hi @JAlaj For custom pattern up to 32Ki sample, first add signal or bus in Pattern Generator then Edit, select Custom and Import. For Play/Record use File/Import in Logic Analyzer. JAlaj 1 Link to comment Share on other sites More sharing options...
0 JAlaj Posted February 23, 2023 Share Posted February 23, 2023 Thank You Is it possible while using SPI, i can send a SPI pattern in which first 8 bits will be sent, then 32 bits and then 8 bits , and chip select remains low during entire pattern, and can i use script for same Regards, Jalaj Link to comment Share on other sites More sharing options...
0 attila Posted February 23, 2023 Share Posted February 23, 2023 Hi @JAlaj See the following: Link to comment Share on other sites More sharing options...
0 JAlaj Posted February 23, 2023 Share Posted February 23, 2023 Thank You, so i am trying to think what will change in commands if i have toggle Chip select or not toggle chip select. Where exactly it is being controlled Also, what is the difference between read and write command and how it is implemented. Usually with read, we give address to be read and for write, its register address and data. i understand, it will depend on how slave understand the master. But how read and write functions in SPI protocol GUI REgards Jalaj Link to comment Share on other sites More sharing options...
0 attila Posted February 24, 2023 Share Posted February 24, 2023 Hi @JAlaj You can use CmdRead|Write or Start/Write/Read/Stop or ReadWrite and ignore the first read bits... The hw controlled CS gives better performance and precisely adjustable timing. Link to comment Share on other sites More sharing options...
0 JAlaj Posted February 24, 2023 Share Posted February 24, 2023 Thank You, Got it working now Regards Jalaj attila 1 Link to comment Share on other sites More sharing options...
0 JAlaj Posted February 27, 2023 Share Posted February 27, 2023 (edited) Hello I was also wondering if there is any option in any Digilent Hardware (Pattern Generator) by which i can send 1M bit patterns on 10 digital lines. Right now i see 32Ki only for each channel. I am looking for 1M for each channel. Please suggest Thanks, Jalaj Edited February 28, 2023 by JAlaj added details Link to comment Share on other sites More sharing options...
0 JColvin Posted March 1, 2023 Share Posted March 1, 2023 Hi @JAlaj, The Digital Discovery is hardware limited to 32 Ki samples/channel for the Pattern generator. You can do multiple patterns in a row to get a larger pattern, as mentioned in this thread: Or you also could use the Play function inside the Logic analyzer which will have access to larger buffers: Let me know if you have any questions. Thanks, JColvin Link to comment Share on other sites More sharing options...
0 JAlaj Posted March 2, 2023 Share Posted March 2, 2023 Thanks I will try it but my only concern here is i have to modify the pattern file (which is receive from verification guys), break it may be and i want to avoid that so that i do not disturb the pattern. Is there a plan in future to increase the memory available as of today Regards, Jalaj Link to comment Share on other sites More sharing options...
0 attila Posted March 3, 2023 Share Posted March 3, 2023 Hi @JAlaj You could use the Play mode in Logic Analyzer, see: Link to comment Share on other sites More sharing options...
Question
VARSHA AMALE
Hi Attila,
I want to know how to import .csv file for Analog Discovery 2 device using LabVIEW.
Link to comment
Share on other sites
17 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now