Skip to content

Commit

Permalink
Added more examples (LabView 2017)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanroth79 committed Dec 19, 2017
1 parent 918a386 commit 98ed1ab
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 65 deletions.
16 changes: 0 additions & 16 deletions 8500List.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
# 8500List.py
#
# Copyright {2017} {B&K Precision Corporation}

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import serial
import bk8500functions

Expand Down
Binary file added 8500_ShortEnable.vi
Binary file not shown.
17 changes: 0 additions & 17 deletions 8500pyserial.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
# 8500pyserial.py
#
# Copyright {2017} {B&K Precision Corporation}

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

import serial

def cmd8500(cmd ):
Expand Down
Binary file added 8502_List.vi
Binary file not shown.
Empty file added __init__.py
Empty file.
Binary file added basicEx.vi
Binary file not shown.
32 changes: 0 additions & 32 deletions bk8500functions.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
# bk8500functions.py
#
# Copyright {2017} {B&K Precision Corporation}

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

def cmd8500(cmd , ser):
print("Command: ", hex(cmd[2]))
printbuff(cmd)
ser.write(cmd)
resp = ser.read(26)
errorCheck(resp)
#print("Resp: ")
printbuff(resp);

Expand All @@ -38,18 +21,3 @@ def csum(thing):
for i in range(len(thing)):
sum+=thing[i]
return 0xFF∑

def errorCheck(b):
x = ""
if b[3] == 0x90:
print("Checksum Error: ", end='')
elif b[3] == 0xA0:
print("Parameter Incorrect: ",end='')
elif b[3] == 0xB0:
print("Unrecognized Command: ",end='')
elif b[3] == 0xC0:
print("Invalid Command: ",end='')
elif b[3] == 0x80:
print("Success: ",end='')
else:
print("Data return: ",end='')
Binary file added transientTriggeredEx.vi
Binary file not shown.

0 comments on commit 98ed1ab

Please sign in to comment.