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.
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.
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.
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.