Test and Measurement Forum

Problem with Close TC08.vi

Post your LabVIEW discussions here

Problem with Close TC08.vi

Postby teeemzeh » Mon Aug 09, 2010 2:18 pm

hi,

we have a question according the close procedere in the close.vi for the TC08 USB Datalogger under labview 2009.
when the function usb_tc08_close_unit is called, there is no return value. For the following case structure is a 0 or 1 needed. For this value the argument (usb_tc08_close_unit) of the function is used. As result for only one device is produces an error in the case structure because the device id is always 1. Therefore the device isn´t closed without an error in Labview. Our Question: Is this an error in the programm or is there a misunderstanding?
maybe someone can give a solution.

best regards
teeemzeh
Newbie
 
Posts: 0
Joined: Mon Aug 09, 2010 1:20 pm

Re: Problem with Close TC08.vi

Postby Robin » Tue Aug 10, 2010 8:37 am

Hi

usb_tc08_close_unit returns a 1 if successful or a zero otherwise.

Can you post the VI here?

Thanks

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

Re: Problem with Close TC08.vi

Postby teeemzeh » Tue Aug 10, 2010 11:02 am

hi,
here is the vi.

the function usb_tc08_close_unit from usb_tc08.dll returns a 1 (or arg1 remains the same and is transmitted to the input of the case structure) and this causes an error in the following case structure.

thanks for reply
best regards
Attachments
CloseTC08.vi
(18.36 KiB) Downloaded 140 times
teeemzeh
Newbie
 
Posts: 0
Joined: Mon Aug 09, 2010 1:20 pm

Re: Problem with Close TC08.vi

Postby Robin » Wed Aug 11, 2010 7:30 am

Hi

I should have said, can you save it for Labview 8.2?

Thanks

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

Re: Problem with Close TC08.vi

Postby teeemzeh » Wed Aug 11, 2010 10:55 am

hi,

Yes - we can :-)......

best regards
Attachments
CloseTC08_v8_2.vi
(20.23 KiB) Downloaded 125 times
teeemzeh
Newbie
 
Posts: 0
Joined: Mon Aug 09, 2010 1:20 pm

Re: Problem with Close TC08.vi

Postby Robin » Wed Aug 11, 2010 11:09 am

Hi

I don't recognise that VI. Is it an old example of ours?

The case structure isn't using the return value of usb_tc08_close_unit, it's using the handle to the device. It should be connected to the return value (the top terminal on the right of the call library function node). It should also be changed to generate an error when the returned value is 0, not 1.

Hope this helps

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

Re: Problem with Close TC08.vi

Postby teeemzeh » Wed Aug 11, 2010 12:53 pm

hi again,

we download the programm example @
http://decibel.ni.com/content/docs/DOC-4785
and we check these files again, especilly the close...vi and it seems to be wrong there (NI-Site).
now we try change the vi in your way and we hope it works.
also we look for your examples from the picotech site.

thanks for your help

best regards
teeemzeh
Newbie
 
Posts: 0
Joined: Mon Aug 09, 2010 1:20 pm


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 1 guest