Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble using analog trigger event to trigger fire event

I have a pushbutton wired to an analog input. I am need to do some things in visual basic when a user pushes the button which I want to trigger a fire event using the analogtriggerevent. I am not doing anything else with the daq card at that point. I have windowsize = 2 triggerlevel = 4, enabled, positive and refreshed it. The voltage for the signal is 5V. which I verifed with AIpoint. 6013 card with latest nidaq drivers, vb6
0 Kudos
Message 1 of 2
(5,831 Views)
Hello,

Is the problem that you are experiencing that the event is not being created? It sounds like you have settings configured appropriately. Are you actually waiting on an event to occur? How are you monitoring the action? Also, does the signal pass through the lower level of the trigger window (2 Volts for your case), i.e. does the analog signal start at 0?

If it is the case where the analog signal is passing through the trigger window, and you are have appropriately configured your software to await for the event, then I can't imagine what else might be going wrong. You may want to try using an NI-DAQ generated event using the National Instruments GeneralDAQEvent inside of VB. I have seen this to be a more consistent means of generating events, even though
your method should work as well.

If the problem is still existing after confirming the things I have mentioned, and/or trying to use the GeneralDAQEvent, then post back and hopefully we can get you a solution.

Jared A
0 Kudos
Message 2 of 2
(5,831 Views)