Test and Measurement Forum

Encapsulated VIs for USB TC-08

Post your LabVIEW discussions here

Postby scls19fr » Tue Apr 14, 2009 2:21 pm

Here is the 8.2 minimal sample for the get_unit_info problem.

Kind regards

Sebastien

PS: if you are looking for nice LabVIEW drivers you should have a look at for example Agilent 34970A... on Devzone IDNET
http://www.ni.com/devzone/idnet/f/
http://sine.ni.com/apps/utf8/niid_web_d ... del_id=968
This is a NI certified driver "Plug and Play (project-style)"
Attachments
get_unit_info.vi
(30.28 KiB) Downloaded 269 times
scls19fr
Active User
Active User
 
Posts: 15
Joined: Fri Mar 13, 2009 1:14 pm

Postby Robin » Tue Apr 14, 2009 2:58 pm

I'm afraid I still can't open it. I'm still getting an error message saying that it's a Labview 8.5 file.

The Labview drivers you mentioned are for VISA instruments, as all NI certified drivers are, which are quite different.

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Postby scls19fr » Tue Apr 14, 2009 3:35 pm

Sorry I probably made a mistake
Attachments
get_unit_info.vi
(31.45 KiB) Downloaded 279 times
scls19fr
Active User
Active User
 
Posts: 15
Joined: Fri Mar 13, 2009 1:14 pm

Postby Robin » Wed Apr 15, 2009 7:56 am

Hi

I was able to open that one.

The Call Library Function Node does not support structures (see Labview help). The easiest way to get the unit info is to use usb_get_formatted_info, passing a string for the unit info.

Also, when you are setting up the Call Library Function Node, for info set minimum size to string_length.

I hope this helps

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Postby scls19fr » Wed Apr 15, 2009 8:53 am

Thanks for your reply...
About passing struct to DLL in LabVIEW I found this... that could help you
http://zone.ni.com/devzone/cda/epd/p/id/4489
http://zone.ni.com/reference/en-XX/help ... ernal_apis
I don't have enough time to dive into...

so usb_get_formatted_info function can be a quick solution

Unfortunately I don't have the hardware here to test... but I thought
that I ever tryed this... but if you say me it works I believe what your
are saying.

I also wonder what is the difference between stdcall (WinAPI) and C call
scls19fr
Active User
Active User
 
Posts: 15
Joined: Fri Mar 13, 2009 1:14 pm

Postby Robin » Wed Apr 15, 2009 9:30 am

Yes, you could use a wrapper to handle the structure (we have done this with the PicoScope 5000 logic triggering). However, it is simpler to use usb_get_formatted_info.
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Postby scls19fr » Wed Apr 15, 2009 12:16 pm

I'm sorry... I've now the hardware in my hand... but I still get an empty string....
I've change unit_info string size to "string_length" but it still fails !
I also change string_size from 0 to 256... the DLL call fails
If you have an example which is running fine I would be very interessted
scls19fr
Active User
Active User
 
Posts: 15
Joined: Fri Mar 13, 2009 1:14 pm

Postby Robin » Wed Apr 15, 2009 12:21 pm

Try this one...
Attachments
get unit info.vi
(11.46 KiB) Downloaded 278 times
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Postby scls19fr » Wed Apr 15, 2009 12:35 pm

Thanks...
It works...I will have a look at the difference between your VI and mine
scls19fr
Active User
Active User
 
Posts: 15
Joined: Fri Mar 13, 2009 1:14 pm

Postby scls19fr » Sun Apr 19, 2009 11:03 am

Hello,

on a previous post you was talking of VISA drivers.
On the other side (the hardware) I also wonder if you couldn't plan to have a SCPI parser on your devices.
http://www.ivifoundation.org/specificat ... fault.aspx
see SCPI 1999: SCPI-99.pdf
http://en.wikipedia.org/wiki/Standard_C ... nstruments
I don't know any free SCPI parser (or under BSD license) but there is a commercial implementation called JCA-SCPI parser http://www.jpacsoft.com/parser_free_demo.htm

Kind regards
scls19fr
Active User
Active User
 
Posts: 15
Joined: Fri Mar 13, 2009 1:14 pm

Example VIs for Serial TC-08

Postby edinburgh4 » Wed Jul 14, 2010 3:02 pm

I have installed the drivers for the Serial TC-08 in LabVIEW and cannot figure out how to set up LabVIEW for proper functionality of the device. I want to read a range of temperatures and then put the data in a spreadsheet.

I am new to LabVIEW, which I know does not help, but after seeing that more experienced users had trouble expanding on the limited VIs provided by Pico, I think I would do well with a past example from what someone else has tried in LabVIEW.

Is there a way I can get access to the example files posted by other users on this forum or some other example file? If you do not have any Serial example files, perhaps the USB files bear some resemblance?

Thanks.
edinburgh4
Newbie
 
Posts: 0
Joined: Wed Jul 14, 2010 2:50 pm

Re: Encapsulated VIs for USB TC-08

Postby Robin » Mon Jul 19, 2010 8:37 am

Hi

All of our examples are available in the software development kit (SDK), which can be downloaded via www.picotech.com/software.html

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Previous

Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 1 guest