キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Problem with serial port

I want to read and write data( Baud:9600, Data 8 bits,non parity ,  1 stop bit , non flow control) from MSC51. I use Basic Serial Write and Read vi. (in NI Example) ,It has error and I check code in MSC51 it OK .   What sould I do?:mansad:
0 件の賞賛
メッセージ1/13
4,096件の閲覧回数
Hi
 
You definitely should provide more information (e.g. the vi in which the error occurs, a more detailed error description, error-codes, ...).
 
Just saying "it has error" could mean everything from a cable which is not plugged to your computer correctly to a bug in a specific driver.
 
If you want useful advice from the community, the community needs to know more about the problem.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 件の賞賛
メッセージ2/13
4,082件の閲覧回数
I'm sorry that I don't tell about problem.
The simple error handler.vi shows that "Error - 1073807202 occured at Property Node in VISA Configure Serial Port(Instr).vi -> Basic Serial Write and Read.vi"  and it show "This error is undefined.No one has provide a description or you might have wired a number that is not an error code to the error code input"
When I click Hilight execution to see an error , I see an error from " VISA configure serial port.vi".In this vi ,"VISA resource name" is ASRL2:
I think it could be COM1 but I can't change it and cable is plugged in COM1 port. :mansad:
0 件の賞賛
メッセージ3/13
4,076件の閲覧回数

Yes, you're right - it has to be COM1 in this case.
Did you just use an example vi or did you make your own one? Basically the VISA resource name wired to the configuration vi should be a combobox-like control, where you can select the source.

If you can't select the correct port, it is helpful if you could post the vi you're using or at least a picture of the it (but please no bitmaps).

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 件の賞賛
メッセージ4/13
4,072件の閲覧回数
I use Basic Serial Write and Read vi ( in NI Example vi, I think you have it).Someone tell me it error because delay time but when I change it error again
すべてをダウンロード
0 件の賞賛
メッセージ5/13
4,065件の閲覧回数
Basically your vis are ok.
To change the com-port, use the control on the front panel (see picture).
 
 
The error-code you posted is linked to this message: A code library required by VISA could not be located or loaded.
If it doesn't work after selecting the correct com-port, you will have to check if everything is installed correctly.

Message Edited by becktho on 06-12-2006 11:44 AM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
メッセージ6/13
4,062件の閲覧回数

The explanation for that error code is:

VISA:  (Hex 0xBFFF009E) A code library required by VISA could not be located or loaded.

Nine times out of 8 and a half, that means you haven't installed VISA. The explanation for that error is installed with VISA and if you had installed it, you would not have gotten 'this error is undefined'. Actually, you wouldn't have gotten an error at all.スマイリー ウインク

0 件の賞賛
メッセージ7/13
4,048件の閲覧回数
If VISA was not installed, should the VISA vis not have been available as well?
It absolutely makes no sense to have methods available but not the necessary drivers.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 件の賞賛
メッセージ8/13
4,045件の閲覧回数
I agree. I have no idea why the functions are there without installation. It's been so long since I've not installed all drivers, I don't remember if the same is true of DAQ and GPIB. Anyone know if the functions are on the palette even if you don't install NI-DAQ, DAQmx, or NI-GPIB?
0 件の賞賛
メッセージ9/13
4,043件の閲覧回数
For Traditional DAQ and DAQ-mx, support for a specific LV version is installed together with the drivers.
For example, I have 7.0 with LV support installed and 7.1 without.
In 7.1 I don't have DAQ on my function palette.
I don't know about  NI-GPIB

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 件の賞賛
メッセージ10/13
4,033件の閲覧回数