LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAC Problems

I am have a problem with my vi.I have a main vi that can select different vi's through a subpanel, also on the main vi is indicator for a power supply and one for a load cell if these go under the rquired level or above a weight they stop.

The problem is that when I select one of the operations calibrate and read height ( see attached library ) the DAC has a error which I dont know how to fix. the error is 50103 which occured at DAQmx Read (Analog 1d wfm Nchan Nsamp).vi or at DAQmx Start task.vi which is in the DAC assistant front panel when you open it. It is in the library attached the main.vi is viewer open that and run it and ye will see

ye might have to put a constant for the load cell and battery to stop them for stopping it
0 Kudos
Message 1 of 2
(2,731 Views)
Hi,
you've got two pieces of DAQ assistant looking at separate ai channels, but both are set for continuous, so when you call up the second vi (into the sub panel) and set it running, it can't get onto the ai part of the board since it's already in use.
I've attached a quick piece of code to show this.

You either need to work on one channel at a time by stopping the first task, or get the data for both channels all the time, but pass the second set of data (for the 2nd channel) over the the vi in the subpanel at the appropriate time. (look at notifiers, queues etc).
a quick solution is also attached

Hope that helps

Thanks

Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 2 of 2
(2,669 Views)