12-09-2008 09:19 PM
Hi All,
I'm doing a subVI. i'm using NI-USB6008, port A10 to obtain voltage signal from my circuit board. When the supply is on, the voltage is 57mv & my indicator on my circuit board will light up when i shorted my circuit. When i didnt short my circuit, the voltage is 43mv and the indicator will not light up.
I have attach how i connect to my labview. the problem is that when i short my circuit, the indicator in labview is always in false condition.
Thank You.
Regards,
Isa
12-09-2008 10:27 PM - edited 12-09-2008 10:27 PM
Please don't post your code within a propietary file format, and certainly not that horrible .docx format that Microsoft is trying to force down people's throats. Most people don't have the latest version of MSOffice or the .x file format converters installed.
Either post your .VI or post the screenshot as a .png file.
12-09-2008 11:44 PM
Hi,
Sorry for that.
Regards,
Isa
12-10-2008 12:00 AM - edited 12-10-2008 12:05 AM
The indicator belongs outside the case structure so it gets written for both conditions.
Or just connect the LED terminal directly to the output of the comparison operation. No case needed.
12-10-2008 12:35 AM
Hi altenbach,
Sorry if i spell your name wrongly. You mean like that? But when i turn on my supply and shorted my ciruit, the boolean still in the false condition.
12-10-2008 01:21 AM
12-10-2008 01:27 AM
Hi,
Sorry for the trouble. I find out the way already.
But i would like to ask another question. why when i didnt short my circuit, the boolean will still light up?
12-10-2008 01:33 AM
12-10-2008 01:42 AM - edited 12-10-2008 01:44 AM
Sorry, I have no idea how your signal looks like, but I have no idea why you think you need a case structure.
Just wire it like as follows, right? Why do you think you need a case structure here??? 😮
Isabella wrote:But i would like to ask another question. why when i didnt short my circuit, the boolean will still light up?
Sorry, I have no idea what you mean by "short my circuit". Can you clarify???
Look at your code below!
Also here you can wire the dynamic data directly to the terminal, get rid of the select and the two boolean diagram constants.
You are basically duplicating one of our typical Rube Goldberg constructs. Makes no sense at all.
(Sorry, I really never use dynamic data much, so I I am not really sure how single boolean outputs are handled when connected to dynamic data)
12-10-2008 01:47 AM