02-26-2008 04:21 PM
02-27-2008 06:21 PM
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)
02-27-2008 07:12 PM
Hi,
Thanks so much for your help!
I decided to use the lower level DAQ vis instead of DAQ assistant, and that made it much easier to set up a channel selector.
As for the voltage range issue, I was wondering if I should make a subroutine that compares the signal amplitude to the maximum values for the three ranges - once the amplitude exceeds one of the range values, it would stop the task, reset the task's range values, and then restart the data collection. Would something like that work, or do you have any different suggestions?
Lastly, the program that we use for our thermocouples is called 'NI Datalogger' - apparently that is different from VI Logger. I tried to follow the instructions from the VI Logger manual, but they don't seem to apply... Any other ideas? I was wondering if I could set up Datalogger as a sub vi, and if so, how? Of course pasting in the code would be preferable, but whatever works! 🙂
Thanks again! Myra
02-28-2008 03:05 PM
02-28-2008 05:28 PM
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)
03-04-2008 05:19 PM
Hi,
Thanks for your response. So far the most helpful example I've found is the "Cont Acq Thermocouple Samples - Int Clock".vi. I'm a bit confused, though - because when we use Datalogger, we can select one channel (which corresponds to two inputs - one from our thermocouple of interest, and the other from the thermocouple at our reference temperature). We are using type T paired thermocouples, so all of our connections are with copper wires. When I try to use the "Cont Acq Thermocouple Samples - Int Clock".vi it prompts you for the CJC temperature.... this is the cold junction compensation, correct? I thought that this would apply if you have your thermocouple wires connected to wires of a different type (at the DAQ board), creating additional junction voltages that you must subtract off.
In our case, I thought that the wiring within the board is also copper, so we wouldn't be creating any additional junctions - is that right?
I'm also not certain if we are doing something different than usual with our thermocouples, in that we are not just using one type T junction - we have two. Am I making any sense?
Thanks! Myra
03-04-2008 05:48 PM
Sorry - I wanted to try to clarify more. Our thermocouple arrangement looks basically like Figure 3 in the "Taking Thermocouple Temperature Measurements" tutorial in the developer zone - if you exchange the iron wire for constantan and the other two constantan wires for copper. After reading the tutorial, I'm left wondering how Datalogger takes into consideration the temperature of our reference point. As I said in the last posting, there's no prompt for the cold junction temperature. Previously I had thought that the program would just measure a voltage difference which would tell us how high above the reference point our 'hot' temperature is - but that would only work if thermocouples are linear. Am I understanding this right?
One thing that I hadn't mentioned before (I was afraid it might complicate things even more 🙂 ) is that we actually use two sets of the thermocouples - one that measures a 'hot' temperature and a reference, and the other that measures a 'cold' temperature and hopefully the same reference. On Datalogger, we type in "Dev1/ai0, Dev1/ai1" under physical channel, and it plots the temperatures of the hot and cold sides (at least that's what it's supposedly doing - now I'm really confused and can't understand how that is possible!). Is there some way that the software might be taking into account the reference temperature that I just can't see now? Since I can't see the block diagram, I really don't know.
Myra
03-05-2008 03:35 PM
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)
04-30-2008 05:21 PM
05-01-2008 09:43 AM - edited 05-01-2008 09:44 AM
If you mean you could use two different DAQmx Create Channel functions on the same task, then that will not affect sampling. If you mean you could use two different tasks with two different DAQmx Reads, then you can't do that. Shown below is a DAQmx Create Channel inside a for loop so you would have arrays of channels, ranges, configurations, and each can be different.
Also, you should not be placing all of your attached code inside a for loop. There is no reason to be creating, starting, and stopping a task with each iteration. You also mention a sequence structure. You might want o think about ways to eliminate that. Use dataflow to control execution order.