11-28-2005 05:16 AM
5) The labview push button, how does it suppost to work. Is it like a real push button. When you press, the connection from first line to second line occur, When you realeased, the connection The connecton from one line to the next line is open?
6) How do you connected Labview push button to the fixture. I have CB-68LP boards. It has digital I/O. I am ouputing, I used p0.0line and the other should be DGND or p.01 for one push button? I am not sure. Could you pls tell me? Is the rule you can not make your test fixture ground the same as the computer digital ground.? Could you pls tell me?
Regards,
John
11-28-2005 11:03 PM
11-28-2005 11:10 PM
Hi John,
This link should give you and idea how switches can be configured for different mechanical actions.
http://digital.ni.com/public.nsf/allkb/F069E2D7A745C5DC86256F02007F2C66?OpenDocument
You always connect a DIO line with respect to Digital ground(DGND).
Hope this helps.
Regards
Dev
11-29-2005 07:23 AM
Hi Dev:
I tried the program. It worked on my fixture this time, see attached. I deleted the property node part, then it worked. Is that because of the property node?
Why do you set the property node to false? Is it becasue you want to enable push button to go back to the light on state which is fasle? I want to make sure.
Right now, I just delete that part. it work.
Also, sometime i see some stop task and clear task outside the while loop? why? Could you please explain? I don't understand here.
Stop task and clear task are pretty much the same, except the clear will clear the the stuff like the enable event case and go back to the timeout event case in this case until someone hit the buttons. Am I correct? Make the prgram clear before doing doing anything. Am I correct? Would you verify me?
In your program, the stop adn new push button is in between the while loop and the event structure. I know if push button is in event structure, the action will do thing inside the event structure. Why stop is not nessary or why is it need to put in between the loop and the event structure
11-29-2005 10:48 PM
Hi John,
Why do you set the property node to false? Is it becasue you want to enable push button to go back to the light on state which is fasle?
Yes, i had previously keep mechanical state of switch as 'switch when pressed', so i was clearing it once the event was executed.
Also, sometime i see some stop task and clear task outside the while loop? why? Could you please explain? I don't understand here.
11-30-2005 02:27 AM
Hi Dev:
11-30-2005 02:59 AM
Hi John,
I did not change the Digital DAqmx write commands that you had in reset event in your original VI.
I thought you were using them like that for some purpose of yours.and i only worked on the analog input section
And since it seems like you are using Virtual digital channels that you have created in NI MAX, it will work fine.
11-30-2005 05:51 AM
Hi Dev:
That is all right if you forgot the DAQmx start. I sometimes fogot too. But I need tu understand my it, otherwise I can not finish the project. 1) How come I see some program like my attached file that has a stop task outside the while loop? Is it OK to put a stop task outside the while loop? If so, how come I don't see any stop task and clear task outside the while loop in the program you gave me?
2) stop task is used to stop a task, and return it to the state i was in before the DAQmx start task ran. Let say the stop task is very similar to the program you gave me in the enable event structure, as my old program in the timeout event case. Did you mean the stop task is to stop the task and then it will return to the DAQmx start task before the while loop? Is so, why the stop need to do like that? I don't understand. What if the program with stop task is without the DAQmx start, does the program just stop and do nothing there? I want to be sure.
3) clear task, will stop the task if it was not previously stopped, and releases any resources that the task had reserved.You mean thing like the error message usually after the clear task. Is that correct about the releases any resources that the task has reserved.
4)
11-30-2005 06:10 AM
11-30-2005 06:20 AM