03-27-2015 01:38 AM - edited 03-27-2015 01:45 AM
Hello,
I want to measure 2 channels of Daqmx USB-6211 continously.
If I want to write USB-6211, I make anywhere in the project global variable "Permission for using usb-6211" false and don't measure anything, just write (value of magnetic field for example).
Question: I want to know if the device is connected. If not - no measurement, no writing. How to easily check if device is connected?
Previously I made as in example plus didn't clear task if device is disconnected.
In several boots of Labview it resulted in:
a) the error before Labview booting: "The last time you ran LabVIEW, internal warning 0x30EA5E5C occurred in fpinval.cpp."
b) total freezing at each using of DAQmx Create Task
Each time I must reinstall NI-DAQmx to make its functions work.
Please help.
Thanks, Gregory.
Solved! Go to Solution.
03-27-2015 03:01 AM
03-27-2015 04:13 AM
Thanks! You are magician
One more question - is there any way to check if device is reserved with other program on PC?
03-27-2015 05:27 AM
03-27-2015 10:17 AM
Yup make a task and see if there is an error. If it is a remote device like an ethernet cDAQ you can reserve it, and it will return an error if it is already reserved, but the more universal solution is to try to make a task.
Also the method to finding DAQmx devices mentioned earlier is a good one. But for finding more than just DAQmx devices you can use the System Configuration VIs. Here you can also setup filters for returning devices in the system that match what you want. These are more flexible but for simple things DAQ device query it might be overkill.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-20-2016 05:05 AM
Hi,
I am using NI DAQ6003, and i am connecting my temperature sensor circuit with this to aquire data in my computer.
can you plz upload labview code to check weather DAQ is connected with computer or not, i mean to just check that hardware is connected or not.
i want to use that code for my every hardware which is going to b used for data aquisition...
Thanks in advance!!!
06-20-2016 08:19 AM
06-20-2016 11:37 PM
Hi,
Thanks for ur immediate reply....
can i use that for every hardware...which is not NI hardware...?
i m new for Labview...so may be my Q will seem like stupid...but plz bear with me
can u plz upload the VI file for the same...which i can open in my comuter...and can explore that...
thanks
06-21-2016 02:01 AM - edited 06-21-2016 02:02 AM
Hi pooja,
can i use that for every hardware...which is not NI hardware...?
The last time you asked for DAQmx hardware and the solution is shown above.
Sorry, I don't have this VI anymore - but all you need are two DAQmx property nodes. I guess it's easy to recreate this snippet, even for you!
When you want to check for non-NI hardware you need to know how to detect that hardware. Once you know that you can create a test routine to check for presence of that hardware!
Sorry for being so unspecific, but your question is also very generic…
my Q … but plz … u plz
Please read this!
06-21-2016 03:02 AM
thanks!!!