Hello all,
I'm currently working on a project where our system uses a DAQ card (6062E) for a PCMCIA slot, but we are looking at changing the DAQ card to a USB port (card: USB-6218). My question is if all of the pre-existing interface code for the PCMCIA DAQ will be the same for the USB DAQ.
Here is a snippet of code that goes and discovers the DAQ card (written in VB):
Public Function IsDaqCardPresent() As Boolean
Dim strings As String() = NationalInstruments.DAQmx.DaqSystem.Local.Devices
For Each s As String In strings
Dim dev As Device = DaqSystem.Local.LoadDevice(s)
If dev.ProductType = "DAQCard-6062E" Then
DAQ_DeviceID = dev.DeviceID
Return True
End If
Next
Return False
End Function
This should be fine for realizing the DAQ card, but with a new port, would I need to change any other code to interface to it, or would all of the interface code remain the same?
thanks so much,
David