-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REINIT_DAQ #140
Comments
The only thing that comes to mind, would be FREE_DAQ, but this usually (like in my own Blueparrot XCP project) resets/restarts an internal state-machine, so one has to run FREE_DAQ - ALLOC_DAQ |
I was doing FREE_DAQ I just saw in the standard you have to call all ALLOC_ODT before ALLOC_ODT_ENTRY :D |
Yes, to put it into another words: s. Blueparrot state-machine: |
This may be out of topic, but what command PID do I use to send a STIM package to a STIM daq list? I am trying to do SOFTWARE IN THE LOOP from the standard documentation, but missing description for how to send a STIM DTO |
STIM functionality isn't implemented yet; due to strict timing requirements in most cases, a C++ extension is needed. |
Creating a user-friendly and flexible API is probably tricky, since there are many ways to do stimulation, and different setups for different hardware. createStimDaqLists(dict_of_measurement_var_sizes_and_addresses, dict_of_stimulation_var_sizes_and_addresses) beginStim -> start_stop_synch(mode=0b01) sendStimDto -> fill header and identification field based on configuration in get_daq_processor_info and the standard, then add payload data of stimulation variables concatenated (this doesn't seem to work for me, I'm not sure what I'm doing wrong) receiveDaqDto(slave_cycle_period) -> pop_dto_queue with 1 cycle slave timeout, and parse based on types and order configured in createStimDaqList (this works for me with multiple variables, although for performance reasons it only sends a packet around every 2 cycles of the slave (20 ms instead of slave period of 10ms) ) |
OK, looks like a good starting point. Regarding timing, I'll start a separate GH project, including a MIDI arpeggiator!?
|
Hi!
I get a sequence error during alloc_odt of my 2nd daq list.
In the standard it says to REINIT_DAQ
I can see in the source code this error action is not implemented
How do I reinit daq? I can't find any information about it anywhere
The text was updated successfully, but these errors were encountered: