Mike R Posted June 6 Share Posted June 6 I Have a USB-1608G and I want to find and run C# code to read the analog value of one channel. I can run DAQami to read and see my analog input values, so I know everything is connected. I downloaded MCC software and loaded VIn01.cs into Visual Studio where it compiles and runs. I changed the range to Uni5Volts and selected channel 0. When I press the start button I get the error message: Specified USB Board Not Detected Is this the correct demo program to use? If not, can you tell me what I can use? Thank You, Mike Link to comment Share on other sites More sharing options...
0 DAQman Posted June 6 Share Posted June 6 The USB-1608G has bipolar ranges only. Use Bip5Volts and Bip10Volts. There are two other ranges the example does not account for, and they are Bip1Volts and Bip2Volts. Link to comment Share on other sites More sharing options...
0 Mike R Posted June 6 Author Share Posted June 6 I do believe you are incorrect and must be referring to another product, not the USB-1608G. The documentation indicates that I can read a single-ended, ground-based input. When I use the DAQami utility, I can select Differential OR single-ended. I verified that the voltage shown with that program is correct by comparing with an external voltmeter. My problem is that it says: "Specified USB Board Not Detected". It is not even getting to the measurement part of the program. Am I using the correct program for this device? Link to comment Share on other sites More sharing options...
0 DAQman Posted June 6 Share Posted June 6 Setting the inputs to Single-Ended cannot be accomplished by setting the range to Uni5Volts. There is a separate function, DaqBoard.AInputMode(AInputMode.Single-Ended). I've modified the Vin01 C# example to include an input mode selection to demonstrate what I mean and attached it below. VIn01.zip Link to comment Share on other sites More sharing options...
0 Mike R Posted June 10 Author Share Posted June 10 When I run this program, all modes, ranges or channels generates the error: 'This function cannot be used with this board'. Link to comment Share on other sites More sharing options...
0 DAQman Posted June 10 Share Posted June 10 The VIn01 example assumes that the USB-1608G is listed as board number zero in InstaCal's board list and that other programs, like DAQami, are closed. Link to comment Share on other sites More sharing options...
0 Mike R Posted June 10 Author Share Posted June 10 The maximum channel number seems to be 7. I need to have 16 single ended inputs. Can the program be changed to accept up to channel 15? I am able to do that in the DAQami utility. Link to comment Share on other sites More sharing options...
0 DAQman Posted June 10 Share Posted June 10 The USB-1608G can be configured for eight differential or 16 single-ended inputs. Select Single-ended to use channel numbers higher than 7. Link to comment Share on other sites More sharing options...
Question
Mike R
I Have a USB-1608G and I want to find and run C# code to read the analog value of one channel.
I can run DAQami to read and see my analog input values, so I know everything is connected.
I downloaded MCC software and loaded VIn01.cs into Visual Studio where it compiles and runs.
I changed the range to Uni5Volts and selected channel 0.
When I press the start button I get the error message: Specified USB Board Not Detected
Is this the correct demo program to use? If not, can you tell me what I can use?
Thank You,
Mike
Link to comment
Share on other sites
7 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