12-05-2010 03:18 PM
Hi,
Can anyone tell me how to reset my PCI-6220 in VB.net code. I have it working in VB6 using the following code but can not find the same commands in VB.net. The program is written for shop floor people and if readings do not come in at the desired time I them to be able to reset the card rather than using MAX (Measurement & Automation). Thanks in advance
Private Sub CommandReset_Click()
'Stop and Clear The Task Here
DAQmxStopTask taskHandle
DAQmxClearTask taskHandle
'Reset Device
DAQmxResetDevice "Dev1"
taskIsRunning = False
End Sub
Solved! Go to Solution.
12-06-2010 09:35 AM
Hi Antony_Australia,
There is a .NET reset function that can be accessed.
Try this:
DaqSystem.Local.LoadDevice("Dev1").Reset()
Where Dev1 is the device name.
Hope this helps!
12-06-2010 07:18 PM
Thanks Excellant Solution!