Existing communication usb - hid in labview c code using

Hello

I want to write a simple temperature using labview recorder and an external hardware that communicates via usb - hid. The external hardware uses an ATMEL 90USB162 µC and probes DS18B20.

Link to the material:

http://www.diamex.de/dxshop/USB-temperatur-sensor-Tester-fuer-DS18B20

The source of a simple command line tool is available (see attachment), which reads the value of the temperature of the connected sensors.

Is it possible to include this c code in the labview application to simplify the communication?

Thank you very much and best regards,

Michael

Hello

I stopped using the existing code and replace by http://ahidlib.com/index.php/ahid-dll-and-labview. This works very well for me.

Best regards

Michael

Tags: NI Software

Similar Questions

  • examples of LabVIEW ARM code

    Hello

    I am new to Labview ARM I used an ek-lm3s8962 Keil Committee.

    I would like to know if there are a few tutorials and code examples on communications with devices:

    How to write you SD card?

    How to use CAN, SPI, I2C and UART?

    How to use the OLED?

    Is it possible to use the FIFO memory with labview ARM and how?

    Is it possible to target the daughterboard with Labview, this Board includes a processor LM3S2110?

    How communicate between a time critical Vi which runs on the ARM processor and not time critical Vi host that runs on the PC?

    Thank you very much.

    Your Neil

    Hi Neil,

    How to write you SD card?

    The SD card slot only is not currently supported in point 1.1 of the ARM.  The next version of the ARM should support this device.  Once this is the case, you can access the SD card using the primitives of e/s files.

    How to use CAN, SPI, I2C and UART?

    I found an example of UART in the Finder for example OR in Modules and Toolkits > ARM > Luminary Micro > protocol drivers > Comm.lvproj series.  I will attach also a project that uses CAN communicate with the LMS2110.  As for I2C/SPI, I suggest experimenting with the screws for this (located on the ARM > palette SPI and I2C) and consultation of the other threads on the use of these screws or create another thread.

    How to use the OLED?

    There is an example of this in the Finder for example OR in Modules and Toolkits > ARM > Luminary Micro > Device Drivers > OLED.lvproj.

    Is it possible to use the FIFO memory with labview ARM and how?

    FIFO on ARM is very similar to the desktop.  These screws are located in the data Communication > synchronization > FIFO pallet in real time.  There are several examples on how to use these FIFO on ni.com.

    Is it possible to target the daughterboard with Labview, this Board includes a processor LM3S2110?

    You can provide this Commission with CAN, as shown in the attached draft.

    How communicate between a time critical Vi which runs on the ARM processor and not time critical Vi host that runs on the PC?

    See the related example. RT FIFO If you use the FIFO screws I mentioned above, you should be able to do something similar.  I suspect that the FIFO is used to communicate between a critical time timed loop and while loop a criticism.  The while loop would then use TCP/series (or even shared network variables) to communicate to the host.

    Good luck

  • Mcc usb 1208FS for labview 10.0 connection problems

    I have version 10.0 of Labview installed on windows XP computer. I want to connect MCC USB 1208FS for Labview. Not able to see the device MCC in device of measurement and Automation Explorer interface. It appears? Please let me know the steps to access the device of the MCC in Labview.

    I can see the MCC card detected in the software InstalCal of MCC supported. I installed the latest version of the CMC the CMC site software.

    As far as I know, you will not be able to see physical computer as in MAX.

    From the file of help from MAX: "Measurement & Automation explore (MAX) allows to access your National
    Instruments of devices and systems. "that is material MCC is not a feature of National Instruments.

    Why not stick with the InstaCal software and the MCC screws provided?

    Ian

  • Get incremental counter/sound to work along side with action with usb-6008 with labview tia sal22

    Get incremental counter/sound to work along the coast with usb-6008 with labview tia sal22

    Hi all

    I can get this vi to work if they are distinct from the vi but I can't join them together

    Example of my error:

    If buffers are set to 0 the freq counter increment works, but no sound
    If the buffers are set to 1 the audio works fine but is not increment the Freq counter
    If the buffers are attached to more 1 clicks and pops are coming

    That's what I'm doing:
    (1) have the frequency of increment of my internal sound card to a certain level as .01hz a second until he gets to 20 000 hz

    (2) use my device usb-6008 daq, which is connected to the same machine to measure the voltage at the same time. (I am in a position very low voltages between 1-5volts)

    (3) output to a worksheet text file which will show you:

    time in seconds, frequency, voltage
    0,400.01,2

    1,400.02,2.5

    2,400.03,1

    I'm a bit confused about how connect the increment and the audio during the measurements with the usb-6008 housing on the same machine
    at the same time and in the same VI.

    Anyone have any ideas?  I'm using labview 8.5
    TIA sal22

    Ha ha you have been deceived by a dynamic thread. Insert a convert from Dynamic Data Express VI (Palette to own: Signal handling screw Express) between the daq read and build the array function. Then it won't work. Now the value in the dynamic data is only converted to a numeric value

  • The specified service does not exist as an installed service. (Error code: 0 x 80070424)

    I tried to turn on my Windows Firewall because they all stopped working for some reason any

    & When I tried turning on setting recommended my tittes name appears. PLEAS HELP

    The specified service does not exist as an installed service. (Error Code: 0 x 80070424)

    I tried to turn on my Windows Firewall because they all stopped working for some reason any

    & When I tried turning on setting recommended my tittes name appears. PLEAS HELP

    The specified service does not exist as an installed service. (Error Code: 0 x 80070424)

    The name of your what appears?

    Error 0 x 80070424   See: http://support.microsoft.com/kb/968002

  • With the help of USB-6009 with LabView 8.0

    I try to use a USB-6009 with LabView 8.0 box.  I DAQmx 8.8 (that came with the unit) installed and verified that the 6009 works correctly through MAX I also read on this site that the 6009 is compatible with LabView 7 or more.  However, I am unable to get LabView to recognize the device.  Using LabView, to use a DAQ hardware I have to select "Input" in the palette 'Functions'  But there is no range "Input".  Actually I can't find the DAQ Assistant Express VI anywhere.

    Do I need to use a different version of the DAQmx?  If so, which and where can I find it?

    Thank you.

    LabVIEW 8.0 is not supported with DAQmx 8.8. I think that the last version with support for 8.0 is DAQmx 8.6.1. You can uninstall 8.8 and install 8.6.1. You should really consider upgrading your version of LabVIEW. NOR has decided to limit support for 7.1 8.0 just now. The latest version of DAQmx manages to only 8.2.x and higher.

  • Cannot print. Reference Dell 944 communication usb port is not available. error check your firewall settings to ensure the printer communication is not blocked.

    Original title: unable to print. Reference Dell 944 communication usb port is not available.

    Message says 'check your firewall settings to ensure the printer communication is not blocked. Printer has worked faithfully until the problems started with the XP Home operating system. To cut a long story short ram upgraded to 2 GB, all unnecessary programs identified and technician Microsoft contacted to solve problems.  I was informed of problems caused by 3rd software party conflicts. Kaspersky was apparently the culpit. Dell Inspiron 32 now much faster but the printer will not work little matter what I do. I tried to reload with drivers & utility CD, drivers uninstalled & reinstalled on the site of all nothing is? Can someone help?

    DavidNicholsonXN,

    How to download and install drivers in the correct order

    also try to read...

    The owners of all-in-one printer Dell 944 thread (W7)

    Let the printer after Kaspersky

    Rick

  • Headset (headphones and microphone) USB - this device cannot start - Code 10

    Hello

    I just bought a USB headset today and tried to use it.  I had a driver error message when first plugged in.  The help system has proved to be unnecessary.

    After doing some research on this forum, I checked the Device Manager and found that the indicatses of properties of USB audio device "this device cannot start. (Code 10) ".  Forum entries suggests that a lot of people have similar problems.

    Mine is a new installation of 64-bit Windows 7 on a new hard drive, but on older hardware of the PC - Asus A8N SLI Premium.  Someone at - it had suggestions as to the resolution of the problem.  Note that a normal headset worked fine yesterday (but I broke it) plugged into the jack Sockets, but I wanted to use a USB headset to avoid having to continue to go to the back of the computer to replace my system 2.1 speakers.

    Thank you

    Hello

    The Code 10 error code is generated when the Device Manager has not enough information or error that spread upwards by device drivers is not recognized by Device Manager. In addition, this error may occur if one of the pilots who needs the unit does not start. If multiple drivers are used by a particular device, it can be difficult to determine which failed.

    I suggest you follow the steps in the link below and check if it can help solve your problem.

    http://support.Microsoft.com/kb/943104

    Please reply back and let us know the status of the issue.

    Azam - Microsoft technical support.

  • Why LabVIEW example projects using Global Variables?

    I'm puzzled.  I've been pretty good programmers LabVIEW talks (including some who work for the OR) and came away with the impression that Global Variables should, as a general rule, be avoided, with functional Global Variables (alias VI Globals) generally preferred for "local memory".

    I have studied some of the example distributed with LabVIEW, 2012 and 2013, in particular the proposed acquisition in real time and am struck by the use of Global Variables, where I'd be inclined to use instead a FGV.  For examples, to stop all the loops on the RT target, the overall "All the RT loop Stop" is defined; 'Constants' of configuration (such as timeouts, Streme network names, the names of the journal folder) are kept as Globals; Streme network endpoints are stored in Globals.

    [Note - there is a weird spelling of the second word of the network Streme, above - when I tried to post with the correct spelling, I got an error message saying this word is 'not allowed in this community".]  I apologize for the offense, but I must confess that I do not understand what the problem with the help of the spelling of this word...]

    Why use Globals in these cases, rather than write a bunch of VIGs to hold these data?  Note that almost all these Globals are 'Read' essentially (written once when a resource is acquired, for example) or "Read Only" (treated as if they were a constant).  Indeed, read-only variables can be written as a Subvi with only an output terminal, acting as a (visible, due to the icon) constant.

    I can see advantages to this approach.  On the one hand, VIGs can have error bounds who run the data flow (I just spotted a bug "data flow" in code, I am developing that is based on this model, to read configuration data to an XML file in a world and in the same VI, Global wiring to a "use - me" terminal, but with no guarantee that I'll read the overall after I write it).

    It is, I suppose, a matter of 'speed' - perhaps Global Variables are 'faster' than VIGs (especially if the VIG 'sits' on an error line).  My thought, however, is that this difference is likely to be trivial, especially as these VIGs (or Globals) tend to become "occasional" calls (with the exception of the indicator 'all the loop Stop' which is called once per line).

    Are there other arguments or considerations that make a Variable global to a better choice than a VIG?  Is there a reason that LabVIEW developers put in these start-up of projects LabVIEW?

    BS

    I have to ask, how do you use functional Global Variables?  Like just a Get and Set?  If so, you can use a global variable.

    Yes, globals are faster and use much less overhead.  At the summits of CLA in recent years, we talked about using globals.  The most common use is for Write-Once-Read Many and writing-never-Read Many with configuration data.  It's a good idea to use globals with the constants that can change on you.  It turns out that the world will have the same performance as a constant in this case.  This is done so that you don't have 1 place to edit the 'constant '.

    The rule on "Globals are evil" actually goes back several years when NEITHER had the huge "people of the country are bad" vendata.  But NEITHER explains well how to do things properly.  So I found people, instead of using local variables, using the value property node.  It's even worse because the property causes thread swaps and kills your performance.  It wasn't until I shouted to people to use wires and shift registers I have seen improvements in the way in which people wrote their code.  So people are always riffling in the use of globals and decided to use FGVs with the EEG and fixed rather cases.  But this does not solve the problem of the conditions of race with critical data and you cause an additional burden.

    So from my experience, I use globals all the time for configuration data.  Yes, you must be careful about the race conditions.  But as long as you understand that it is a common and useful practice.

    I would not use a global variable for data that are constantly changing (use registers to offset or Action motor) and/or processes that have critical sections of code (use a motor of Action).

    NOTE: I use the definition of Mercer to FGV (a Get/Set only) and motor Action (many cases which specifically affect the data).

  • Why the continuous measurement and Logging in LabVIEW 2012 Project uses strings instead of Enums and orders from the queue?

    Hello!

    I noticed that the continuous measurement and a project in LabVIEW 2012 Logging using chains instead of enums and orders from the queue. I wonder if there is a good reason for it?

    Kind regards

    Anguel

    First, string vs enum debate is probably the version of LabVIEW vim vs emacs. There are good arguments on both sides, and I doubt that there is always a "winner".

    A brief summary of our reasoning for the current state of the project examples:

    1. We used enums for the state machine because it is self-contained. A state machine will never tell himself to enter a State, he does not know. Knowing (as the programmer) all possible States with the help of an enum allows you to enlist the compiler in order to help us avoid mistakes to change the time (because you can't quite out an enum and LabVIEW can be said if you are not covering all cases to a structure of the case, etc..).

      Enums provide greater protection and rigidity by ensuring all withdrew at the time of publishing. This is often the 'default' recommendation that we do.

    2. We used strings for messages in queue manager because the producer of message and the message handler could be independent processes that are reused or traded. Channels avoid the need for the compiler to be able to connect the orders and push this responsibility to the programmer. This allows you to develop some sub-components independently as long as you agree to a series of channel commands that you can manage - you need not to share a file 'messages.ctl' or 'states.ctl '. It is conceivable a loop of message management a message it does not, how you can decide to either silently ignore it or will trigger an error (as we do in the model). The strings make it also easier if you want to swap the queues of LabVIEW outside by a TCP implementation for network vacilitate or intra-Processuse communication where the other end may or may not be written in LabVIEW.

      Channels to provide more flexibility (that is, you can add new commands to an existing via plugins system, you can pass parameters as part of the string, etc.) at the expense of pushing her potential errors at run time and to put more responsibility on the programmer.

    3. The actor's gifts frame a 3rd option - using classes such as messages. For me, it combines many of the advantages of these two enumerations (strictly typed, change errors) and strings (flexible and scalable), but with the disadvantage of being somewhat less transparent (you understand OO, be comfortable to navigate through a multitude of screws, legacy of understanding, etc.).

    I don't know there are other reasons, others to the breast OR had or seen as we validated models and examples of projects in-house, but here are my reasons. We know that we can not design for each situation there - our goal is to get useful models against new users to make them aware of what well thought LabVIEW programs are similar to experienced users know their applications better and I hope they do not hesitate to change what we provide or create their own designs, when they feel it's necessary. (On a side note, please share what you come up with - a community of experts sharing models would be really useful to us all LabVIEW users).

    Best regards

    Simon

  • you want to send data using labVIEW to arduino using write visa and the process and to take action using arduino. A

    I want to send data using labVIEW to arduino using write visa and the process and to take action using arduino. After that, I want to arduino to send out necessary via a serial port to labVIEW which should be read using visa read and store in a chain. While I am able to write or read both individually, I can't do it consecutively. I used advanced read and write vi for checking my code, but nothing is helping. The wrong bed 'time delay before execution. " Please let me know where I can go wrong. Also is it possible to write code for hx711 using labVIEW

    1. you need not "\n" on your orders println().  This command adds an end of line character already in the message.

    2. you get the error because you have a loop around your reading.  After the first reading (well technically, the second because of you add an extra line end character), there is nothing left in the port.  As a result, you will get the timeout.

    3. you should really consider using a Structure of the event.  This way you just don't write and read when you press the Write button and you can also use the structure of the event to make the loop to stop.  I also go up to close the port inside the stop-> value Change event.

  • I got a notification saying "password requirement: you must change your secret code in 56 minutes"I panicked and entered my access code using the little box? ". I ' t mess up?

    I got a notification saying "password requirement: you must change your secret code in 56 minutes"I panicked and entered my access code using the little box? ". I ' t mess up?

    Yes. You may be victim of a scam, except if you are connected to your business with this requirement.

    Change your password immediately below:

    https://appleid.apple.com.

  • I have 2 imacs and a laptop computer and you want to back up all three wireless via time capsule on my existing wifi network. If we can also use the time capsule as my wifi and replace my uverse wifi, that would be great. possible?

    I have 2 imacs and a laptop computer and you want to back up all three wireless via time capsule on my existing wifi network. If we can also use the time capsule as my wifi and replace my uverse wifi, that would be great. possible?

    If you want to make sure that you will be able to get the Apple support in case of problems or questions with your backups, you must use the wireless Time Capsule to back up your Mac.

    As long as the time Capsule provides a wireless signal, you can decide who to your 'main' network, then use it wireless Uverse for "guest", or children. If you do not need the Uverse router/modem wireless at all, it is possible to turn off wireless on the device and make it work only as a support modem/router...with Uverse wired.

    At this point, you can start thinking about how you want to configure things and get back in touch if you need some advice on how to do it.  We need to know what operating system that uses the Mac that you normally use to administer the time Capsule, provide good instructions, if you need it.

  • Can't stop device USB because the program is still using it. (The corrections suggested for other posters have failed.)

    I closed all programs. I can not identify all Manager tasks, such as processes relating to this hard drive. I tried the Systinternals Process Explorer, but nothing appears in the box for that drive. It started a few weeks after a virus problem. Virus has reportedly been removed from my computer. Microsoft Security Essentials claims that my system does not have malicious software. (I double checked with a trial version of MalwareBytes because MSE was unable to stop the virus in the first place.)

    I use a Toshiba laptop that is about 4 years old. Is this a sign that my computer is going to die? Or is there something else I can try?

    On the following thread check the answer zbeagle and below:

    Cannot eject the hard disk USB drive still in use?
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/cant-eject-USB-hard-drive-drive-always-in-use/f052d0e7-ee89-4946-A6AD-b6e632a65133

    I also use a third party software to unlock the usb drives called Unlocker
    http://download.CNET.com/Unlocker/3000-2248_4-10493998.html

    Problem ejecting USB mass storage device
    http://support.Microsoft.com/kb/555665#appliesTo

  • cannot disconnect usb hard drive external, impossible to use "remove" to eject from my hard drive

    I have windows 7 using a new drive external hard usb. I am unable to use "remove" to eject my hard druve it says windows can not stop your device generic volume beak a program always uses this even tho I did open or running. If I pull the unit I have at high risk to mess up the data on the external hard drive.

    WolfgangSlany,

    I suggest you run the Hotflix from the link and if it helps.

    http://support.Microsoft.com/kb/931619/en-us

Maybe you are looking for

  • With the help of iTunes audio in Keynote

    I try to use music files, I regularly bought from the iTunes Store in my Keynote presentations. But many of them (not all, strangely) I get a message saying hat the media file "xxx" is protected against copying and I'm not allowed to use it. I used t

  • What s PCI LAN: IBA GE SLOT 0008 v1336?

    Hello In the BIOS boot priority, I can see this as selectable device, but I don't know what it is physically. Maybe's Express card slot?

  • Please send me a code to restart Windows Live E-mail

    Please send me a code to restart Windows Live e-mail, .

  • Maybe a scam?

    I have a saying of telephone number 16617480240 Skype user who keeps calling my house saying they are Microsoft! They said that I paid you a 149.00 and will refund 200.00 dollars, but in order to hit the sign of Microsoft and the letter R. Is it a sc

  • Two HP564 cartridges setup fail.

    Hello I have a new HP Deskjet B3070A printer and the Cyan and Magenta cartridges do not work. When I check the ink level, it shows that they have ink but a print quality diagnostic report does not show their coordinates to ink. Point 10 of the report