Input 24VDC USB NI 6009
Hello!
I develop a LabView program that I need to run a code every time + 24VDC signal from a digital sensor is detected. I intend to use my NI USB 6009, but as far as I know, the analog input is limited to + 20V in mode set (10V max in each pin). I was looking for in the data sheet and saw that data acquisition has a +-35V overvoltage protection, and then I thought: I just need to start my code when it comes the signal would be possible to connect my + 24VDC to the analog input of my DAQ withouth damage it?
Thank you!
You can use a voltage divider (resistances, one about 20 k sensor to HAVE and 10 k here forever, if your output of the sensor can handle this load), or in the simplest path one resistance 100 k (that will limit the current entry) and a 4.7V (for a digital input) or 9.6 Z-Diode (to HAVE) to limit the input voltage.
More protection would be an opto-Coupler, the 24V with a player of resistance 10 k out of the hitch and the LED has 10 k (or 4.7 k) for 5V (6009) pullup.
Tags: NI Hardware
Similar Questions
-
Hello
I use several USB 6009 units and with some of them seems to have some lag in differential mode, I with 0 to 1V range. Grounded the two terminals with resistors as shown in the tutorial OR «wiring field and noise review...» "seems to fix the problem for some of them, but for those that I have not the slightest compensation first, the ground gives me offset. Can someone please suggest?
Thank you
DS
DS,
Please submit your question in the Forums of NOR. Are you trying to take a differential measurement? What features are you try to measure it and what channels the drop-resistance work with and what channels do they not work with?
-
analog input on USB-6009 - what potentiometer to use for this test?
Hello, I am referring to this video
http://www.YouTube.com/watch?v=rSNRG_Ddl1s
What is the resistance (ohm) the potentiometer used in the film?
Thank you
Luke
They know the author of video ...
Since it is connected to the output of 5V to the DAQ card, you don't want to use too low of a low value.
A pot more of 500 ohm must work safely. Exact value is not critical for this demonstration. Rear wiper terminal must be connected to the analog input, the other two legs go 5Vout and GND.
-AK2DM
-
measurement of the current usb or 6009
I'm trying to trace the evolution of a CCCV charger while it loads a 60V lithium-ion battery. I know that the charge rate is (1/6) C and the nominal capacity of the battery is 26Ahr resulting in a current of 4.33 has during this constant stage. I have the NI USB-6009 case and that e/s analog devices is estimated at 50 Ma, so I can't connect a thread of the charger directly on the device OR. I was thinking of buying a CT that connects directly to the material NOR and run the (+) lead from charger through the CT, as it charges the battery. What is the best way to go with the flow for a complete charge cycle? What are the other options to draw current developments?
A CurrentTransformer will work with current alternative...
A CT compensated with element Hall (research LEM) can measure AC / DC...
I'd look for a Hall Allegro current sensor... has a galvanic isolation output, and the output is the input range 6009.
-
Input/output USB 6008 test failure
OK I am posting this for the third time, but whenever I go back to the home page of the forum, I'm not able to find my post. If by chance I created duplicates than apologies.
IAM in train to test the USB-6008 case I just got and decided to hang the analog of the analog inputs and see using labview VI.the wiring was done as:
http://i284.Photobucket.com/albums/ll5/bigdawg6/USB%206008%20wiring_zpss2b7hql9.jpg
the problem is that the labview VI did nothing, so I go to NI Max and try to see in test panels. But I get 1.4V constantly my same analog input value when I'm changing my analog value:
http://i284.Photobucket.com/albums/ll5/bigdawg6/AIO%20screenshot_zps9beiimbj.PNG
the analog output works very well since I plugged it to my multimeter and I can see the tension that I see on this Panel of test:
http://i284.Photobucket.com/albums/ll5/bigdawg6/AO0%20screenshot_zpsqpei37bw.PNG
I created an entry/exit of the tasks; screenshots of them are:
http://i284.Photobucket.com/albums/ll5/bigdawg6/task_ao_zpsykmvczew.PNG
http://i284.Photobucket.com/albums/ll5/bigdawg6/task_ai_zpsix5se9yg.PNG
I am quite frustrated with all this since I'm unable to access my actaul draft. I know that 1.4 V value is from the device itself; as in the manual it says 'internal resistance divider can cause the Terminal to float at about 1.4 V when the analog input terminal is configured as a CSR', but the funny thing is that I use it in differential mode so I don't know what to do and any help is appreciated.
BTW, I did a google search and there are other tutorials onlune who seem to do exactly what I do and they seem to work very well; so I don't know what else to do.
Please don't host images on some odd third-party site. Attach them to your message.
I don't understand what you've done. The 6009 can produce only a signal of CSR in order to set up the differential input makes no sense. If you want to measure something different, try a simple battery.
-
Hello
I'm trying to use python (with types) to control my USB-6009. The goal is to write an analog voltage and then read the voltage across an entry with the possibility to change the number of points on average and the number of times that it is repeated (sweeps) averaged analog analog input Board. The problem is that, as we increase the number of times the voltage ramp is repeated (scans), we get a time-out error (call nidaq failed with the error-200284: ' some or all of the requested samples are not yet acquired). This value confuse us because the scans are in a larger loop and the function of data acquisition should be the same if there is 10 scans (work) or 1000 scans (crashes). Any ideas would be greatly appreciated. I have included the code below for reference.
import types
Import numpy
the import of time *.
import of the operator adds
NIDAQ = ctypes.windll.nicaiu # load the DLL
##############################
# Configuration of the typedefs and constants
# to match the values of
# C:\Program NIUninstaller Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h
# Settings for scanning
aoDevice = "Dev2/ao0".
aiDevice = "Dev2/ai0.
NumAvgPts = 10
NumSweeps = 50
NumSpecPts = 100
filename = "12Feb15_CO2 Test_12.txt".
Readrate = 40000.0
Sample rate = 1000
StartVolt = 0.01
FinalVolt = 1.01
voltInc = (FinalVolt - StartVolt) / NumSpecPts
# Typedefs
Int32 = ctypes.c_long
uInt32 ctypes.c_ulong =
uInt64 = ctypes.c_ulonglong
float64 = ctypes.c_double
TaskHandle = uInt32
# constants
DAQmx_Val_Cfg_Default = int32(-1)
DAQmx_Val_Volts = 10348
DAQmx_Val_Rising = 10280
DAQmx_Val_FiniteSamps = 10178
DAQmx_Val_GroupByChannel = 0
##############################
def CHK_ao (err):
«"«a simple routine check error»»»
If err<>
BUF_SIZE = 100
buf = ctypes.create_string_buffer ('\000' * buf_size)
NIDAQ. DAQmxGetErrorString (err, ctypes.byref (buf), buf_size)
raise RuntimeError (' nidaq call failed with error % d: %s'%(err,repr(buf.value))))
If err > 0:
BUF_SIZE = 100
buf = ctypes.create_string_buffer ('\000' * buf_size)
NIDAQ. DAQmxGetErrorString (err, ctypes.byref (buf), buf_size)
raise RuntimeError ('nidaq generated WARNING % d: %s'%(err,repr(buf.value))))
def CHK_ai (err):
«"«a simple routine check error»»»
If err<>
BUF_SIZE = NumAvgPts * 10
buf = ctypes.create_string_buffer ('\000' * buf_size)
NIDAQ. DAQmxGetErrorString (err, ctypes.byref (buf), buf_size)
raise RuntimeError (' nidaq call failed with error % d: %s'%(err,repr(buf.value))))
def Analog_Output():
taskHandle = TaskHandle (0)
(nidaq. DAQmxCreateTask ("", ctypes.byref (taskHandle) "))
(nidaq. DAQmxCreateAOVoltageChan (taskHandle,
aoDevice,
"",
float64 (0).
float64 (5).
DAQmx_Val_Volts,
None))
'''
(nidaq. DAQmxCfgSampClkTiming (taskHandle,"", float64 (Samplerate), ")
DAQmx_Val_Rising, DAQmx_Val_FiniteSamps,
uInt64 (NumAvgPts))); # means that we could turn into this growing streaming and playback
'''
(nidaq. DAQmxStartTask (taskHandle))
(nidaq. DAQmxWriteAnalogScalarF64 (taskHandle, True, float64 (10.0), float64 (CurrentVolt), None))
NIDAQ. DAQmxStopTask (taskHandle)
NIDAQ. DAQmxClearTask (taskHandle)
def Analog_Input():
global average
# initialize some variables
taskHandle = TaskHandle (0)
data = numpy.zeros ((NumAvgPts,), dtype = numpy.float64)
# now on the program
CHK_ai (nidaq. DAQmxCreateTask ("", ctypes.byref (taskHandle)))
CHK_ai (nidaq. DAQmxCreateAIVoltageChan ("taskHandle, aiDevice," ",)
DAQmx_Val_Cfg_Default,
float64(-10.0), float64 (10.0).
DAQmx_Val_Volts, None))
CHK_ai (nidaq. DAQmxCfgSampClkTiming (taskHandle,"", float64 (Readrate), ")
DAQmx_Val_Rising, DAQmx_Val_FiniteSamps,
uInt64 (NumAvgPts)));
CHK_ai (nidaq. DAQmxStartTask (taskHandle))
read = int32()
CHK_ai (nidaq. DAQmxReadAnalogF64 (taskHandle, NumAvgPts, float64 (10.0),)
DAQmx_Val_GroupByChannel, data.ctypes.data,
NumAvgPts, ctypes.byref (read), None))
#print "%d points"%(read.value Acquired).
If taskHandle.value! = 0 :
NIDAQ. DAQmxStopTask (taskHandle)
NIDAQ. DAQmxClearTask (taskHandle)
average = sum (data) data.size
Thank you
Erin
This forum is for questions of LabVIEW .
-
timed equipment digital input with usb port and windows
Hello
I have a data bus 16-bit I read in a computer windows laptop. There is a strobe data to tell me when to read the data I want. The STROBE will remain high for 1 time of speech to 10 Mbps (about 1 microsecond) the flow rate is much lower than the speed of the bus. I looked into the usb-6501 but it does not support hardware timing and mark will not work at this speed. Is there a usb device that will do it? Maybe a pc card? FireWire?
Please don't send me to pages on device selection. I looked and I couldn't find what I think I want to.
Thank you
Charlie
Hi Charlie,
The sampling rate overall max for USB form factor is 1 ms/s or 1.25MS / s for a single channel. The box USB-6251 takes in a 16-bit input. For higher sampling rates, you will need to use a PCI or PXI form factor.
-
Hello
IM using the USB-6009 to recover my data.
After a 6 month break, when I ran my VI
A dialogue box that says "loading lvlib" arose before the opening of the VI.
When I run the VI I get an error '201003' (Image 3) (it was working perfectly well before)-the only change is the upgrade of windows 8.1 for windows 10. (My Labview Interface with adurino seems to work very well)
I looked at the following links for more information-
1. http://www.ni.com/white-paper/52818/en/
2. http://www.ni.com/download/ni-daqmx-15.5.1/6100/en/
I've updated my drivers NI DAQmx, but not the same error.
When I look at the devices and inetrfaces - the status shows "absent" (Image 1) - after updating the driver, "ASRL 10::INSTR LPT1" said as 'away' status (Image 2)
When I test the single device - it removes.
I'm a little confused as to what to do next? I should return to windows 8? Should I reinstall the USB-6009? Am I missing something?
Any help would be great.
Thank you
Thank you attach your VI and providing additional information. Here are some facts that might clarify things for you.
- The only version of LabVIEW which is certified for Windows 10 is LabVIEW 2015. LabVIEW 2012 came out 3 years before 10 Windows, and is not certified to run on this OS.
- If the USB-6009 case works with LabVIEW, when you plug it in, MAX (measurement and Automation Explorer) should "wake up" and offer to set it up for you.
- If you don't have MAX on your desktop, then you certainly won't be able to run your VI. If you do have MAX, you should be able to open, see your USB-6009, open the test for her panels and manually set to acquire data on an analog channel. Try a continuous sampling at 1 KHz, 1000 points - you should see a 'noisy' plot change once per second.
Assuming that my assumption that you try to run your code on a PC running Windows 10 that is correct, I think you have two options:
- Start with a PC running Windows 7 x 64 (think Re-imaging your PC 10 Windows, if necessary), and then reinstall LabVIEW 2012 (32 bit).
- Continue with 10 Windows PC, but install LabVIEW 2015, DAQmx including (from device drivers).
Looking forward to learn more about your system, including (a) if my assumptions are correct, (b) what path you chose to try to get this to work, and (c) what happened.
Bob Schor
-
Hello
I m using or usb-6009 to generate outputs digital. The problem I deal with m, is that my output is going up when I connect my usb to usb-6009 for connector power it...? .. .but when I run my VI all put off going to normal and work correctly.
means that before I run the outputs high VI...
what I have to do to remedy the situation. ???
Hi ok thanks it helps me a lot.
-
Hello
Way to there Tester - you it the United Nations United Nations vi Labview without having the USB-6009 plugged to the computer?
Is - it a Simulator or other?
CDLT.
Hello
Indeed, it is possible to simulate a DAQ card.
I invite to watch the document below which explains step by step how to do:
How to create a NO-DAQmx simulated device
Nice day
-
Measures of true bipolar voltage with USB 6008/6009
The 6008 or 6009 to make true bipolar (positive and negative voltages referenced to GND) measurements? If not, what is the solution to purchase cheaper data this feature?
Thank you.
The question of unipolar vs bipolar vs bipolar Pseudo-aleatoire also was mentioned in this thread. The 6008 6009 use bipolar-only mode and load the setting differential input or CSR. Please note that {unipolar / bipolar / Pseudo-bipolaire} is independent of {differential / CSR / Pseudo-differentiel}.
The 6008/6009 don't use 'Pseudo-bipolaire', which means that each differential input should be positive with respect to the ground.
Best regards
-
How the buffering is the USB-6008/6009 has?
How many readings can be stored internally until the unit overflows. Pointers to info that describes this would be appreciated.
Thank you.
512 bytes. 256 samples. This is specified in the USB-6008 user manual. See Specifications, input analog, AI FIFO (page 24).
You can also always determine this programmatically. Create a task of the desired type and query the size of the buffer in a property DAQmx buffer node.
-
can I use labview 8.01 whit usb device 6009 with vista home
can I use 6009 with labview 8.0 and Windows Vista home OS usb device?
LabVIEW 8.2.1 is the first version that is compatible with Vista. While 8.0 could operate, NOR offer any guarantee.
-
Are there examples using the API C/C++ of NOR-DAQmx in an application that illustrates how to read all 8 analog channels (differential) on a device USB-6215 or similar? I can find examples to read only one channel, but nothing for multiple channels. When I try to read all 8 channels, I get only entry on the first channel. Any help would be appreciated.
Kind regards
Bob
Brandon:
Thanks for the tips. I have it working now.
Kind regards
Bob
-
Input microphone USB is overwhelmed to input device
I have connected a device to USB audio interface Behringer 'U-Phono UF0202' on a computer Toshiba Qosmio X 505. The unit takes analog tape recorders and entries of digital signals to the USB port. The device is automatically identified and drivers not installed - no software from the manufacturer, just Microsoft drivers. Drivers Microsoft treat it like a USB microphone and audio interface Behringer way dominates the entrance. The level parameter must be set to 2 or 3 to prevent the sould indicators of level of maxing out. I have to force another driver for this device that has more performance than a microphone? If so how do you get the driver on the right USB port whenever you plug in the device? Thank you.
I found the plug-and-play standard configuration has continued to overdrive at the entrance. I installed the drivers from Behringer and it works well with the right device selected on the USB port. I'm not using Audacity; I use other software to record.
Thank you.
Maybe you are looking for
-
When Firefox opens, rather than see my home page where everything is normal & readable Firefox opens to a page where everything is indistinguishable and all pixels resemble an abstract painting. I am running Firefox 15.0.1. Firefox crashed and when I
-
HP Jet 7, 8.1 Win Win 10 update and Bluetooth "devices errors."
I did the upgrade from 8.1 to win to win 10. So far, I've noticed all my devices Bluetooth "devices errors." I have deleated all BT devices and tried to charge the BT device to my soundblaster roar 2 and a simple generic keyboard and I got the same
-
where in my opinion, the options range from the 4.0
I downloaded 4.0 and can't find the tools that were located in top left of the homepage as the view, history, bookmarks and options where they went. or can I just pick up my 3.6
-
I have no sound when viewing Youtube on IE or Firefox. I think he disappeared after a windows xp updated (before the deadline of Microsoft). I still get beeps of the Thinkpad X 31, just no sound with Youtube or XP on the departure for the example. Al
-
Need help with the settings of the firewall for Firefox
My wireless connection is fine, but all of a sudden my mozilla firefox browser cannot connect to Web sites. I can connect using another browser. Looks like I need to change the firewall settings, but I don't know how. How can I distribute my browser