Conversation
| TIME_HISTOGRAM_NEW_HITS = 3011 | ||
|
|
||
|
|
||
| class ExportableSignals(Enum): |
There was a problem hiding this comment.
In NI-FGEN this was called Signal. Needless inconsistency. Glad it's gone.
|
@marcoskirsch Can you give an example for what the replacement of the Export Signal function would look like using the properties as mentioned at the top. For example, how would you export a trigger to PFI 0 on a FGEN card? |
|
|
@marcoskirsch @mitchellkelley I think this is a case where we may want to have something in the documentation explaining how to do this configuration, as this is a place where the Python API differs from the C API (where niFgen_ExportSignal exists). Usually, if documentation doesn't exist for something in Python, users (and supporters) can reference the C or LabVIEW API and generally figure out what they need to do, but that's not the case here. |
@gfisher-NI, can you please open an issue on GitHub for this. |
|
@sbethur Done! |
|
@marcoskirsch @sbethur @mitchellkelley I'm trying to put together an example of this, and where I am stuck is that there is no indication anywhere of what values digital_edge_start_trigger_source and exported_start_trigger_output_terminal can take. I would expect there to be an enum for it and there isn't. Based on both the existing documentation and what was stated above, the following code should work and does not: |
|
@gfisher-NI, we made the explicit the decision to not include constants in the API for terminals on the same instrument. The optimal way of using our APIs is to leverage NI's routing subsystem and "pull" signals from other instruments. In other ADEs we do declare constants, but this is mostly a carryover practice from before NI's routing subsystem (~2002). Unfortunately, it is not obvious to customers what the valid strings are for a given system configuration. Some instruments have a Routing tab in MAX and this can be referrenced. Many others don't. This is a widespread documentation gap throughout NI driver software. |
|
@marcoskirsch Okay, that does make sense, and also pointed me at the mistake in my code. This code works: |
addedremoved tests applicable for this pull requestWhat does this Pull Request accomplish?
'fgen5433\sometrigger'export_signal()does not provide all the functionality that properties doList issues fixed by this Pull Request below, if any.
What testing has been done?