LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write smartcard with Labview

Hello Community,

 

I have a project running, containing the reading and writing from Smartcards (i have blank cards, no illegal stuff here!). I have found in earlier threads a .vi where i can read a Smartcard with a smartcard-reader in LabVIEW (winscard.dll). 

 

In this project i want to write arrays containing strings, numbers etc.. First question: ist it possible to write simpe text files on smartcards?

How is it possible to write on smartcards with winscard.dll (with a smartcard writer)?

Can i use the TresMan.vi (attached below) as Subvi?

 

I would be very greatful for solutions.

I will answer questions any time

 

regards

 

Benjamin

 

 

0 Kudos
Message 1 of 11
(4,759 Views)

Hi Benjamin,

 

it should be possible to write text files on smartcards with a smartcard writer.

It is also possible to acces the smartcard with the winscard.dll.

 

The VI you attached does only read from a smartcard (after establishing connection and so on). So you might want to adjust it to your purpose. If you open (double click) on the "Call library function Node" in the VI you can browse through the different functions and calls of the WinScard.dll (this, by the way, is provided by Microsoft and just called by LabVIEW).

 

Hope this helped a little.

 

Best,

Anna

Anna Vogl
Certified LabVIEW Developer
0 Kudos
Message 2 of 11
(4,701 Views)

Thanks for the answer, i found my problem. I am using memory crads. That is the reason why i can not write with the TresMan.vi on my card. Is there any VI or .dll describing the writing on memorycards via LabVIEW?

 

 

0 Kudos
Message 3 of 11
(4,683 Views)

As far as I understand you want to write a textfile to a memorycard, right?

You can use the File I/O Vis in your LabView pallette. A description of the functions is here.

 

There is also an example VI in the LabVIEW Example Finder (LabVIEW -> Help -> Find Examples -> Write To Text File and Read From Text File.vi)

 

Best,

 

Anna

 

Anna Vogl
Certified LabVIEW Developer
0 Kudos
Message 4 of 11
(4,653 Views)

thanks anna for the reply.

i tried it but i cant get the smartcard reader to connect. The easiest way is to connect it via COM Port but i don't know how i can create an virtual comport with a USB device. Furthermore i dont know how to connect a USB device to LabVIEW to read an write it. I took the VISA USB vi but i couldnt get the paramters to work. Could you help me with this matter?

0 Kudos
Message 5 of 11
(4,646 Views)

I tried to install the smartcard reader as USB Raw but i got a MAX error. I disabled the driversignature so i can install ist. in the device manager i can see it as USB device now but when i try to open it in Labview an error occurs which says that no usb raw device is connected

0 Kudos
Message 6 of 11
(4,644 Views)

What kind of memory card do you use? Why do you have a smart card reader? I don't really understand the connection here...

Anna Vogl
Certified LabVIEW Developer
0 Kudos
Message 7 of 11
(4,639 Views)

i have this one http://www.amazon.de/gp/product/B00PY0CNYM?psc=1&redirect=true&ref_=oh_aui_detailpage_o03_s00. i think the term smartcard/memorycard is confusing and used for different media devices

0 Kudos
Message 8 of 11
(4,634 Views)

Did you already try this:https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1qzCAA&l=en-US

 

Anna Vogl
Certified LabVIEW Developer
0 Kudos
Message 9 of 11
(4,591 Views)

sorry for the late answer. Yes u tried it but it always occurs an error. the driver could not be installed properly and in NI MAX no usb device is shown

0 Kudos
Message 10 of 11
(4,512 Views)