05-28-2016 06:02 PM
Hi all,
I am looking for some help with reading multiple analog and digital signals. Once read, I would like to chart and save the data for later analysis.
I have a working version for one analog and one digital signal (Analog and Digital - Working.VI).
The problem starts when I add a second digital channel as per 'Analog and Digital - Not-Working.VI. I get the error 201105 and can only chart and save data from the analog signal and one digital signal. I have tried several alternative metods such as reading two channels using one 'DAQmx Create Channel' which stacks up the digital signals. As I want them seperate, I have tried to convert them into a bolean array and then indexing the array to split the signals but this fails to record either of the digital data (Both Digital Signals though One DAQmx.vi).
I have attached the working VI with one analog and one digital signal and the non-working VI with and additional digital signal.
Any help or adivice would be appreciated!
05-29-2016 02:14 AM - edited 05-29-2016 02:37 AM
I only opened the "Both Digital Signals through One DAQmx.vi". So my comments for this VI:
edit: You should also use two DAQmx Clear Task functions after the loop to properly release the HW resources.
Edit2: when you specify the DAQmx Read function as "NChan NSamp", then you also need to tell the driver to use two channels for the two lines:
05-29-2016
02:58 AM
- last edited on
01-10-2025
03:29 PM
by
Content Cleaner
The VI below (snippet: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2PkCAI&l=en-US ) can give you some idea how to create a Producer/consumer pattern. Finish the data logging part, if you get problems with that part, post your actual VI and we can help and advice.
05-29-2016 03:26 PM
Thanks Blokk for reviewing my VI and making some suggestions on how to make it work.
I will try and complete the design and see if I can make it work. I will let you know how I get on.