04-03-2013 10:45 AM
HI,
I am getting a error in visa. can you help me in resolving it
04-03-2013 11:01 AM
Can you share that subVI? Where did it come from? Is it requesting the data before attempting to read?
04-03-2013 11:02 AM
In the future, use a more desciptive subject line. "labview program" describes 99.99% of the forum posts.
Now, getting on to your problem. Since you didn't provide any information regarding your application or the hardware involved, I'm going to make a guess based on past experience with RS232 over VISA.
The error you are receiving, to me, indicates that there is a problem with the terminating character. After the VISA initialize, use property nodes to specify the read & write terminating characters (and whether or not to use them). Sometimes the VISA initialize vi doesn't quite set all the requirements for your particular device. Most likey what's happening is that VISA isn't automatically adding the correct terminating character at the end of your commands. A way to test this would be to had the terminating characters yourself (manipulate the string) and see if that works.
04-03-2013 11:04 AM
First of all, it looks like you have a typo in your "OUTput0" command. There should be a space between the "OUTput" and the "0". That's probably the issue - the command syntax is not correct. You might also decide what you want to do with the termination character you've specified. If you are expecting a termination character, make sure you have a "true" constant wired to your VISA serial config in the appropriate place. Hey when did they change the default for "Enable Termination Char" to "True?"
04-03-2013 11:05 AM
crossrulz brings up a good point. I don't see a command requesting the device to place data on the read buffer.
04-03-2013 11:09 AM - edited 04-03-2013 11:10 AM
@pjr1121 wrote:
In the future, use a more desciptive subject line. "labview program" describes 99.99% of the forum posts.
Now, getting on to your problem. Since you didn't provide any information regarding your application or the hardware involved, I'm going to make a guess based on past experience with RS232 over VISA.
The error you are receiving, to me, indicates that there is a problem with the terminating character. After the VISA initialize, use property nodes to specify the read & write terminating characters (and whether or not to use them). Sometimes the VISA initialize vi doesn't quite set all the requirements for your particular device. Most likey what's happening is that VISA isn't automatically adding the correct terminating character at the end of your commands. A way to test this would be to had the terminating characters yourself (manipulate the string) and see if that works.
I forgot about that. Often, when communicating serially, you have to add the term chars at the end of your commands. Maybe the OP got confused and thought that's what he was doing when you set the term chars on the VISA serial config. Actually what you are doing is configuring how VISA will hand the VISA READ. To set the write term chars, look here. Or just add them yourself.
04-03-2013 11:12 AM
@pjr1121 wrote:
crossrulz brings up a good point. I don't see a command requesting the device to place data on the read buffer.
I was under the impression that was handled in the manufacturer-suplied(?) subVI. Which begs the question - does the manufacturer provide a setup subVI?
04-03-2013 11:16 AM
@billko wrote:
I was under the impression that was handled in the manufacturer-suplied(?) subVI. Which begs the question - does the manufacturer provide a setup subVI?
While that's quite possible, and should be the case, I've encountered some supplier subvi that are so broken down that you need to use 3 of them to achieve one action. We won't know without a look inside that subvi.
04-03-2013 11:17 AM
The Druck Driver is here
Use the supplied Initialize vi to properly configure the serial port settings. The termination character is 0x0d not 0x10
04-04-2013 09:32 AM
Hi,
Thanks for the reply. well, i have instrument drivers for pace 5000. But it provides not read function palette and write visa function is working fine. The device is taking commands and giving the required output. But i m facing error at read pressure vi provided by the supplier.