Labscript>
-Can I create multiple connection tables (for various experiments or in my specific case testing a single device at a time rather than cumulatively)?
--If so, can I choose these in BLACs menu some how? ( like a field for connection table selection of possible tables created?)
-When trying to create a stop() call, I have not been able to call on t's current value, as in "stop(t+1)". To avoid tallying up t is there a way to do endtimet = get(t) to avoid say stop(31)?
PulseBlaster>
- What is "board_number" in "# Create a pulseBlaster object connected to port 0 on??
General>
-Do you guys have open source code for experiment logic you guys uses as an example? I was hoping to look at code for various experiments and learn what best practices are in connecting these devices to labscript.
- Any learning curves/problems that may be avoided in doing any of the above initial setup?
Thank you all for any help on these answers.
Labscript>
-Can I create multiple connection tables (for various experiments or in my specific case testing a single device at a time rather than cumulatively)?
--If so, can I choose these in BLACs menu some how? ( like a field for connection table selection of possible tables created?)
-When trying to create a stop() call, I have not been able to call on t's current value, as in "stop(t+1)". To avoid tallying up t is there a way to do endtimet = get(t) to avoid say stop(31)?
|
PulseBlaster>
- What is "board_number" in "# Create a pulseBlaster object connected to port 0 on??
PulseBlaster_SP2_24_100_32k(name='pulseblaster_0', board_number=0)"--What does this refer to?
- What' s the bit about the fast clock vs the slow clock?
--Or more to the point, what devices/situations do you guys use this for?--Can I have multiple fast clocks?
PineBlaster>-Do you guys use this to trigger the PCI-6733?--If so, how do you guys connect this? (we are currently looking at the RTSI connection ports for using a masterclock signal, but the documentation for the PCI-6733 is not clear enough ,to me at least, on how this is done. We hope to sync this and other devices with the pineBlaster)
NI USB-6343-What is the labscript naming convention for ports on this device? I am currently trying to use a clock signal from the pulseblaster as input in port 73 ("PFI 0/P1.0") and get a basic sine wave out of port 65(P0.0) without much luck. I keep getting errors in BLACs telling me the port is not found for the clockline port I insert in the "clock_terminal" parameter of the NI_PCI_6733 object creation. In short what are the port names? will port 1 thru 128 work for this device?
-Not software related, but there are obviously a lot of ports on this device. We intend to use many of them. Do you guys have a pretty/neat solution/cable on getting these ports out of the case?

General>
-Do you guys have open source code for experiment logic you guys uses as an example? I was hoping to look at code for various experiments and learn what best practices are in connecting these devices to labscript.
- Any learning curves/problems that may be avoided in doing any of the above initial setup?
Thank you all for any help on these answers.
--
You received this message because you are subscribed to a topic in the Google Groups "The labscript suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/labscriptsuite/pueMnUvv0hk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to labscriptsuit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Traceback (most recent call last):
File "C:\labscript_suite\labscript_devices\PineBlaster.py", line 277, in transition_to_buffered
device_properties = labscript_utils.properties.get(hdf5_file, self.name, 'device_properties')
AttributeError: 'PineblasterWorker' object has no attribute 'name'"
Exception in worker - Fri May 22, 13:43:57 :
Traceback (most recent call last):
File "C:\labscript_suite\labscript_devices\PineBlaster.py", line 320, in transition_to_manual
assert response == 'done\r\n', 'PineBlaster said \'%s\', expected \'ok\''%repr(response)
AssertionError: PineBlaster said '''', expected 'ok'
Fatal exception in main process - Fri May 22, 13:43:57 :
Traceback (most recent call last):
File "C:\labscript_suite\blacs\tab_base_classes.py", line 670, in mainloop
next_yield = inmain(generator.send,results)
File "C:\Python27\lib\site-packages\qtutils\invoke_in_main.py", line 68, in inmain
return get_inmain_result(in_main_later(fn,False,*args,**kwargs))
File "C:\Python27\lib\site-packages\qtutils\invoke_in_main.py", line 47, in event
result = event.fn(*event.args, **event.kwargs)
File "C:\labscript_suite\blacs\device_base_class.py", line 627, in transition_to_manual
raise Exception('Could not transition to manual. You must restart this device to continue')
--
Hi all,A couple of things. I have been trying two new tests (individual scripts), one with a Novatech 409B (clocked by pulseblaster) and triggering the pineblaster with the pulseblaster.On the novatech 409B:-Is the novatechDDS9M class well suited for the 409B? (I see that in the class the baudrate is assigned 115000 rather than the needed 19200 for the novatech 409B); Should I write a class for this device?
On the pineblaster:-I kept getting the error:"
Traceback (most recent call last):
File "C:\labscript_suite\labscript_devices\PineBlaster.py", line 277, in transition_to_buffered
device_properties = labscript_utils.properties.get(hdf5_file, self.name, 'device_properties')
AttributeError: 'PineblasterWorker' object has no attribute 'name'"
Which has been fixed by making a modification in PineBlaster.py class file in line 277- device_properties = labscript_utils.properties.get(hdf5_file, device_name, 'device_properties')# Changed "self.name" to "device_name".
- I am now getting a new error:
Exception in worker - Fri May 22, 13:43:57 :
Traceback (most recent call last):
File "C:\labscript_suite\labscript_devices\PineBlaster.py", line 320, in transition_to_manual
assert response == 'done\r\n', 'PineBlaster said \'%s\', expected \'ok\''%repr(response)
AssertionError: PineBlaster said '''', expected 'ok'
Fatal exception in main process - Fri May 22, 13:43:57 :
Traceback (most recent call last):
File "C:\labscript_suite\blacs\tab_base_classes.py", line 670, in mainloop
next_yield = inmain(generator.send,results)
File "C:\Python27\lib\site-packages\qtutils\invoke_in_main.py", line 68, in inmain
return get_inmain_result(in_main_later(fn,False,*args,**kwargs))
File "C:\Python27\lib\site-packages\qtutils\invoke_in_main.py", line 47, in event
result = event.fn(*event.args, **event.kwargs)
File "C:\labscript_suite\blacs\device_base_class.py", line 627, in transition_to_manual
raise Exception('Could not transition to manual. You must restart this device to continue')
- Exception: Could not transition to manual. You must restart this device to continue
From BLACS which always occurs (despite the length of the run) at the end of the run. I suspect the check done to see if the pineblaster has completed its work needs to be after the stop call or I need to send a command stopping the pineblaster. Have you guys experienced this error? I have attached the connection table/experiment logic .py file I am using for this test with the updated (as of last Friday) labscript.
Also, Professor Wright and I have been wondering how you guys prefer updates on bugs or new work/documentation to be handled. Should we continue to send periodic emails? or move towards a joint repository for commits?
--
Let me know if this helps.
Cheers,
Phil
Thank you so much Phil (as always:).I look forward to hearing back from you.I hope everything is going well on your end.Best,Kelsey
On Tue, Jan 19, 2016 at 6:15 PM, Philip Starkey
Hi Kelsey,
To unsubscribe from this group and all its topics, send an email to labscriptsuite+unsubscribe@googlegroups.com.
Hi Phil,
I think I got Bias to run. Also for future reference I think BIAS will only work with a 32-bit version of Labview (after trying on 64-bit LV for a few days and flushing out all dependencies I found the underlying issue to be the msgpack.dll library file to be a mismatch with the 64bit Labview version; after repeating steps with 32 bit LV BIAS ran -- see attached .pdf for some documentation on this process).Now I got a new challenge; I am trying to connect a camera (unfortunately perhaps not one of the 3 already being used). The camera (a Point Grey FL3-U3-13S2M-CS) needs to be implanted into the labscript/Bias ecosystem; I am currently following the instructions laid out in page 7 of the BIAS manual/setup file, but am stopped once referred to the "CameraBase VIs" documentation; I am not sure where to find this documentation. For now I am playing around with BIAS and the camera's software to see if I can happen onto a solution.I have never messed with Labview before this week, so this is a bit fun. Thank you for your help thus far; Ill keep you updated.Best,Kelsey
To unsubscribe from this group and all its topics, send an email to labscriptsuite+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "The labscript suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/labscriptsuite/pueMnUvv0hk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to labscriptsuite+unsubscribe@googlegroups.com.
You received this message because you are subscribed to the Google Groups "The labscript suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to labscriptsuit...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "The labscript suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to labscriptsuit...@googlegroups.com.
[BIAS] is no longer under active development and your mileage may vary. It may be quite a steep learning curve as a first LabVIEW project, and is not very extensible.
[BIAS] can be replaced with any other imaging system that conforms to the specification (to be posted here shortly).
...
While deploying the labscript suite in Tübingen, Chris Billington used a minimal camera server to work with their existing imaging system. This code amounts to the specification for a labscript camera server and will be posted shortly.
from __future__ import division from labscript import * from labscript_devices.PulseBlaster import PulseBlaster from labscript_devices.Camera import Camera # Main device definitions PulseBlaster('pulseblaster_0', board_number=0) # Imaging system Camera('dummy_camera', pulseblaster_0.direct_outputs, 'flag 2', BIAS_port=8765, exposure_time=1e-3) # -------- Experiment begins ---------------------------------- print('\n\nCompiling labscript...') start() dummy_camera.expose(name='test', t=10e-3, frametype='frame_0') # Finish experiment stop(20e-3)

--
Thank you for this information! I (and the rest of us) would like to sidestep BIAS only because it forces us to buy a Labview License and Vision Dev Mod (together $1000+ USD)
[...]
I think our lab is currently more inclined towards BIAS because of all the functionality already offered and honestly "the pretty GUI" and its interface (fingers crossed) with the rest of the Labscript Suite, but a free alternative is definitely better and more open for active future development that will surely be beneficial to all in the Labscript community.
We currently want to just "put a camera into the system" and take 3 stills for absorption imaging and then get fancy with some pythonic analysis.
In addition to the server option recommended, is there more code in the works to provide similar functionality (image analysis, .h5 file saving, GUI, driver/connection SW, interface with BLACs) as BIAS that you would feel comfortable sharing?
I will try your present solution and let you know of its success (or attempt at such).
still cant do anything:/ activated license is need for NIIMAQdx;evaluation mode will not allow me to use this:/:
What do you mean by this? I think NI-IMAQdx should work with an evaluation copy of NI Vision Acquisition Software. If you're unsure whether you have NI-IMAQdx, check that the IMAQdx Function Palette is present in LabVIEW (Under View >> Functions Palette >> Vision and Motion). It might not be present due to this issue.
I have tried your recommendations and recorded the results in the updated attachment. Unfortunately I have not been able to get BIAS to work at this time and I think I will take a break to try out Russ' alternative; I would still like to get BIAS to work if nothing else because it feels so close to working and we've both been putting a lot of time into this.
To isolate the specific problem of establishing a connection with the camera using IMAQdx, you might also like to try:
- Open <path to BIAS>\classes\IMAQdx\CameraConnect.vi. If there are missing IMAQdx VIs, this should be detected in this step.
- Enter the camera serial number in the "Serial Number" control (if it is not already present).
- Press Ctrl + E to show the VI's block diagram (or use Window >> Show Block Diagram).
- Add a breakpoint before the FP.Close command at the rightmost point of the block diagram (see attached).
- Add a probe to the CameraInfo indicator (hidden on the front panel of the VI).
- Run the VI. Record any errors and the status of the CameraInfo probe in the Probe Watch Window (see attached).
Russ
On 1 February 2016 at 09:56, Russell Anderson <russell....@monash.edu> wrote:Hi Kelsey,As per Phil's recommendation, please send further information about the "Open File" error, i.e. what sub VI this is occurring in and which file is not found.
Upon reading your notes, I noticed the following things which may or may not be causing trouble:
- On page 3 of your notes, the camera is listed in the Point Grey DriverControlGUI as using the Point Grey driver (version 2.7.3.18). Technical Application Note TAN2013011, Using Point Grey USB3 Vision Cameras with National Instruments’ Vision Acquisition Software, suggests using the National Instruments driver instead, for this camera to be used with NI-IMAQdx.
- This may explain why the camera does not appear as an NI-IMAQdx device in NI-MAX, on page 6 of your notes. Instead, it shows up as a generic USB camera in this list. This screen capture from the above application note shows what the NI-MAX window looks like when the camera is registered as an NI-IMAQdx device.
- Once you have installed the camera as an NI-IMAQdx device by following the instructions on the above application note, confirm that you are able to "Snap" frames in NI-MAX. (This may be possible even if the camera is identified as a generic USB camera, but do so after you've registered the third-party driver in the Point Grey DriverControlGUI.)
- On page 22 of your notes, you've said
still cant do anything:/ activated license is need for NIIMAQdx;evaluation mode will not allow me to use this:/:
What do you mean by this? I think NI-IMAQdx should work with an evaluation copy of NI Vision Acquisition Software. If you're unsure whether you have NI-IMAQdx, check that the IMAQdx Function Palette is present in LabVIEW (Under View >> Functions Palette >> Vision and Motion). It might not be present due to this issue.
- The second dialog in the final screen grab in your notes (page 23) "Can't find pybywire server.... Start server?" is normal. It is a prompt to start a (locally running) pybywire server for LabVIEW to communicate with Python. Click "Yes" to start the server. It might take several seconds the first time you do this.
--