04-13-2012 02:35 PM
Hi All,
I am having quite the difficulties merging two VIs. I am trying to get thermocouple readings and pressure readings in one VI. I think the two AOs are competing for clock resources. Please forgive my noob-ness. I am very new to LabVIEW and it is not the most intuitive. I have attached the thermocouple VI that I am trying to insert into the pressure VI. I appreciate any help. Both VIs were working before the merge.
Solved! Go to Solution.
04-13-2012 03:35 PM
Your VI could really use a cleanup. I can't figure out what your VI is doing, and I'm not going to spend an hour trying to figure it out. All I can do is point you here: Causes of NI-DAQmx Error -50103 "The Specified Resource is Reserved"
04-13-2012 03:57 PM
Hi bronco.
From what I was able to pick up, you start an analog task in both VI's at the same time, depending on your card that could be causing trouble (namely if your card only has 1 ADC).
Check out the link thatsmercurio posted, what I mentioned is one of the reasons the article mentions.
04-13-2012 04:02 PM
Agreed, it is pretty ugly.
Looking at #6 on that list, I am taking in an analog input of pressure and an analog input of temperature. Is the hardware unable to support this? Would I need another card to support this operation?
04-13-2012 04:04 PM
ADC?
I have the instruments reporting to a PCI-6281. I also have a PCI-6602 with RTSI if that can controbute to the solution.
04-13-2012 04:39 PM
Hi Bronco.
The problem you have is that you're calling 2 Analog Input tasks at the same time, and they both try to access the resources on your DAQ. In this case the DAQ only has 1 ADC (analog to digital converter) that is multiplexed to acquire data from all channels.
To solve this you have to combine both tasks into a single task, here's a link on how to do it: http://ae.natinst.com/public.nsf/web/searchinternal/3296ba2aef586b7386256d6d00528e3d
If you want to send the data from one VI to another there are several techniques. You could use a global variable (easiest but not recommended), a functional global variable, queues or other methods.
I hope this helps.
04-13-2012 04:45 PM
link didn't work...
04-13-2012 05:08 PM
I'm sorry!
Gave you the wrong link, here's the correct one: http://digital.ni.com/public.nsf/allkb/3296BA2AEF586B7386256D6D00528E3D?OpenDocument
04-22-2012 09:44 PM
Tada!