SUB-20 and NI LabView

All about SUB-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

SUB-20 and NI LabView

Postby serg » Fri Dec 25, 2009 8:42 pm

There are two ways to integrate the SUB-20 multi interface adapter into the NI LabView environment. First method is well known - direct calling MS Windows dynamic link libraries (dlls), i.e in order to use the sub20.dll API you should create a SUB-20 LV driver by defining all the SUB-20 API function calls and their parameters. We have an example of "direct sub20.dll calls" method available for download from our SUB-20 web page. This example initializes SUB-20 i2c and SPI interfaces.
The second method is much easier but requires NI LabView version 7 or latter. Starting from version 7 the NI LabView supports the Microsoft .NET technology. If you have LabView v7 or latter, we would recommend you to look into the easier way i.e. using SUB-20 .NET component - sub20dnc.dll. This component is a part of the regular installation package and located in the bin subdirectory of your SUB-20 installation directory. You can download the latest software from our SUB-20 web page as well. Among other examples this package contains SPI & I2C LabView sample vi's.

see more info here
viewtopic.php?f=2&t=221
viewtopic.php?f=2&t=120
Attachments
labview_8.5_samples.zip
(55.67 KiB) Downloaded 2125 times
serg
 
Posts: 136
Joined: Mon Aug 31, 2009 9:17 pm

Re: SUB-20 and NI LabView

Postby Smurfen » Thu Sep 23, 2010 5:14 pm

Do you have any version for LabViev 8.0?
Smurfen
 
Posts: 1
Joined: Thu Sep 23, 2010 5:04 pm

Re: SUB-20 and NI LabView

Postby serg » Fri Sep 24, 2010 4:24 am

Yes, we have
Attachments
labview_8.0_samples.zip
(56.05 KiB) Downloaded 1612 times
serg
 
Posts: 136
Joined: Mon Aug 31, 2009 9:17 pm

Re: SUB-20 and NI LabView

Postby GBradburn » Fri Sep 24, 2010 3:43 pm

Does the .NET support include the latest rev of the software, including support for MDIO through the level converters (MDIO1/MDC1)?
GBradburn
 
Posts: 8
Joined: Wed Sep 22, 2010 3:34 pm

Re: SUB-20 and NI LabView

Postby serg » Sat Sep 25, 2010 3:19 am

No, the MDIO + channel selection feature will be available in our next release of the SUB-20 .NET component.
serg
 
Posts: 136
Joined: Mon Aug 31, 2009 9:17 pm


Re: SUB-20 and NI LabView

Postby xol » Sat May 12, 2012 5:04 am

You can also use native LabView VI's.
Download here version 0.3:
http://www.xdimax.com/sub20/download/SUB-20-VI-0.3.zip
Or check for latest versions here:
viewtopic.php?f=2&t=506
xol
Site Admin
 
Posts: 238
Joined: Sat Aug 29, 2009 8:04 am


Return to SUB-20 General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron