I found the following code on a Youtube video from 11 years ago for reading a MCC DAQ analog output
PublicClassForm1Dim mydaqboard AsNewMccDaq.MccBoard(0)Dim dataval AsSystem.Int16Dim engunit AsSinglePrivateSubButton1_Click(sender AsObject, e AsEventArgs)HandlesButton1.ClickTimer1.Start()EndSubPrivateSubTimer1_Tick(sender AsObject, e AsEventArgs)HandlesTimer1.Tick
mydaqboard.AIn(0,MccDaq.Range.Bip10Volts, dataval)
mydaqboard.ToEngUnits(MccDaq.Range.Bip10Volts, dataval, engunit)Label2.Text= engunit
EndSubEndClass
The program executes without errors, however it only displays an output of -10 in Label2. Everything works as intended in DAQami so hardware is not the issue. How can get this program to readout properly in Visual Basic?
Question
TFisherIRA
I found the following code on a Youtube video from 11 years ago for reading a MCC DAQ analog output
The program executes without errors, however it only displays an output of -10 in Label2. Everything works as intended in DAQami so hardware is not the issue. How can get this program to readout properly in Visual Basic?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now