USB interface pressure sensors

 Hello all!
I've recently acquired a DigiTacts pressure array sensor like those depicted in the following link:
http://www.pressureprofile.com/products-digitacts
Has anyone already worked with these sensors using LabView?
 The interface is USB.  Will it be possible through LabView to communicate and acquire information from these sensors?
They come with an API...
Thanks in advance!
Best regards!

I forgot to say but the API was built with C++ and comes with a DLL file.
An example code could be as follows:
#include "d500_include.h"
#include <windows.h>
#include <vector>
#include <iostream>
#include <fstream>
namespace
byte const averageLength = 0x03;
byte const scanCount = 0x30;
int const nFramesToRead = 50;
char const * outputFileName = "data.txt";
int main(int argc, char* argv[])
std::cout << "Configuring sensor...\n";
configureD500 ( averageLength, 0x01, scanCount);
Sleep( 2000 ); // wait for configuration to complete
setDAQEnabled( true );
// The following section automatically finds the attached sensors and
// allocates memory accordingly. This can be done manually if preferred.
Sleep( 500 ); // wait for sensor data to start arriving.
std::vector<int> config(17);
int numDevices;
getConfig( &config[0], numDevices );
//Calculate the packet length
int packetLength = 0;
for( int x = 0; x < 16 ; ++x)
packetLength += config[x];
int nSensors = packetLength;
++packetLength; //Add an element for the time stamp.
std::cout << nSensors << " sensors are connected.\n";
// End of optional automatic setup routine.
std::vector<float> dataArray(packetLength, 0);
std::vector< std::vector<float> > buffer;
int framesReceived(0);
//Main loop
std::cout << "Reading " << nFramesToRead << " frames of data:\n";
for (int ii = 0; ii < nFramesToRead; ++ii)
getData( &dataArray[0], framesReceived, 1); //Request 1 frame
if( 0 != framesReceived) // We have new data
std::cout << (ii < (nFramesToRead - 1) ? "." : ".\n");
buffer.push_back(dataArray);
Sleep(50); // Pause so we can see the loop run
// Write data to file
std::cout << "Writing data to " << outputFileName << "\n";
std:fstream out(outputFileName);
out << "Time\tSensor Data\n";
for (int i = 0, n = buffer.size(); i < n; ++i)
for (int j = 0, m = buffer[i].size(); j < m; ++j)
out << buffer[i][j] << ((j == m-1) ? '\n' : '\t');
stopScanning( SEN_I2C_BROADCAST ); //Stop the sensors
return 0;
How could I do something similar using LabView?
How could I use the DLL file in order to do this?
Any help would be greatly appreciated.
 Thanks in advance.
Best regards.

Similar Messages

  • Pressure sensor interface

    Hi,
    I am trying to building an application to test pressure leak on my instrument. I am using (30) MPXH6400A pressure sensors interfaced to NI USB-6218 DAQ card. I looked at the signal level compatability for the outputs from pressure sensor and input to DAQ and everything looks ok. I am a newbie in using Labview and I am trying to build a .exe for manufacturing to test my instrument on the line for any pressure leak. I figured there will be some starting point which I could use to build my application. The way that I envisioned the program would work: Interface each output from the sensor to a seperate A2D channel in DAQ and have a threshold in the software. If it passes the threshold light an LED with green showing the instrument has passed pressure leak test or if not light the led "RED". I would really appreciate if I could get some pointers to where I could start.
    Thanks

    Help\Find Examples...\Hardware Input and Output\DAQmx\Analog Measurements\Voltage : will lead you to lots of examples
    Pick this one: "Cont Acq&Graph Voltage-Int Clk.vi" as a start
    On your computer, you should find it here C:\Program Files\National Instruments\LabVIEW 8.5\examples\DAQmx\Analog In\Measure Voltage.llb\Cont Acq&Graph Voltage-Int Clk.vi
    Like Dennis said enter "Dev1/ai0:29" for 30 consecutive channels on a Device named "Dev1".
    If you named your USB DAQ something else, use this instead of "Dev1" of course.
    Process the "Data" output from the "DAQmxRead" vi as requested to turn your 30 led's red or green.
    Attachment SNAG-002.jpg is just a very rough idea on what you could do.
    Average 1 second data and compare it with some threshold levels.
    Message Edited by Alain S on 01-03-2010 03:13 PM
    Attachments:
    SNAG-001.jpg ‏292 KB
    SNAG-002.jpg ‏45 KB

  • Running a system which conclude "Stepper motor + Pressure sensors"

    Hello
    I need some help as a beginner. Would u please guide me?
    Actually my project is about running a system with LabVIEW which is contain a stepper motor (with different speeds in clockwise and unit clockwise) a pressure sensor, a switch for calibration the sensor and finally reporting the output as a graph with shows the distance that motor moves a barrier and changes of pressure during the movements of barrier.
    Right now, I have stuck in ordering the hardware parts for connecting the PC to the system. I don't know exactly what do I need to handle the hole system. Would you please help me? I don't know from were and how should I start?
    Thanks a lot

    As GerdW mentioned in the other post you might want to speak with a NI applications engineer.  If this is a school project of some type and/or you just want to spec everything yourself then you certainly can.  Your first step is to define all the physical parameters of your devices.  So you need to know what kind of stepper motors you need based on the required angular resolution, torque, etc.  What kind of pressure gauge will you use?  What type of output will it provide you (simple voltage, pulse train, full USB interface)???  What kind of switch will you use.  Can it be controlled by low-current TTL or will you need a driver or relay?
    Make a list of everything you will need for your application:  motors, sensors, switches, etc.  Then determine how to interface to them.  THEN you can start looking through your hardware options and pick the best choices based on your needs.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • IPS 4240 USB Interfaces

    Hello All,
    I am using a 4240 IPS sensor - I have noticed that there are 2 USB interfaces on the unit and I have a couple questions about their use that I was hoping someone could answer for me (this is the first time I am using a Cisco IPS product):
    1.  Can the USB ports be used to load a license key (rather than using an FTP or SCP server)?
    2.  How can I disable the USB ports to prevent someone from loading something malicious or unauthorized into the sensor?
    Thanks for your time!

    monitor session 1 source vlan 10 , 20 , 30, 40
    monitor session 1 destination interface Gi0/1
    The above commands will span the traffic (tx/rx) traffic in ALL the vlans 10,20,30,40 , but this will be limited to traffic only the switch on which this is configured.
    For getting traffic in the same vlans but on other switches, you will have to configure RSPAN.
    Refer to this link for more details.
    http://www.cisco.com/en/US/products/hw/switches/ps708/products_tech_note09186a008015c612.shtml

  • SCXI 1520 for potentiome​ter type pressure sensor

    I am usig 1520 for bridge type pressure sensor data acquisition.
    I have a requirement for potentiometer type pressure sensors. The sensor is a potentiometer that needs 5V exciation.
      +---------------- Exc+
      |
      |
    +--+
    |   |
    |   |
    |   |<-------------- O/p+
    |   |
    |   |
    +-+
     |
     |
     +---------------- Exc-
    I was wondering if I could use 1520 for interfacing with such sensors?
    I am hoping I can short P- and S- lines and connect to Exc-. P+ would be Exc+ and S+ would be O/p+.
    The resistance between Exc+ & Exc- is of the order of 1-5 kOhm. So the current drawn from the excitation supply is of no concern for the 1520, I believe.
    Can I do this with the 1520?

    Dear Cas,
    Thanks for your enquiry. You have obviously done a great deal of research into this matter already. I am afraid that it is unlikely that you will be able to use a single SCXI module to carry out all the functions you have listed. As accelerometers require such specialised conditioning, it will require a dedicated module - as you already mentioned, something like the 1530 (4 channel accelerometer input module) would be ideal.
    However, you have a number of different options for the pressure, voltage and temperature measurements.
    For example, you could purchase a 1520 mudule for your pressure measurements, and then use a general purpose 1102B for the voltage and temperature (you would require the 1303 isothermal terminal block to condition the thermocouple readings... and bypass the CJC technology for the voltage readings).
    Or, perhaps you could use the 1102 thermocouple module for your temperature readings, and then use a 1102B to take the voltage and pressure readings. Obviously this would involve making your own bridge configuration for the pressure sensor, but that should be fairly easy.
    Before you make any final decisions, I would recommend that you call your local branch of NI and speak with a sales representative. Perhaps, a member of the field sales staff could actually come to see you to discuss the matter face to face.
    lastly, it sounds like you have a relatively high channel count for some of your readings, which is why you have decided to use the SCXI platform. I was just wondering if you had considered compact DAQ (cDAQ), which combines DAQ hardware with signal conditioning. Higher spec, ease of use, lower channel count. Swings and roundabouts I guess.
    I hope this has been of some use to you.
    Best wishes,
    Rich R
    Applications Engineer
    National Instruments UK & Ireland

  • How to save the dynamic data from a pressure sensor

    Hello Everyone,
    We have a FPGA board NI cRIO-9073, a temperature module NI 9217 and a pressure module NI 9203. Right now we have problem with saving the data from pressure sensor.  I succeed in getting and saving the data from the temperature sensor. Then I just simply modify the FPGA VI and host VI of the temperature function block which are shown in the attachment files.But I get an error saying I cannot connect two different data types.
    Could anyone here give me a help on this?
    BTW: we are using a 2 wired pressure sensor with 4~20mA. The brown one is +Vcc and the white one is GND.I connect the white one with the COM of NI 9203 and the brown one is connected to AI7. DidI make a right connection?
    Thx for any help from anyone!
    Attachments:
    pre_tem.JPG ‏36 KB
    pre.jpg ‏35 KB

    Hi, I get this error message:
    Write to textfile: function contains an unrelated or improper connection.You have combined two different types of connections among each other.
    At least one entrance of the function required for their operation, is open or not properly connected, the connection scheme is illustrated in the context help.
    They have combined two different types of connections with each other. This connection is not possible because the data types (such as "numeric", "String", "Arrary" or "clusters do not match"). Open to see the contextual help at what must have a data type for the connection. The type of data source (fixed) costs. The type of data is dynamic data.

  • Software needed for the USB device, "USB Interface Controller TEST2.0"

    My mother recently acquired a digital camera. She acquired it from a second-hand store, which did not include an interface cable or software. The manual (and the USB port on the camera) indicates that a male-male USB cable is necessary for photos to be copied to the hard drive.
    I was not successful in locating such a cable at any local electronics store (I assume such a cable is now out-of-date). I purchased one from a seller on eBay. The brand is "e circuit electronics".
    Upon powering up the camera with the cable connected to it and the computer, the following message appeared:
    "Software needed for the USB device "USB Interface Controller TEST2.0" is not available. Would you like to look for the software on the Internet?"
    I clicked "Yes". After an approximate two-minute wait, another message appeared stating:
    "Software Update is not able to connect to the Internet. Please check your configuration and try again."
    I deleted, "Software Update Preferences" in the Preferences folder inside the System Folder, without solving the problem. How do I solve the issue of allowing Software Update to connect to the Internet?

    Thank you for your continued assistance, BDAqua. Unfortunately, the driver you linked to does not seem to be compatible with the camera. It is a driver for the V20 model, whereas my model would correspond to be a V2755, as referenced from a list of other Vivicam models when during a search at the Open Drivers web site.
    From the system requirement about the card reader you gave me, it will not work, as this system is running 9.1. I am hesistant to upgrade this computer to 9.2, as I have experienced system unstability with that version, with even the 9.2.2 update applied.
    In the mean time, I have e-mailed Vivitar regarding this issue, but have as of yet received a reply.
    I am not certain as to other specifics to give you, in order to solve the Software Update problem. Please elaborate.
    Yes eww, the computer in question is able to fully connect to the Internet for all that I need. I am fully aware of the difference between a computer connecting to the Internet, and a computer connecting to a digital camera. I have 15 years of Macintosh experience.

  • How do I add a USB interface back to my network preferences

    Help, I mistakenly deleted the usb interface from the list of available interfaces from my network preferences. How do I add it back?

    Hello,
    I found a website that you can download mail for. I dont know if you can trust the website, but this is just to let you know that it is out there. http://en.softonic.com/s/mail:mac
    Also, if you do not want to download that, you can alway have a safari tab open with you email. That also works.

  • IPhone 5 not working properly with  USB interface in Honda Accord.

    The iPhone 5 seems not to work properly with the USB interface in my 2012 Honda Accord. It says I have 500  songs when I only have 430, it skips over songs and freezes during play.

    I actually have a different problem. I am unable to play Pandora through my USB connection in my 2012 Honda Accord SE with my iPhone 5. I can't get map directions through my speakers or any sounds at all. Any idea if a fix will be available?

  • How can I configure NI PCI 6221 and DAQ SCB-68 for pressure sensors?

    Hello
    everybody,
    I am using the measuring board (NI PCI 6221) and DAQ
    SCB-68 for the data acquisition.
    With the DAQ-Assistant I created AI for the voltage of
    pressure sensors. In a big indicator panel from this DAQ-Assistant I see the
    voltage for both sensors in the correct size. But if I set sensors in the
    blockdiagramm to control the signals for sensor one I get a wrong voltage size
    and for sensor 2 nothing.
    How can I configure this data acquisition equipment to
    get the correct signals?
    Thanks a lot for your help.

    I do not know the type of sensor you are using. But pressure transducers may have a very low output voltage(in the mVolt range). They also need an excitation voltage. Here is an introduction. http://focus.ti.com.cn/cn/lit/an/sloa034/sloa034.pdfThen working with pressure sensors I always use 3 stages in the circuit.
    1 Instrumentation Amplifier as a preamp
    2 filterstage
    3 Final amp and output buffer
    (you may combine stage 2 and 3)
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Setting output to onboard and input to USB interface ?

    Hi all,
    Does somebody now a way to "split" the input and output in logic?
    What I want is using my Alesis USB interface for the incoming signals and the onboard (headphone) output for the the master output. The reason is, when recording guitars through ie Amplitube, the Alesis interface is giving both the clean guitar input signal and the processed signal form Logic back on the output. There's no way to stop the clean input signal going to the output... IF there's a way to set the output to onboard, I only monitor the Logic output.
    In Garageband you can easily set both the input and output in Preferences, but Logic only gives me the option to select the soundcard for both in and output.
    I hope someone can help me out. Thanks a lot
    Kind regards,
    Martijn

    You may be able to configure your interface to do this...
    But if not, you can create an aggregate device (in Audio MIDI setup - may be in Applications>Utilities).

  • Audio problems with an USB interface

    Hi everyone, this is my first post and glad to finally do it.
    I am so pleased with arch linux, it's just simply amazing. I have learnt a lot following the wikis, it's pretty simple and effective.
    I managed to install and configure ssh server, samba server (surprisingly easy), usb samsung laser printer, nvidia drivers, KDE desktop (so fast in arch), fonts, cpu scaling and I'm so happy with the results and perfomance.
    The only problem I ran into is about audio, I think the wiki on audio is pretty  incomplete (don't get me wrong I enjoy your work).
    The problem is with an USB interface line 6 toneport gx (http://line6.com/toneportgx/), I know the device is meant to be an usb guitar interface but since I don't longer play guitar I use it as soundcard. As complementary information it works with no problem on Ubuntu 10.04 (which is the distro I came from).
    The interface works and it's unmuted since I dmix does not work when I try to play sounds from different sources I had to install pulseaudio. Pulseaudio works partially, the sound was improved and finally I am able to play different sources. The big problem is when high cpu load ocurrs the the audio dies and does not come back even when the cpu loads decrease.
    Any help is appreciated.
    Thanks.

    You may want to debug pulseaudio (check their wiki to see how, involves running pulseaudio in verbose mode) to see what happens.

  • Contructing an RS-232 interface using USB interfaces Digital IO

    Hi,
    I've got a NI USB interfaces to work with, which has plenty of digital IO available (USB 6259)
    I need to communicate via RS-232 with a few instruments, which I've already done using USB to RS-232 devices.
    However, I would like to do everything on a single NI USB DAQ interface. Is it possible to use a few digital lines from the USB 6259 to create an RS-232? It seems that this would be relatively straightforward, but I haven't heard of this being done.

    Not recommended.  Voltage levels are different, no FIFO of communication, no UART that does bit sampling and error checking, no clock for data, a lot harder than you think it would be.
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

  • Usb interface not on aggregate structure list

    when i pull up my aggregate device box the structure list only has only built in components listed what do i do to get my usb interface on there?

    The problem lies with Tascam and their inability to write stable drivers for OS X...  and isn't anything to do with Logic Pro ..
    As you know, you are not the only person to have had this issue and the reality is, while the 1641 might work fine with  Windows, when it comes to OS X Macs.. it's an entirely different story... depending on the version of OS XS you are running.
    The one tip I have read, that seemed to fix it for most people.. (Though not all) is as follows;
    (Thanks to Paulypaulpaul for this)
    -uninstall your tascam driver 2.10
    -restart
    -install driver 1.03
    -restart
    -plug in your tascam
    -goto where you download your drivers (http://tascam.com/product/us-1641/downloads/), scroll down to the bottom where it says firmware, Download the firmware 1.02 (3rd from top under firmware), install it. your control panal should now read 1.03 for your drivers and 1.02 for your firmware.
    -install drivers 2.10
    -restart
    Follow each of the steps exactly.. including all restarts when indicated..
    ...and good luck...

  • Recommendations for Electric Guitar to USB interface?

    I'm interested in purchasing a guitar-to-USB interface for my MacBook Pro. This Spring '11 model does not have an audio input jack, so a 1/4" to 1/8" converter is not an option. Can anyone recommend a relatively inexpensive interface that works well with the amps offered in GarageBand (v.6.0.4)? Thanks!

    isteveus wrote:
    Csound1 wrote:
    isteveus wrote:
    All Macbook Pros have audio input. It probably shares the same jack as the headphone.
    Both the gain and the impedance are wrong for an electric guitar pickup, not a good idea.
    Why not a good idea. It's cheep, it works and thousands of people do this every day.
    Of course a audio interface is the way to go but if you just want to mess around with with garageband or do the guitar lessons there is no problem using the audio input.
    Some single coil pickups may not have enough gain to get a good signal.
    Read up on Ohms law

Maybe you are looking for

  • My droid eris used to be able to show up as a disk image on my computer, but now it can't?

    Moved for greater exposure

  • File Adapter not processing Files which has COMMA in it

    Hi Experts, I am working on Project in SOA 11.1.1.6. I am trying to process a file which has comma in it. for eg - XXXXXXX-XX_XX_XXX11,99.pdf I am picking the file using file adapter from SOURCE directory and using another file adapter to WRITE to de

  • Problem with using Outputstream object

    hello I am getting images from a database as byte. But when I try to display them in jsf environment, I get exception. Here is my code about the problem : while (rs.next()) {      imgBytes = rs.getBytes(1); OutputStream out=null; out.write(imgBytes);

  • ORA-19870: error reading backup piece

    Hi , The RMAN Image backup failes with the error channel ORA_DISK_1: reading from backup piece /backups/RMAN/mkkl1143_1_1 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS

  • XML document

    Please, could somebody help me, I`m new to XML and I'm a little lost here. I have to create dinamicaly a XML document with the header:<?xml version="1.0"?> and a line <info>data<info/> where data is a array of bytes.How can I create this document and