08-15-2019 10:06 AM
Hi everyone-I have a sinewave that I want to send to a DUT while I write a command to and read a response from the DUT. How do I do this? I included a picture of the steps I have so far...I have an asynchronous step in there right now for a sinewave VI but I'm not sure I have all the settings in there correctly because I'm getting the same response from the "Thor ECG write/read" steps as when I do when I apply no wave in there, so I think I'm missing something. I want to run both sinewave steps for channels AO0&AO1 for about 45 seconds. Please feel free to ask any questions if it is not clear to you what I want to do.
08-15-2019 10:36 AM
I want to run 2 sinewave VIs (going to 2 different channels) in the background while I run a couple other steps. How do I do this?
08-15-2019 10:52 AM
1. How long do your sine waves run for?
2. You will have to combine the two outputs into a single task. I am pretty sure you are getting an error from your DAQ due to a resource conflict. Yes, you can have multiple channels in a single task.
08-15-2019 10:58 AM
I need to run each sinewave for about 30 seconds, both from channels ao0&ao1 at the same time.
How do I combine the two outputs into one?
08-15-2019 11:03 AM
You can launch your VIs (after merging if you decide to do so) in a subsequence that launches in a new thread or a new execution and use the wait step or any of the other synchronization steps to wait until that thread returns. Alternatively you can let it run its course without waiting for it to return.
See this document that explains this in more detail - https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kG1RSAU&l=en-US
08-15-2019 11:15 AM
When you create your task, you have to call the DAQmx Create Virtual Channel for each channel you want to add. You will then have to calculate your sine waves together and supply those signals to the DAQmx Write configured to write to multiple channels.