05-18-2009 04:06 AM
HI
I have:
PCI 6251M to acquire data
PCI 1427 (to acquire image with camera uniq UF1000)
Labview 8.00
Frame grabber BNC 2090
High power BI-Phase Current Simulator to generate external trigger. (ASI 701B)
In my program i need to do different things in the same time:
1)i need to reshape signal from simulator (I use lv_retirg-pulse-gen0.vi for do it ). Signal from ASI 701B is connected with pin PFI0 (input). And counter is setted on pin Counter0.
2)Read spikes from simulator and acquire data (channel's spike (ai0 is connected with output Counter 0))
3) Acquire images with my camera. Camera is connected to pin counter 1 and it need to start when spikes are generated.
I found different problem:
a)I have error 50103 on Daqmx StartTask.vi in camera line
b) if i try to resolve problem with error 50103: -camera doesn't start but i have reshape and i can read spike
- or camera starts but i cannot have reshape and i cant' read spike
- or camera starts when reshape and reading spike stopped (this option it's not considerable because i need to do those operations in the same time)
Moreover i try to introduce in camera line daqmx_trigger to set trigger for start camera, using same source of counter0 (PFI0), so that camera starts when spike begin, but doesn't do what i need.
I hope you can understand what i'd like to do.
Thank for your attention
Mariangela
05-18-2009 05:28 AM
05-19-2009 03:27 AM
Ok thank you, however I think it's a conflict problem between devices, too.
I divided my program in 2 parts.
Part A: needs to reshape signal (part down with counter 0) and to acquire spike (part up with Analog Input)
(reshape needs to have a sampling rate lower than usual)
Part B: needs to set camera:start camera, allocate memory, acquire images and in the end save them (but i omitted this part).
I hope now it's clearer to read and understand
Mariangela
05-20-2009 02:54 AM
Hi Mariangela,
first of all, I can't clearly understand what you mean with "reshape" and which signal you connected and to which line of the devices.
Common causes of the error you encountered (50103) are clearly explained in this document. I think your case may be that you created two counter output tasks: why do you need this? Is your purpose to simply give an order of execution with counter output before and image acquisition after or to trigger the image acquisition to the generated pulse train?
In this last case, you should do a triggered image acquisition, connecting the trigger to an external line or to RTSI and referring to LabVIEW examples under Example Finder => IMAQ => Signal Input and Output => VIs using triggers.
I hope this will help.
Bye,
Licia