Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Send command to laser sensor via serial port RS232

Solved!
Go to solution

Hi,

 

I too am using the Potex CD33 laser.

But I wish to communicate through the PXI 6229.

 

I am using the DAQmx functions to do so but I am not able to read off the device for some reason.
When connected to the MAX, it was able to chart the device outputs....but I am however unable to get it working.

I have attached my VI for your reference.

0 Kudos
Message 11 of 19
(1,966 Views)

So your problem is to read out an ADC channel, start with the DAQ MX examples 

You are now defining a clock timing and reading out something with read.

But you want a read each time and you want to define the speed. 

Furthermore there is a board for multifunction DAQ.

greetings from the Netherlands
0 Kudos
Message 12 of 19
(1,947 Views)

Yes, that seems what I want to do alright.
In the VI that I made(and attached with this thread) does not flash any error(I know because I put in an error handler)...but does not read any values at all.

But when I run it using the 'Test Panel' in Measurement and Automation....it charts the Amplitude v/s Sample chart just fine....
I want to run something exactly similar to this.

0 Kudos
Message 13 of 19
(1,932 Views)

Hi,

 

A quick update.
I was able to get it working.....but it stops reading now after a few seconds.....without flashing any error.
The loop runs with status 'OK' at every steps and logs just one value even if there is variation in the laser's focal distance.

 

Regards,

Anup

0 Kudos
Message 14 of 19
(1,918 Views)

Always the same value?

greetings from the Netherlands
0 Kudos
Message 15 of 19
(1,900 Views)

No.

Actually whenever I run the VI, it wil run normally for a few minutes showing appropriate changes on the graph corresponding to the physical movement of the laser.

But, then it will suddenly stop at a value and stay at it. It just freezes after sometime. Without nay error or anything like that.

 

 

0 Kudos
Message 16 of 19
(1,896 Views)

I don't see any problem, as far as I see you get each second 1000 points and do you also see this update change or slows it down?

keep your memory under control, check with taskmanager.but I don't see memory building up in your system

maybe disk trashing after several minutes?

 

greetings from the Netherlands
0 Kudos
Message 17 of 19
(1,893 Views)

I think i'll look for that.

Thanks for all the help ! 🙂

0 Kudos
Message 18 of 19
(1,892 Views)

I still remeber how I started.

greetings from the Netherlands
0 Kudos
Message 19 of 19
(1,881 Views)