Encapsulated VIs for USB TC-08

Post your LabVIEW discussions here
scls19fr
Active User
Active User
Posts: 15
Joined: Fri Mar 13, 2009 1:14 pm

Post by scls19fr »

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 557 times

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Post by Robin »

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

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

Post by scls19fr »

Sorry I probably made a mistake
Attachments
get_unit_info.vi
(31.45 KiB) Downloaded 564 times

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Post by Robin »

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

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

Post by scls19fr »

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

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Post by Robin »

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.

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

Post by scls19fr »

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

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Post by Robin »

Try this one...
Attachments
get unit info.vi
(11.46 KiB) Downloaded 566 times

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

Post by scls19fr »

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

Post by scls19fr »

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

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

Example VIs for Serial TC-08

Post by edinburgh4 »

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.

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: Encapsulated VIs for USB TC-08

Post by Robin »

Hi

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

Robin

Post Reply