niconiconico Posted September 13 Share Posted September 13 Hello. I am trying to interface with USB-TEMP, and I keep getting 'Value cannot be null. Parameter name: ptr' error whenever I try to call mccdaq commands. I'm can't seem to figure out what is causing it Link to comment Share on other sites More sharing options...
0 JRys Posted September 14 Share Posted September 14 You must install the InstaCal utility and run the HIDRegUpdater, which tells Windows not to turn the device off. The first time InstaCal is run with the device plugged in, it will pop up a window asking you to update the device. This is the HIDRegUpdater. After the update, either restart Windows or power cycle the device and rerun InstaCal. This time, it can be added to the board list. InstaCal is also used to configure the USB-TEMP channels for the different types of sensors. Double-clicking it will bring up the Configuration dialog. If it is the only device in its board list, it has most likely assigned board number zero. You can use this number to access the device in Python. For example: value = ul.Tin(board_num, channel, TempScale.Celsius) Link to comment Share on other sites More sharing options...
0 niconiconico Posted September 14 Author Share Posted September 14 (edited) @JRys Thanks! Seems to work on some computers now. But it looks like it doesn't want to work on 32-bit computers. Can I not use the same way for 32-bit computers? Edited September 14 by niconiconico Link to comment Share on other sites More sharing options...
0 JRys Posted September 14 Share Posted September 14 Is the 32-bit computer running Windows XP? Link to comment Share on other sites More sharing options...
0 niconiconico Posted September 14 Author Share Posted September 14 It is running windows 7 Link to comment Share on other sites More sharing options...
0 JRys Posted September 14 Share Posted September 14 For your Windows 7 32-bit computer, uninstall InstaCal and replace it with version 6.55: https://files.digilent.com/archive/MCCDAQ_CD/Archive_6.55/mccdaq.exe Link to comment Share on other sites More sharing options...
0 niconiconico Posted September 14 Author Share Posted September 14 Doesn't seem to work. I also cannot run HIDRegUpdater manually Link to comment Share on other sites More sharing options...
0 JRys Posted September 15 Share Posted September 15 The HIDRegUpdater utility is not required for Windows 7. It started with Windows 8.1. Link to comment Share on other sites More sharing options...
0 niconiconico Posted Thursday at 02:09 AM Author Share Posted Thursday at 02:09 AM Does it make a difference that I have service pack 1 for Windows 7? Since using version 6.55 doesn't seem to fix the issue. Link to comment Share on other sites More sharing options...
0 Fausto Posted Thursday at 04:54 PM Share Posted Thursday at 04:54 PM Hello @niconiconico. Which programming language and development environment are you using? What are the host hardware system, OS version, and application configurations of all your systems? Regards, Fausto Link to comment Share on other sites More sharing options...
0 niconiconico Posted Thursday at 09:41 PM Author Share Posted Thursday at 09:41 PM I am currently developing a windows app on Visual Studio using C#. The windows app will be used on different systems ranging from Windows 7 32-bit to windows 10 64-bit Link to comment Share on other sites More sharing options...
0 Fausto Posted Thursday at 10:02 PM Share Posted Thursday at 10:02 PM Thank you for the reply. Is your current issue, using an USB-TEMP and MCC's Universal Library, only with Windows 7 32-bit or other Windows 32-bit OS releases as well? Link to comment Share on other sites More sharing options...
0 niconiconico Posted Thursday at 10:09 PM Author Share Posted Thursday at 10:09 PM Only with Windows 7 32-bit. It's the only 32-bit I have. Link to comment Share on other sites More sharing options...
0 Fausto Posted Friday at 03:37 AM Share Posted Friday at 03:37 AM Disconnect the USB-TEMP from the Window 7 system's USB port. If you do not have InstaCal v6.55 installed on the Windows 7 system, then uninstall InstaCal using Windows Control Panel options. Afterwards, using the following link, download the installer to the host system and run the installation. https://files.digilent.com/archive/MCCDAQ_CD/Archive_6.55/mccdaq.exe Once installed, please launch the InstaCal v6.55. Using the top menu, go to 'Help - About InstaCal' to confirm you have v6.55. Close the About InstaCal window and then click on the leftmost menu icon ('Add Board'). Select the DEMO tab and then click the 'Add' button. The DEMO-BOARD (Board# 0) should appear in the list. Double-click on Board# 0 to open its Configuration window. Click the OK button afterwards and then close InstaCal. The demo data are voltage points, not temperature data, but this is only a troubleshooting test. Run your application. Do you get the same error(s)? Next, if you are using an external USB hub, then it should be powered by an external power supply. However, if you are using an USB port that is directly on the Windows 7 32-bit system, is the port USB v1, v2 or v3? Do you have another Windows 7 32-bit system to test the USB-TEMP? Link to comment Share on other sites More sharing options...
Question
niconiconico
Hello. I am trying to interface with USB-TEMP, and I keep getting 'Value cannot be null. Parameter name: ptr' error whenever I try to call mccdaq commands.
I'm can't seem to figure out what is causing it
Link to comment
Share on other sites
13 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