LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW DAQ application deployment on to a stand alone machine with compact DAQ

Hi Guys,

 

I am very new to LabVIEW, I have only just completed  Core1 and Core 2 so please be patient. I am currently trying to build a basic application to display data and then record it to a measurement file in the developer suite. The application will be deployed onto a stand alone PC with a compact DAQ connected to it. The problem that I am having is that I can not get my application to display any data from the compact DAQ, I have assigned a physical channel address within the code (please see the attached image for info) that matches the compact DAQ channel address. Can anyone provide some assistance your help would be greatly appreciated! My current set up is as follows:

 

  •  LabVIEW developer 2011 installed on a laptop for code and application generation / deployment.
  •  Stand alone PC with a compact DAQ connected to and runtime engine, DAQ drivers etc installed onto it.

Example.png

0 Kudos
Message 1 of 5
(2,831 Views)

I don't have compactDAQ but don't you need to initialize communication to it first to get a handle before trying to get data from it?  Your PNG file isn't big enough, but it seems you are immediately trying to talk to it at some address.

0 Kudos
Message 2 of 5
(2,806 Views)

Are you having trouble on your laptop, or on the standalone machine?  If it works fine on your development machine and not on your standalone machine, did you install LabVIEW support when you installed the DAQ drivers on the standalone machine?  I believe you when you say that you made sure the device names match.

 

Your DAQ task setup is fine, from what I can see.  I'm a little confused as to why you're using "NChan NSamp" when you only specify a single channel on which to acquire data -- use "1Chan NSamp" instead.

 

Also, you won't catch any errors that may occur while your loop is iterating.  You may have an error propagating around in there and you won't know it until you press "Stop".  That would, of course, lead to the symptom you're seeing.  You should stop your loop if an error occurs.  Use "Unbundle by name" to obtain the status of the error cluster, then OR that value with your stop button.  The output of the OR function will be wired to the loop's stop terminal.

 

Can you post your actual code instead of a picture?  It's impossible to tell if you have something funny going on with your timing when I can't see the input parameters you're using.

0 Kudos
Message 3 of 5
(2,801 Views)

Hi RobF,

 

Have you managed to get your code up and running yet? Or do you still require further help?  If you have not been successful in getting this code running then I would suggest looking in the National Instruments example finder found by selecting Help > Find examples.  Once this opens if you expand the Hardware Input and Output > DAQmx > Analog Measurements > Voltage you will find many examples that you can uses depending on the type of acquisition you are trying to achieve.  Looking at your code I would suggest that the Cont Acq&Graph Voltage-Int Clk.vi 

 

Let me know your thoughts

 

Best regards

Matt Surridge

National Instruments
0 Kudos
Message 4 of 5
(2,781 Views)

Thanks for the replies guys, I have got the code running now.

0 Kudos
Message 5 of 5
(2,765 Views)