Skip to content

Commit

Permalink
add powersupplyvoltage(cam) (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Apr 20, 2023
1 parent 1ffafe3 commit f74f6c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Spinnaker"
uuid = "8e0d2ad3-56b8-53f3-8036-54b674872bef"
version = "1.0.2"
version = "1.1.0"

[deps]
FixedPointNumbers = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
Expand Down
9 changes: 8 additions & 1 deletion src/Camera.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export serial, model, vendor, isrunning, start!, stop!, getimage, getimage!, sav
acquisitionmode, acquisitionmode!,
sensordims, imagedims, imagedims!, imagedims_limits, offsetdims, offsetdims!, offsetdims_limits,
buffercount, buffercount!, buffermode, buffermode!, bufferunderrun, bufferfailed,
reset!
reset!, powersupplyvoltage

"""
Spinnaker SDK Camera object
Expand Down Expand Up @@ -221,6 +221,13 @@ function devicetemperature(cam::Camera, location::String)
return Spinnaker.get(Spinnaker.SpinFloatNode(cam, "DeviceTemperature"))
end

"""
powersupplyvoltage(cam::Camera) -> Float
Return the device power supply voltage in Volts.
"""
powersupplyvoltage(cam::Camera) = Spinnaker.get(Spinnaker.SpinFloatNode(cam, "PowerSupplyVoltage"))

#
# Image acquistion
#
Expand Down

2 comments on commit f74f6c4

@IanButterworth
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/81991

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.1.0 -m "<description of version>" f74f6c438d405b5f9b57cbd7ffab3d0107381640
git push origin v1.1.0

Please sign in to comment.