01-29-2014 07:58 AM - edited 01-29-2014 08:11 AM
Hello all,
I am attempting to adapt this sample project to my hardware. I've added my cDAQ 9139 target to the project and moved the appropriate files. I've setup the config xml file and loaded it to the root of the cDAQ.
I can run the real time Main.vi and the UI Main.vi. However, upon entering the ip for my target and pressing the connect button, the reat time Main.vi stops running. I also get the UI Error 314004 and the UI Main.vi continues running.
Any thoughts on what I'm doing wrong?
Thanks
Michael
Upon further investigation, I've discovered an error in DAQ Initialize.vi.
DAQmx Start Task.vi:7220001<append>
<B>Property: </B>AI.Min
<B>Requested Value: </B>-5.0
<B>Value Must Be Greater Than: </B>-78.125000e-3
<B>Value Must Be Less Than: </B> 78.125000e-3
<B>Device: </B>ThermoCoupleMod
<B>Task Name: </B>_unnamedTask<7>
Any suggestions on where to look for correcting this?
Thanks again.
01-29-2014 09:00 AM
Update:
I located the DAQmx error from above and corrected that. I also determined what needed modified in the three DAQ vi's referenced in the white paper for the sample project. This has resolved my immediate issues. Both main vi's run and I can connect to the target. I'm still working through adapting the project as I cannot currently view any live data. I believe this is likely caused by another configuration step I need to complete.
Does anyone have any suggestions on how to modify the sample project to allow viewing multiple channels in the live data view, perhaps on another tab?
Thanks
Michael
01-30-2014 06:43 PM
Before getting into the multiple channels stage, on the UI Main.vi:
There's an "Acquire Live Data" button above the live data. Have you managed to enable it, or does it stay disabled and grayed out?
01-31-2014 05:27 AM
Yes. I am now able to view live data, one channel at a time as I think it's designed.
I would really like to be able to view multiple channels at the same time. Ideally, I'd like this on the current graph tab (single channel live view isn't required) but having a separate tab would be fine too.
Thank You,
Michael
02-03-2014 05:19 PM
It is coded for one channel indeed. You would need to do some editing to make it work.
First, you definitively need to make sure that the Live Data Array “knows” it is going to receive an array with the channels. You can do this by putting the waveform constant on the “Send Live Data to UI” case from the UI Message Loop, inside an array constant. That will make the waveform chart accept an array of waveforms.
Then, you need to send the right data type from the Event Handling Loop (in the “Acquire Live Data” event, I believe). This means, you need to input the same array of waveform constant into the Enqueue Message function, wired to the Message Data input. This waveform array must come from the data acquisition loop.
Let me know how it goes.
02-10-2014 03:47 PM
Any chance you could post a pic of the code required. I made a couple attempts without success.
02-11-2014 04:51 PM
That's something hard to do without seeing the changes you have already done to the example. Can you upload it?