LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

continous operation

According to 5.4.2 on page 16: you'll need to send and recieve data several times, but only 1 byte at a time.

You can set a numeric constant to binary mode if that makes it easier for you to create the commands.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 41 of 72
(1,821 Views)

S means "start" and representing the starting of the packet(RS --->repeated Start). In given image, next term after S is device address byte(assume it as 15 and last bit(LSB) in this byte is either zero(represents for writing to) or one(represents for reading from) and next is COMMANDBYTE(just now i am sending only this in my app as yopu can see previous posts for my VI, which meant for specific operation such as reading volatge have one command code and reading frequency have one more command code etc..). Coming data byte , it is only for writing and when i want to read these data bytes are not required. I am just making my own GUI by th help of labview perhaps now i am using thired party GUI. So, in that GUI you can see in previous jpeg1 picture (red color ) which have their packet format and under that you will find the total packet structure.

 

The attched document is the protocol which i am using now(see 12, 55  and last pages for list of commands). This is lengthy document and may be this short description about the same protocol at http://powerelectronics.com/mag/509PET20.pdf

 

                       

0 Kudos
Message 42 of 72
(1,816 Views)

Are you sure this can work with a normal serial port?

 

On page 16 of the one link you gave it says

:

The PMBus transport layer is based on Version 1.1 of the

low-cost System Management Bus (SMBus), which is a more

robust version of the industry-standard I

packet error checking and host notifi cation features. The I

bus was originally developed by Philips Electronics (New

York) for Inter-IC communication, while the SMBus was

defi ned by Intel (Santa Clara, Calif.) for system management

communications in PCs and servers.

 

2C serial bus with2C

I

 

"

 

Note it did not cut and paste well, but it talks about an I2C bus.  That is not the same thing as an RS-232 protocol.

 

What kind of port are you connected to?  Have you gotten communication at all between your PC and the device using their software? 

0 Kudos
Message 43 of 72
(1,804 Views)

My whole system is like this

Master(from Labview)->USB(8-bit Micro controller and it will convert all the usb to I2C)-> PMBus protocol with slave device(SMPS).

            now you may be got an idea how to sent whole packet as i described in before message. could you tell me how i can send the packets.

0 Kudos
Message 44 of 72
(1,787 Views)

Hi Shjuk,

 

no, your system looks like this: PC/LabVIEW <-> (virtual) COM port

 

Everything else is irrelevant (as long as your µC is working correctly for its both communication ports)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 45 of 72
(1,783 Views)

yes, i am using virtuval port but where you people are confused and i want to know exact thing. So, that i give more information to you. Here, i am interacting directly with the PMBus device(SMPS) i am just interacting with microcontroller and that will convert the data from usb to I2C.

 I want to know exactly where you people are confused so far?:mansurprised:

0 Kudos
Message 46 of 72
(1,793 Views)

Hi shjuk,

 

"where you people are confused so far?"

You're the one who is confused until now. You're still asking the same questions over and over again on how to send "hex" values...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 47 of 72
(1,791 Views)

i have eight numeric indicators which will display the result after writing the command to port. Indeed, i need to make textboxes to perform read and write directly from numeric indicators i.e. if user see the displayed value in the text box and want to change that value to some other value then write to port. Let say 88(hex) command is for burst duty, in my app now if the 88 command sent and get value as 17 then user want to rewrite that as 24 to port again. in that case i need send a command like [88][17] in the place of 88 at that moment only. if user does not change any value then the existing commands run as usual.

 For this operation i have taken local variable and taken the event structure with cases for those eight indicators but i don't know how i will go forward to get the required thing. can any one give any example for one indicator.

 

0 Kudos
Message 48 of 72
(1,771 Views)

Hi shjuk,

 

it seems you missed the dataflow paradigm.

 

Right now your event structure will execute after the while loop has finished due to data dependency.

Also: why do you want to wire locals to an array to feed the event structure with? In the event you already get the "new value" and "old value" form the event outputs! No need to fetch any local for that!

 

Next problem: your explanations are always "vague"! It is not clear at all, what you wnat to achieve! Why "rewrite 24" when you receive "17"? How to interpret "user want to rewrite 24" and "I need to send 0x88 0x17"??? Where's the connection between those sentences?

 

Another problem: your messages are hard to read due to "text message style"! The first letter of a sentence should be a capital letter as well as the word "I"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 49 of 72
(1,761 Views)

I want to create textboxes(numeric indicators in my case) for indicating voltage, frequency and burst duty etc. At the same time, I have to provide a benefit to user that he can enter any value in the indicator and send it to the port(This is because i have to control the smps. So, first i will display current readings from smps by sending commands. If the user wants to control the SMPS with different voltage then he write a voltage want he wants to be at SMPS)

Since, I have taken only indicators which provide only visiblity of the current values and indicators can not provide the option to enter a new value in it. User can also able write a value in indicators and it will written to the port with command. can you help me, how i can do this with local variables. Please give me any example for indicator. 

0 Kudos
Message 50 of 72
(1,751 Views)