Comments (7)
Hi,
We have run your app twice to completion with no failures.
from mcculw.
@jeffreyg3 Thanks for the quick reply as always. Could you please paste the output you get here? The program crashes silently so it might not be obvious that it crashed. With default arguments it should do 1000 iterations. So if it did not crash, you should see something like this at the end:
999| 0.00: status = 1, curr_count = 00015, curr_index = 014, arr[014:015] = [12.9937604]
Sleeping for 0.0 secs before stop
Stopping background function, status was 1
Background function stopped
Freeing handle 2072774443008
Handle freed
Releasing device 0
Device released 0
Polling done.
Program exited normally.
But on my side it never does. It always ends with something like:
4| 0.23: status = 1, curr_count = 00065, curr_index = 064, arr[064:065] = [12.97624382]
4| 0.12: status = 1, curr_count = 00070, curr_index = 069, arr[069:070] = [12.88793211]
4| 0.02: status = 1, curr_count = 00075, curr_index = 074, arr[074:075] = [12.88271523]
Sleeping for 0.0 secs before stop
Stopping background function, status was 1
Background function stopped
Freeing handle 2072774443008
Handle freed
Releasing device 0
Device released 0
Polling done.
Creating device
Device created
Configuring channels...
Starting background function...
Background function started with rate 50
Polling for 0.3734027203051207 secs...
5| 0.37: status = 1, curr_count = 00000, curr_index = -01, arr[-01:000] = []
5| 0.27: status = 1, curr_count = 00005, curr_index = 004, arr[004:005] = [12.98928908]
5| 0.17: status = 1, curr_count = 00010, curr_index = 009, arr[009:010] = [12.90359038]
5| 0.07: status = 1, curr_count = 00015, curr_index = 014, arr[014:015] = [12.9937604]
Sleeping for 0.0 secs before stop
Stopping background function, status was 1
Which is the print statement just before the call to ul.stop_background
. Which I believe crashes the whole program.
Just to make sure, did you test with a USB2404-UI?
from mcculw.
When you originally sent this request we did run it for 1000 iterations.
We reduced the iterations to 100 and sent the output to the attached file. The results show that the program exited normally.
test.txt
from mcculw.
@jeffreyg3 Thanks for the repy. Interesting. In most cases it crashes well before 100 iterations. However I was able to run it for more than 100 iterations a few times.
What device did you use? What Python version? What is your cbw64.dll version or Universal Library version (I am not sure how to determine which version I have).?
from mcculw.
text2.txt
Used a USB-2404UI
version of cbw64 was included in InstaCal 6.72 (part of the mccdaq.exe download)
python 3.8.5
To determine the version of InstaCal/UL, run InstaCal, and click on Help >> about Instacal.
from mcculw.
@jeffreyg3 Thanks.
I thought this could be a Python version issue so I made C/C++ version of the provided script and it still crashes at the same point.
Could this be a firmware issue? Is there anyway I can get the firmware version of my board? There does not seem to be a firmware update for this board here: https://www.mccdaq.com/firmware.aspx.
from mcculw.
There is no firmware upgrade for the USB-2404-UI
Unfortunately, we cannot duplicate what you are seeing. Your program works on our Windows 10 system, running Python 3.8.5, and InstaCal 6.72.
from mcculw.
Related Issues (20)
- How to read the CJC sensor temperature? HOT 6
- get_board_number() returns -1 for a DaqDeviceDescriptor returned from get_daq_device_inventory() HOT 10
- Acqknowledge does not detect digital signal HOT 4
- Not able to set bit wise on port FIRSTPORTB/C/CH with ul.d_bit_out() HOT 3
- USB interface crashes (USB-ERB24) HOT 1
- a_out_scan example doesn't work -> error: 17 invalid count HOT 4
- Changing analog output 1 affects analog output 0 HOT 3
- Sync Analog Output on Multiple Channels for USB-3114 HOT 1
- USB-1808 not detected on Win11 HOT 1
- Set start and stop time to aquire the data
- mcculw.ul.ULError: Error 35: Pointer is not valid HOT 5
- Problem with analog output HOT 2
- USB-1608G AnalogSE Configuration HOT 12
- Invalid Board Number HOT 5
- simultaneous analog output update with USB-3103
- Cannot run example code with USB-TC-AI 2.xxx HOT 1
- TC32
- a_in / v_in functions fail
- E-1608 a_out_scan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcculw.