LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure with Keithley 2000 over RS232

here is my VI, maybe somebody finds my mistake...

thank you all for your help...

0 Kudos
Message 31 of 56
(3,474 Views)

You have set your termination character to be a carriage return constant.  Are you sure it isn't supposed to be a new line character?

 

I'm not sure why you are going through the type cast operation for a constant.  Just wire in a U8 constant direction into the Serial Port Configure.  It would be decimal 13, hex 0D for a carriage return character.  Or decimal 10, hex 0A for a line feed/new line character.

0 Kudos
Message 32 of 56
(3,462 Views)

i used carriage return in my terminal, there it worked!!!

I wired an numeric constant "13" to the serial port configure....

but it still does not work

what should i give the read function by "byte count"?

0 Kudos
Message 33 of 56
(3,456 Views)
if there is somebody out there with an keithley2000 and rs232, please try my VI, maybe you find the mistake, that would be so great...
0 Kudos
Message 34 of 56
(3,445 Views)
With that big delay, you should be able to wire the Bytes at Port directly to the Read function's Byte Count input. The way it is now, if it doesn't receive 100 bytes, it will wait.
Richard






0 Kudos
Message 35 of 56
(3,432 Views)

I did this before. Problem is that I dont get all my data. One a part and that differst from measurement to measurement...what seems to be a problem with the read...but i dont know whats going wrong...

 

0 Kudos
Message 36 of 56
(3,430 Views)

The problem is not at all to do with LabVIEW. I think it has everything to do with the way that you have written the program.

 

I will repeat my urging of you to look at the driver written for it. If for some reason you feel like reinventing the wheel, at least look at what has been written by an experienced programmer. I think that all of these posts would have been avoided if you had simply used what has already been written. You have not explained why you are not using the driver and in my mind, you need to justify the reason someone should keep helping you.

 

DO NOT send two queries in a row. Do a single query and then a read.

0 Kudos
Message 37 of 56
(3,427 Views)

Raz,

 

Please re-save your vi as LV 8.2, and I'll try to find my spare 2000 and try it out.

 

Mike

0 Kudos
Message 38 of 56
(3,421 Views)

I looked in the driver. there are a two examples, but they dont work!!!

 

 

 

0 Kudos
Message 39 of 56
(3,418 Views)
There are numerous things there that need to be done and the first is making sure the instrument is set to match the serial settings in the initialize functions. Look at that and either modify the VI or the instrument. Run just the initialize function before running any example.
0 Kudos
Message 40 of 56
(3,416 Views)