LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stopping DAQ assistant problem

Hi !

 

I'm using Labview 8.5. I'm developing some kind of home alarm system with one real sensor attached to a USB 6501 and 3 simulated channels of USB 6509 . I want to make some kind of switch attached to every DAQ assistant to use in a single moment only one of the 4 DAQ.s . So basicly i put every separate DAQ assistand in a while loop and connect a boolen stop to a stop port of the DAQ assistant but when i stop 1 the other 4 also stop. Can u help me please !

 

Thank You !

 

Here i attach my VI

0 Kudos
Message 1 of 4
(3,094 Views)

The Logic in which you designed is wrong... You should not use while loops for each DAQ assistant... Try using Event structure and dont use Express VIs Low level VIs are availabel use it....Because u have used while loop when you switch ON a sensor ( the buttons you placed) you will not be able to switch it back again till you switch the other loops...

 

Smiley Wink

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 4
(3,083 Views)

will be working event structure with DAQ assistant ?

0 Kudos
Message 3 of 4
(3,075 Views)

If you need to use multiple DAQ Assistants you've reached the level where you should not be using ANY DAQ Assistants.  Learn the low-level DAQmx functions and use them going forward.  The first step is to convert your DAQ Assistant code into real labview code.  You can right-click on it an select 'open front panel' or convert to LabVIEW code' or something like that (I don't use and Express stuff so I don't know the details.

 

Post your code after that and we'll help you along.  BTW, sounds like a cool project.  I'm planning something similar.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 4 of 4
(3,065 Views)