Lecteur code barre acqusition USB
Bonjour,
J'ai une quelques questions : voici mon projet, je dois acquérir plusieurs code barres dans un fichier Excel. Pour cela, il y a trois lecteurs code barre branché sur différents ports USB de l'ordinateur, j'aimerais pouvoir prendre la valeur scanné du scanner 1 et l'envoyer dans la colonne A, ensuite celle du scanner 2 et l'envoyer dans la colonne B. Cependant je n'arrive pas à sélectionner dans visa read, le lecteur code barre. Dans un premier temps j'aimerais que mes douchettes soient reconnues sous Labview. Comment faire, je possède une douchette Datalogic Touch light 90 et Labview 2010?
Merci d'avance de votre aide,
Cordialement
Quentin F
Résolu !
Accéder à la solution.
J'ai retrouvé un VI que j'ai fait pour commmencer. (Labview 11)
Pièces jointes :
lecteur-scan.vi 11 KB
Similar Messages
-
Comment utiliser une webcam pour faire un lecteur de code barre
Bonjour, j'ai commencé à utiliser depuis peu Labview, le professeur nous à demander de faire un lecteur de code barre en utilisant Labview, en fouillant un peu j'ai trouvé qu'il y avait dans l'assistant Vision un sous menu concernant les codes barres. Pourtant je ne parviens pas à faire quelque chose de fonctonnel car je ne comprends pas ce que je dois sélectionner et quels éléments il faut rajouter après avoir utiliser l'assistant pour avoir un système opéraionnel. J'avais cru comprendre que l'assistant Vision aidé à écrire le code mais je ne le vois pas en application.
Merci d'avance pour tous les conseils et aides.Bonjour touf25,
L'assistant vision aide à choisir les traitements à réaliser sur l'image (table de transformation, seuillage, filtres particuliers...) et à en extraire des informations intéressantes (segmentation, lecture de code barre 1D ou 2D, etc.), mais il n'écrit pas la structure du code !
Depuis l'assistant vision on peut exporter en fichier .vi qui peut alors être réutilisé dans un code plus global gérant l'interface utilisateur (interactions), les initialisations etc.
Pour la lecture de code barre en particulier il faut :
- définir une région d'intérêt,
- donner la taille minimale d'une barre en nombre de pixels,
- donner le "contraste" d'une barre par rapport à une non-barre (passage de barre à pas barre),
- donner le nombre minimal de barres du code.
Il faudrait expliquer plus particulièrement ce qui pose problème avec cet outil de vision.
Cordialement -
how to generate a code barre with oracle form builder
Hi ,
What does "code barre " stand for..???
Regards,
Simon -
Bonjour,
Je cherche un exemple de vi qui pourrais generer un code barre 2D type DATAMATRIX. J'ai trouvé sur le site celui-ci http://zone.ni.com/devzone/cda/epd/p/id/5539 mais je n'arrive pas à le trouver ni le telecharger. J'ai labview 8.5 et installé Vision Development Module Evaluation comme demandé.
Merci de votre aide pour ce vi ou pour un autre répondant à mon besoin.
Salutations
Ps: ce message est une copie d'un autre que j'ai poste sur une autre discussion du forum.Bonjour,
Les librairies Open Source pour générer ce type de code barre sont nombreuses sur internet, vous en trouverez notament une plutôt pas mal ici (librairie .NET) :
http://platform.twit88.com/projects/mt-qrcode/files
Voici un exemple d'implémentation sous LabVIEW :
Cordialement,
Da Helmut
Pièces jointes :
QrCode.vi 31 KB -
Hi:
I studied Bus\USB document of WDK. This document forces on developing USB device driver.
And there are some IOCTL Interfaces of usb bus driver exposed to usb device, like IOCTL_INTERNAL_USB_SUBMIT_URB.
But those IOCTL Interfaces seem to belong to USB hub driver(usbhub.sys).
My job is to developing a usb mini port driver, like usbehci.sys. That can work with usbport.sys.
So I should know the communication interfaces(IOCTL...etc) between them and implement these interfaces.
Is there a reference document(example, code) for developing usb mini port driver ?No there is no reference documents for this, Microsoft stated from the beginning that they own that layer. You really don't want to go there.
Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com -
when i conect my iphone to pc i see usb multifonction error 43
Hi toto27,
To be honest I never heard about error code 43 on USB ports. All USB ports on my notebook work properly and never had and problems with them.
Sometimes Im here in forum and then I can read that reinstalling the chipset driver can help to solve USB port problems. You should check the official Toshiba website for such a driver update.
Furthermore it would be interesting to know which USB devices you have tested. You should test different devices. -
Error code -200077 [NI USB-4431]
Hi,
I am using the NI USB-4431. I would like to generate a signal and make a data acquisition but during the task "daqmx write" it appears an error (error code 200077).
I also have the NI PXIe-1082 with the acquisition card NI PXI-4461 and it works correctly... so I do not understand why the same code works with this card and not with the USB-4431 (I have naturaly changed the physical channel...)
You can see the printscreen and the code in attachment
Thank you
Cedric
Attachments:
Sinus excitation.vi 2088 KB
PrtSc1.JPG 145 KBsorry for the multiple sending...
-
Fermeture face avant sans la structure evennement
Bonjour
travaillant sur un lecteur code-barres qui n'utilise pas la programmation evenementielle, je souhaiterais limiter au maximum les structures evenements et ne fonctionner que par polling
Y a t il moyen de gerer la fermeture de la face avant dans une machine a états autrement que par structure evenement?
je souhaiterais reproduire les choses suivantes:
-rejet du bouton comme la propriete d'evenement "rejeter"
-lecture de la valeur de la croix via un noeud de propriete, par exemple
merci pour l'aide
Résolu !
Accéder à la solution.salut j'ai cela, mais j'ai testé en LV2010 et le résultat est "moyen"... Mon LV Crash...
J'utilise les Callback sur des évènements ActiveX (et cela fonctionne très bien), pour les évènements LabVIEW j'utilise directement la structure eventdriven. Mais j'ai des confrères qui utilise cette technique.
A+
Luc Desruelle | Voir mon profil | LabVIEW Code & blog
Co-auteur livre LabVIEW : Programmation et applications
CLA : Certified LabVIEW Architect / Certifié Architecte LabVIEW
CLD : Certified LabVIEW Developer / Certifié Développeur LabVIEW
Pièces jointes :
VI Close.vi 9 KB
CallBack Close.vi 10 KB -
i have suddenly got this message 'one of the USB device attached to this computer has malfunctioned, and Windows does not recognise it'. it says error code 43. the usb drives (2 in no.) have stopped working as in they dont recognise the external hard drive
or pen drive. I have a HP pavilion dv4 series notebook. the usb drives were working fine - however suddenly yesterday this strange message cropped up. life has taken a drastic turn! please help.
in device status is says: Windows has stopped this device because it has reported problems. (Code 43)
location: Port_#0002.Hub_#0005
driver provider: microsoft
date of driver: 21-06-2006
driver version: 6.1.7600.16385
HELP!!!!!!!!!!!Hi ameet2005,
Please check if the following suggestions help:
First, please disconnect all USB devices and then perform the following steps:
1. Click "Start" button, type “devmgmt.msc” (without quotation marks) in the “Search” bar and press "Enter". Click “Continue”
if necessary.
2. In Device Manager, double click to expand "Universal Serial Bus controllers", right click on the Host Controller, click "Uninstall" and click "OK".
3. Repeat the step 2 to uninstall all items under "Universal Serial Bus controllers".
Then, restart your computer and Windows 7 will reinstall all USB controllers automatically.
If the issue persists, please check if it can be resolved by running
System File Checker.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ” -
HT1151 usb shows error code of 43...what does that mean?
Ipod touch 3rd gen stuck on itunes screen....plug in usb and says it has malfunctioned.
error code 43 when USB not recognised - Microsoft Answers
Also:
iOS: Device not recognized in iTunes for Windows -
2TB USB disks don't work under Windows 8.1. Enterprise Evaluation
Hi,
2TB hard disks don't get started in Windows 8.1. Enterprise Evaluation:
*** Error code 43
*** Unkown USB Device - Device Descriptor Request Failed
*** configured but not started
Hardware is OK i.e. this is Windows 8.1. Enterprise Evaluation problem:
~ the same USB hard disk worked before and after this with older Windows PCs
2TB seems to be challenge for Windows 8.1. Enterprise Evaluation:
~ it runs ok USB devices with < 2TB in the same PC and in the same port
Notes:
~ restart of Windows 8.1. Enterprise Evaluation did not help
~ Windows NTFS format is being usedtry this solution
http://blogs.msdn.com/b/usbcoreblog/archive/2013/11/01/help-after-installing-windows-8-1-my-usb-drive-disappears-or-file-transfers-stop-unexpectedly-r-a-post-title.aspx
or if still not solved, I suspected this USB drive attached during Windows 8.1 installation, I suggest remove it at device manager and scan for the new device and lets see if windows can detect this HW, try also update all driver if there is any update for
this PC and update windows or update OS to pro version -
Windows has stopped this device because it has reported problems. (Code 43)
ipod touch is not recognized by windows 7 64bit system please help
Maybe here:
error code 43 when USB not recognised - Microsoft Answers -
[SOLVED]USB support in virtualbox guest OS
I have a Windows 7 64 bit guest in virtualbox
[inxs ~ ]$ paclocs virtualbox
local/virtualbox 4.0.8-4
Powerful x86 virtualization for enterprise as well as home use
local/virtualbox-ext-oracle 4.0.8-1
Oracle VM VirtualBox Extension Pack
[inxs ~ ]$
I also have the latest guest additions installed. I have been trying to get access to my iPod, so I can transfer some songs without having to boot into my Windows (the dual boot one). gtkpod does not recognize my iPod for some reason - but that's for another thread.
In any case, I found that not only the iPod, but I cannot access any usb flash drives either. I tried the filters, but that didn't work. So here's what I have tried so far :
I tried this post and this thread : https://bbs.archlinux.org/viewtopic.php?id=50239 but neither option work for me.
This thread on virtualbox forums is the same problem I have but alas they don't have any solution.
And finally this doesnt help either
They are all basically minor variations of the same solution.
Here are my details:
[inxs ~ ]$ cat /proc/bus/usb/devices
T: Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1005 ProdID=b113 Rev= 1.00
S: Manufacturer=
S: Product=USB FLASH DRIVE
S: SerialNumber=19570E14032E
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=200mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usbfs
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=1ms
[inxs ~ ]$ ls -l /proc/bus/usb/001/003
-rw-rw-r-- 1 root vboxusers 57 Jun 21 19:55 /proc/bus/usb/001/003
[inxs ~ ]$ groups
lp wheel video audio optical storage power users vboxusers
[inxs ~ ]$
So as you can see the usb drive is on bus 01, device 03, and ls of that device shows that it belongs to vboxusers group and my user belongs to that group
[inxs ~ ]$ grep vboxusers /etc/group
vboxusers:x:108:inxs
[inxs ~ ]$
So the devgid is 108, but none of the lines suggested in the linked threads in fstab work for me
I do not have a group called usb, but I have one called usbmux -- Is that the devgid that I have to use?My user does not belong to that group.
[inxs ~ ]$ grep usb /etc/group
usbmux:x:140:
[inxs ~ ]$ewaller wrote:You said USB drives. Have you tried any other classes of USB devices?
I am not sure what exactly you mean by classes, but I tried 2 different usb keys, an iPod and a portable usb HDD and a Logitech webcam
ewaller wrote:Do the devices show up in the VB USB device menu ?
Are they enabled or grayed?
Yes they do show up in the VB USB device menu and they are all enabled. When I select them to allow the guest to access them, Windows 7 tried to install the driver, but then invariably fails no matter how many times I try.
ewaller wrote:Some of the links indicated the devices are allocated to VM, but show up as unknown devices -- Is that what you are seeing?
Nope. See above.
ewaller wrote:What are the vendor / product codes of your USB Controller(s)
[inxs ~ ]$ lspci | grep USB
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
[inxs ~ ]$
[inxs ~ ]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 1058:0900 Western Digital Technologies, Inc. MyBook Essential External HDD
Bus 001 Device 003: ID 1005:b113 Apacer Technology, Inc. Handy Steno 2.0/HT203
Bus 002 Device 003: ID 041e:4055 Creative Technology, Ltd Live! Cam Video IM Pro
Bus 002 Device 005: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 003 Device 002: ID 413c:1004 Dell Computer Corp.
Bus 007 Device 002: ID 413c:3016 Dell Computer Corp. Optical 5-Button Wheel Mouse
Bus 003 Device 003: ID 413c:2006 Dell Computer Corp.
Thanks Eric. -
Using NI-VISA to detect USB insertion/​removal
Is there a way to use NI-VISA to detect when a USB device has been inserted or removed?
I am currently using Windows API in my LabWindows application to capture the WM_DEVICECHANGE event. When this event is called, I check to see if the USB devices are still connected to my PC by using viFindRsrc function. On Windows XP 32-bit, this approached worked successfully. On my Windows 7 64-bit system this is no longer working. After I remove the USB device, the viFindRsrc function is still indicating that the device is connected even though it isn't.
Also, when a USB device is controlled by a NI-VISA driver, I cannot capture the Windows DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE events. I am able to see these events for other USB devices that are not controlled by a NI-VISA driver.
Solved!
Go to Solution.I solved the issue.
The behavior of the NI-VISA driver requires that you register to receive Windows notifications. The other USB devices that weren't controlled by a NI-VISA driver didn't require me to register to receive the DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE events. I received them by default...
Here is the code to register USB events
Here is the code where I register the USB events:
DEV_BROADCAST_DEVICEINTERFACE NotificationFilter;
intptr_t postHandle = 0;
/* Windows HWND */
HWND hWnd = 0;
long long unsigned int hWndVal = 0;
/* Get HWND of LabWindows\CVI panel */
GetPanelAttribute(panelHandle,ATTR_SYSTEM_WINDOW_HANDLE,&hWndVal);
hWnd = (HWND)hWndVal;
* USB Raw Device
* Device Interface Class GUID = {a5dcbf10-6530-11d2-901f-00c04fb951ed}
GUID_CLASS_USB_DEVICE.Data1 = 0xA5DCBF10L;
GUID_CLASS_USB_DEVICE.Data2 = 0x6530;
GUID_CLASS_USB_DEVICE.Data3 = 0x11D2;
GUID_CLASS_USB_DEVICE.Data4[0] = 0x90;
GUID_CLASS_USB_DEVICE.Data4[1] = 0x1F;
GUID_CLASS_USB_DEVICE.Data4[2] = 0x00;
GUID_CLASS_USB_DEVICE.Data4[3] = 0xC0;
GUID_CLASS_USB_DEVICE.Data4[4] = 0x4F;
GUID_CLASS_USB_DEVICE.Data4[5] = 0xB9;
GUID_CLASS_USB_DEVICE.Data4[6] = 0x51;
GUID_CLASS_USB_DEVICE.Data4[7] = 0xED;
NotificationFilter.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE);
NotificationFilter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
NotificationFilter.dbcc_classguid = GUID_CLASS_USB_DEVICE;
* Installs a callback function for WM_DEVICECHANGE Windows message posted
* or sent to a LabWindows/CVI panel.
InstallWinMsgCallback (panelHandle, WM_DEVICECHANGE,
WindowsDeviceDetection, VAL_MODE_INTERCEPT, NULL, &postHandle);
* Register device notification for USB Raw Device interface class GUID
RegisterDeviceNotification(hWnd, &NotificationFilter,
DEVICE_NOTIFY_WINDOW_HANDLE);
Here is the code that responds:
static int CVICALLBACK WindowsDeviceDetection (int panelHandle, int message,
unsigned int* wParam, unsigned int* lParam, void* callbackData)
PDEV_BROADCAST_HDR lpdb = (PDEV_BROADCAST_HDR)lParam;
switch (message)
/* Received Windows WM_DEVICECHANGE message */
case WM_DEVICECHANGE:
switch (*wParam)
* Received Windows device-change event "DBT_DEVNODES_CHANGED".
* Device has been added or removed from the system.
case DBT_DEVNODES_CHANGED:
printf("[%s] DBT_DEVNODES_CHANGED\n",TimeStr());
break;
* Received Windows device-change event "DBT_DEVICEARRIVAL".
case DBT_DEVICEARRIVAL:
printf("[%s] DBT_DEVICEARRIVAL\n",TimeStr());
break;
* Received Windows device-change event "DBT_DEVICEREMOVECOMPLETE".
case DBT_DEVICEREMOVECOMPLETE:
printf("[%s] DBT_DEVICEREMOVECOMPLETE\n",TimeStr());
break;
default:
break;
return 0; -
Hi all,
I have seen many people have the same issue with HP but I cannot find the driver for my machine.
My machine is HP ProBook 6560b runing Windows 7 32 bit.
In my Device Manger I have an unknow device and when go into properties I find the following:
Genral - Port_#0001.Hub_#0003 & The drivers for this device are not installed. (Code 28)
Details - USB\VID_138A&PID_003C&REV_0086 & USB\VID_138A&PID_003C
Can anyone help please?
Anthony
This question was solved.
View Solution.Hi:
Below is the link to the driver you need for your HP ProBook 6560b - USB\VID_138A&PID_003C&REV_0086 & USB\VID_138A&PID_003C:
http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=5045607&sp...
Maybe you are looking for
-
My HP Pavilion 23 touchsmart all in one touch screen is not working
My HP Pavilion 23 touchsmart all in one touch screen is not workin. I have restored the system. I didn't see any place in the pen and touch to disable or enable and not sure if i should instill drivers. What can i do?
-
CURRENT_DATE in EclipseLink/JPA
When I use CURRENT_DATE in JPA queries for date comparisions, it seems to be taking time into consideration as well. So when I comapre a date with CURRENT_DATE, even though the date I am comparing is today's date, the results state that CURRENT_DATE
-
Converting single ASM to RAC ASM
How i can convert single ASM to RAC ASM?
-
Newsletters se codifica en base64 las imagenes.
Estoy haciendo newsletters con Mail Marge donde mi código html inline contiene direcciones absolutas a imágenes. Pues bien cuando recibo el mail las imágenes están embebidas en base64 y algunos correos no ven correctamente esas imágenes. Como puedo h
-
Checking user that released an order
Short question: How can i check wich user released a transport order ?? thx