LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview program

HI,

    I am getting a error in visa. can you help me in resolving it

Download All
0 Kudos
Message 1 of 13
(3,626 Views)

Can you share that subVI?  Where did it come from?  Is it requesting the data before attempting to read?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 13
(3,604 Views)

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.

Message 3 of 13
(3,601 Views)

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?"

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 13
(3,594 Views)

crossrulz brings up a good point.  I don't see a command requesting the device to place data on the read buffer.

0 Kudos
Message 5 of 13
(3,592 Views)

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 13
(3,590 Views)

@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?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 13
(3,586 Views)

@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.

0 Kudos
Message 8 of 13
(3,576 Views)

The Druck Driver is here

 

Use the supplied Initialize vi to properly configure the serial port settings.  The termination character is 0x0d not 0x10


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 13
(3,575 Views)

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.

0 Kudos
Message 10 of 13
(3,531 Views)